Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008528/0.000853, allocations: 175.4 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000762/0.0007618, allocations: 85.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3292/0.3292, allocations: 43.57 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003629, allocations: 12 kB / 432.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1226, allocations: 58.85 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4267/0.5494, allocations: 163.9 MB / 0.6395 GB, free: 2.672 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.5603, allocations: 7.739 MB / 0.6471 GB, free: 10.93 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.5614, allocations: 27.81 kB / 0.6471 GB, free: 10.9 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.5626, allocations: 254.4 kB / 0.6473 GB, free: 10.65 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004768/0.5674, allocations: 1.318 MB / 0.6486 GB, free: 9.328 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002971/0.5704, allocations: 0.9167 MB / 0.6495 GB, free: 8.426 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.5732, allocations: 2.242 MB / 0.6517 GB, free: 6.18 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008457/0.5741, allocations: 399.4 kB / 0.6521 GB, free: 5.789 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.577, allocations: 1.082 MB / 0.6531 GB, free: 4.707 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.5783, allocations: 0.6502 MB / 0.6538 GB, free: 4.055 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002508/0.5785, allocations: 32 kB / 0.6538 GB, free: 4.023 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001973/0.5805, allocations: 0.668 MB / 0.6545 GB, free: 3.355 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004194/0.581, allocations: 235.3 kB / 0.6547 GB, free: 3.125 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007698/0.5817, allocations: 380.1 kB / 0.655 GB, free: 2.746 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.5833, allocations: 1.013 MB / 0.656 GB, free: 1.73 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.5833, allocations: 0 / 0.656 GB, free: 1.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5833, allocations: 0 / 0.656 GB, free: 1.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.821e-05/0.5834, allocations: 0 / 0.656 GB, free: 1.73 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.002429/0.5858, allocations: 0.9893 MB / 0.657 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.5858, allocations: 12.03 kB / 0.657 GB, free: 0.6797 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002321/0.5861, allocations: 98.5 kB / 0.6571 GB, free: 0.5742 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008556/0.5869, allocations: 131.9 kB / 0.6572 GB, free: 456 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009207/0.5879, allocations: 0.5003 MB / 0.6577 GB, free: 15.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.588, allocations: 104.3 kB / 0.6578 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.5882, allocations: 44 kB / 0.6579 GB, free: 15.74 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.5895, allocations: 0.8213 MB / 0.6587 GB, free: 14.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.5895, allocations: 0 / 0.6587 GB, free: 14.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.097e-05/0.5896, allocations: 23.98 kB / 0.6587 GB, free: 14.82 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.676e-05/0.5897, allocations: 36.98 kB / 0.6587 GB, free: 14.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.5908, allocations: 0.6282 MB / 0.6593 GB, free: 14.16 MB / 490.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.004902/0.5957, allocations: 3.99 MB / 0.6632 GB, free: 9.922 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005962/0.5963, allocations: 347.6 kB / 0.6636 GB, free: 9.574 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002655/0.5966, allocations: 174 kB / 0.6637 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004512/0.5971, allocations: 365.5 kB / 0.6641 GB, free: 8.996 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.5971, allocations: 46.77 kB / 0.6641 GB, free: 8.941 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 2.384e-06/0.5971, allocations: 0 / 0.6641 GB, free: 8.941 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.005432/0.6025, allocations: 1.652 MB / 0.6657 GB, free: 7.215 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.6026, allocations: 140.4 kB / 0.6659 GB, free: 7.047 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007467/0.6034, allocations: 0.6094 MB / 0.6665 GB, free: 6.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.895e-05/0.6034, allocations: 33.7 kB / 0.6665 GB, free: 6.391 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.6037, allocations: 370.8 kB / 0.6669 GB, free: 6.023 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.6039, allocations: 134.1 kB / 0.667 GB, free: 5.891 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.6039, allocations: 16 kB / 0.667 GB, free: 5.875 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.6041, allocations: 374.8 kB / 0.6674 GB, free: 5.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.6044, allocations: 201.9 kB / 0.6675 GB, free: 5.305 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005477/0.605, allocations: 0.5086 MB / 0.668 GB, free: 4.652 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009636/0.606, allocations: 0.7407 MB / 0.6688 GB, free: 3.773 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.606, allocations: 0 / 0.6688 GB, free: 3.773 MB / 490.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001525/0.6075, allocations: 0.8825 MB / 0.6696 GB, free: 2.883 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.6075, allocations: 15.94 kB / 0.6696 GB, free: 2.867 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.6076, allocations: 8 kB / 0.6697 GB, free: 2.859 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.609, allocations: 328.6 kB / 0.67 GB, free: 2.535 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.6093, allocations: 123.8 kB / 0.6701 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.6105, allocations: 0.9246 MB / 0.671 GB, free: 1.465 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005407/0.611, allocations: 47.98 kB / 0.671 GB, free: 1.418 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.182e-05/0.6111, allocations: 63.98 kB / 0.6711 GB, free: 1.355 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (67): * Single equations (assignments): 66 * 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 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003659/0.6115, allocations: 253.5 kB / 0.6713 GB, free: 1.098 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.6116, allocations: 75.16 kB / 0.6714 GB, free: 1.023 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.6132, allocations: 0.6709 MB / 0.6721 GB, free: 340 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.6132, allocations: 4 kB / 0.6721 GB, free: 336 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6132, allocations: 0 / 0.6721 GB, free: 336 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.6132, allocations: 8 kB / 0.6721 GB, free: 328 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2442/0.8574, allocations: 1.59 MB / 0.6736 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.8575, allocations: 5.25 kB / 0.6736 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.8585, allocations: 206.5 kB / 0.6738 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.375e-05/0.8586, allocations: 21.97 kB / 0.6738 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.481e-05/0.8587, allocations: 21.28 kB / 0.6739 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.8602, allocations: 2.689 MB / 0.6765 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.8602, allocations: 2.344 kB / 0.6765 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.8616, allocations: 0.8097 MB / 0.6773 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.8619, allocations: 192.1 kB / 0.6775 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.573e-05/0.862, allocations: 9.453 kB / 0.6775 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003938/0.8624, allocations: 26.69 kB / 0.6775 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.8626, allocations: 42.42 kB / 0.6775 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.8626, allocations: 46.36 kB / 0.6776 GB, free: 147.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005451/0.8632, allocations: 431.3 kB / 0.678 GB, free: 147.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8632, allocations: 0 / 0.678 GB, free: 147.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001061/0.8643, allocations: 297.4 kB / 0.6783 GB, free: 147.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.002186/0.8665, allocations: 1.596 MB / 0.6798 GB, free: 147.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.8676, allocations: 0.5405 MB / 0.6804 GB, free: 147.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.8676, allocations: 2.031 kB / 0.6804 GB, free: 147.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/0.8686, allocations: 410.5 kB / 0.6808 GB, free: 147 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.8703, allocations: 345.6 kB / 0.6811 GB, free: 147 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006028/0.8763, allocations: 4.276 MB / 0.6853 GB, free: 145.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.8767, allocations: 0.9286 MB / 0.6862 GB, free: 144.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/0.8772, allocations: 284.1 kB / 0.6864 GB, free: 144.6 MB / 490.7 MB Notification: Performance of SimCode: time 8.62e-07/0.8772, allocations: 0 / 0.6864 GB, free: 144.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.716/5.593, allocations: 17.69 MB / 0.7037 GB, free: 142.9 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat does not exist to compare? outputFormat=mat