Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 243.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008528/0.0008528, allocations: 107.8 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3379/0.3379, allocations: 44.81 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 7.984 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3842, allocations: 62.96 MB / 0.516 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.1799/0.5641, allocations: 134.4 MB / 0.6473 GB, free: 2.668 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.01142/0.5756, allocations: 5.334 MB / 0.6525 GB, free: 13.32 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.5772, allocations: 27.75 kB / 0.6525 GB, free: 13.29 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00167/0.5789, allocations: 270.3 kB / 0.6528 GB, free: 13.03 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003837/0.5828, allocations: 0.8551 MB / 0.6536 GB, free: 12.17 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00489/0.5877, allocations: 0.8271 MB / 0.6544 GB, free: 11.35 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.004917/0.5926, allocations: 2.226 MB / 0.6566 GB, free: 9.121 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.5939, allocations: 389 kB / 0.6569 GB, free: 8.73 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.5964, allocations: 0.6733 MB / 0.6576 GB, free: 8.055 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.5984, allocations: 0.7009 MB / 0.6583 GB, free: 7.352 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.5987, allocations: 35.98 kB / 0.6583 GB, free: 7.316 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.6009, allocations: 0.5067 MB / 0.6588 GB, free: 6.809 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006106/0.6015, allocations: 247.2 kB / 0.6591 GB, free: 6.566 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.6027, allocations: 372.1 kB / 0.6594 GB, free: 6.195 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.6046, allocations: 0.8357 MB / 0.6602 GB, free: 5.359 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.6047, allocations: 0 / 0.6602 GB, free: 5.359 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6047, allocations: 0 / 0.6602 GB, free: 5.359 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.04e-05/0.6047, allocations: 0 / 0.6602 GB, free: 5.359 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003256/0.608, allocations: 0.9154 MB / 0.6611 GB, free: 4.395 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.55e-05/0.6081, allocations: 8.031 kB / 0.6611 GB, free: 4.387 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003651/0.6084, allocations: 98.7 kB / 0.6612 GB, free: 4.281 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000632/0.6091, allocations: 92.08 kB / 0.6613 GB, free: 4.191 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.6106, allocations: 0.5131 MB / 0.6618 GB, free: 3.637 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.6107, allocations: 101 kB / 0.6619 GB, free: 3.527 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.6109, allocations: 60.09 kB / 0.662 GB, free: 3.469 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.6129, allocations: 0.8071 MB / 0.6628 GB, free: 2.598 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.7e-05/0.613, allocations: 7.938 kB / 0.6628 GB, free: 2.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.6131, allocations: 23.98 kB / 0.6628 GB, free: 2.566 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.99e-05/0.6132, allocations: 44.97 kB / 0.6628 GB, free: 2.52 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.6149, allocations: 0.6439 MB / 0.6635 GB, free: 1.879 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00688/0.6218, allocations: 3.97 MB / 0.6673 GB, free: 13.63 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.6229, allocations: 416.3 kB / 0.6677 GB, free: 13.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.6234, allocations: 201.4 kB / 0.6679 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007867/0.6242, allocations: 0.7366 MB / 0.6686 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.6243, allocations: 38.89 kB / 0.6687 GB, free: 12.06 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 4.919e-06/0.6243, allocations: 0 / 0.6687 GB, free: 12.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.004726/0.629, allocations: 1.541 MB / 0.6702 GB, free: 10.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/0.6292, allocations: 132.5 kB / 0.6703 GB, free: 10.29 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008292/0.63, allocations: 0.5654 MB / 0.6709 GB, free: 9.715 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.273e-05/0.6301, allocations: 37.7 kB / 0.6709 GB, free: 9.672 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003767/0.6305, allocations: 358.9 kB / 0.6712 GB, free: 9.316 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.6307, allocations: 157.7 kB / 0.6714 GB, free: 9.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-05/0.6308, allocations: 16 kB / 0.6714 GB, free: 9.145 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002742/0.631, allocations: 382.7 kB / 0.6718 GB, free: 8.762 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004245/0.6315, allocations: 217.9 kB / 0.672 GB, free: 8.551 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006024/0.6321, allocations: 0.5084 MB / 0.6725 GB, free: 7.906 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.6332, allocations: 0.7523 MB / 0.6732 GB, free: 7.027 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.6332, allocations: 8 kB / 0.6732 GB, free: 7.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00198/0.6352, allocations: 0.9063 MB / 0.6741 GB, free: 6.102 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.6352, allocations: 8 kB / 0.6741 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.6352, allocations: 12 kB / 0.6741 GB, free: 6.082 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001516/0.6368, allocations: 295.2 kB / 0.6744 GB, free: 5.793 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.6372, allocations: 123.8 kB / 0.6745 GB, free: 5.672 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.6383, allocations: 0.8878 MB / 0.6754 GB, free: 4.758 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006116/0.6389, allocations: 51.97 kB / 0.6754 GB, free: 4.707 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.639, allocations: 36 kB / 0.6755 GB, free: 4.672 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0004136/0.6394, allocations: 241.5 kB / 0.6757 GB, free: 4.426 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.6396, allocations: 75.09 kB / 0.6758 GB, free: 4.352 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.6409, allocations: 0.7672 MB / 0.6765 GB, free: 3.566 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.641, allocations: 4 kB / 0.6765 GB, free: 3.562 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.641, allocations: 4 kB / 0.6765 GB, free: 3.559 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.641, allocations: 3.984 kB / 0.6765 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.6434, allocations: 1.399 MB / 0.6779 GB, free: 2.055 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.6434, allocations: 8.172 kB / 0.6779 GB, free: 2.047 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6444, allocations: 203.8 kB / 0.6781 GB, free: 1.848 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.713e-05/0.6445, allocations: 28.78 kB / 0.6781 GB, free: 1.816 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.6446, allocations: 12 kB / 0.6781 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3142/0.9588, allocations: 2.675 MB / 0.6808 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.9588, allocations: 3.5 kB / 0.6808 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.9611, allocations: 1.002 MB / 0.6817 GB, free: 141.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.9616, allocations: 206.3 kB / 0.6819 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.218e-05/0.9616, allocations: 12.69 kB / 0.6819 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.9621, allocations: 29.2 kB / 0.682 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.9622, allocations: 44.45 kB / 0.682 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.216e-05/0.9623, allocations: 25 kB / 0.682 GB, free: 141.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006387/0.963, allocations: 405.2 kB / 0.6824 GB, free: 141.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.963, allocations: 3.562 kB / 0.6824 GB, free: 141.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001198/0.9642, allocations: 223.8 kB / 0.6826 GB, free: 141.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002161/0.9663, allocations: 1.705 MB / 0.6843 GB, free: 140.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.9676, allocations: 0.5995 MB / 0.6849 GB, free: 139.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.9676, allocations: 0 / 0.6849 GB, free: 139.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009315/0.9686, allocations: 439.5 kB / 0.6853 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.9702, allocations: 322.5 kB / 0.6856 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005905/0.9761, allocations: 4.32 MB / 0.6898 GB, free: 137.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.9765, allocations: 0.9378 MB / 0.6908 GB, free: 136.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.9768, allocations: 243.8 kB / 0.691 GB, free: 136.5 MB / 490.7 MB Notification: Performance of SimCode: time 7.32e-07/0.9768, allocations: 0 / 0.691 GB, free: 136.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.748/5.724, allocations: 16.42 MB / 0.707 GB, free: 132.8 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat