Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 175 kB / 16.72 MB, free: 5.086 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.177/1.177, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0006956/0.0006956, allocations: 95.8 kB / 271.2 MB, free: 8.242 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.2967/0.2967, allocations: 43.55 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003942, allocations: 12 kB / 432.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.107, allocations: 58.84 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3011/0.4081, allocations: 134.4 MB / 0.6107 GB, free: 15.98 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006683/0.4149, allocations: 5.328 MB / 0.6159 GB, free: 10.66 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007017/0.4156, allocations: 27.75 kB / 0.6159 GB, free: 10.63 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008415/0.4165, allocations: 270.3 kB / 0.6162 GB, free: 10.36 MB / 442.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.002055/0.4185, allocations: 0.8551 MB / 0.617 GB, free: 9.504 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.4209, allocations: 0.8475 MB / 0.6178 GB, free: 8.672 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002226/0.4231, allocations: 2.207 MB / 0.62 GB, free: 6.461 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005581/0.4237, allocations: 394.4 kB / 0.6204 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.4247, allocations: 0.6538 MB / 0.621 GB, free: 5.426 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009067/0.4257, allocations: 0.7047 MB / 0.6217 GB, free: 4.719 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 9.506e-05/0.4258, allocations: 32 kB / 0.6217 GB, free: 4.688 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.4268, allocations: 0.5067 MB / 0.6222 GB, free: 4.18 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000252/0.4271, allocations: 243.3 kB / 0.6224 GB, free: 3.941 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003889/0.4275, allocations: 376.1 kB / 0.6228 GB, free: 3.566 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008946/0.4284, allocations: 0.8338 MB / 0.6236 GB, free: 2.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4284, allocations: 0 / 0.6236 GB, free: 2.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4284, allocations: 0 / 0.6236 GB, free: 2.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.4284, allocations: 0 / 0.6236 GB, free: 2.73 MB / 442.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.00168/0.4301, allocations: 0.9116 MB / 0.6245 GB, free: 1.766 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4302, allocations: 12.03 kB / 0.6245 GB, free: 1.754 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.4303, allocations: 94.7 kB / 0.6246 GB, free: 1.652 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.4306, allocations: 92.08 kB / 0.6247 GB, free: 1.562 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007103/0.4313, allocations: 0.5132 MB / 0.6252 GB, free: 1.012 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.4314, allocations: 96.97 kB / 0.6253 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-05/0.4315, allocations: 52.3 kB / 0.6253 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.4327, allocations: 0.8149 MB / 0.6261 GB, free: 15.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.4327, allocations: 7.938 kB / 0.6261 GB, free: 15.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.729e-05/0.4328, allocations: 32.61 kB / 0.6262 GB, free: 15.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.104e-05/0.4328, allocations: 36.98 kB / 0.6262 GB, free: 15.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009678/0.4338, allocations: 0.6478 MB / 0.6268 GB, free: 15.25 MB / 458.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.004283/0.4381, allocations: 3.971 MB / 0.6307 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.4389, allocations: 416.3 kB / 0.6311 GB, free: 10.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.4392, allocations: 209.3 kB / 0.6313 GB, free: 10.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005537/0.4397, allocations: 0.7327 MB / 0.632 GB, free: 9.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.4398, allocations: 42.83 kB / 0.6321 GB, free: 9.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.715e-06/0.4398, allocations: 0 / 0.6321 GB, free: 9.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.003089/0.4429, allocations: 1.537 MB / 0.6336 GB, free: 7.824 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.443, allocations: 140.5 kB / 0.6337 GB, free: 7.656 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006388/0.4436, allocations: 0.5654 MB / 0.6343 GB, free: 7.082 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.4437, allocations: 33.7 kB / 0.6343 GB, free: 7.043 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.4439, allocations: 358.9 kB / 0.6346 GB, free: 6.688 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.444, allocations: 157.8 kB / 0.6348 GB, free: 6.531 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.4441, allocations: 19.94 kB / 0.6348 GB, free: 6.512 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4442, allocations: 378.7 kB / 0.6352 GB, free: 6.133 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.4445, allocations: 209.9 kB / 0.6354 GB, free: 5.926 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.4451, allocations: 0.5123 MB / 0.6359 GB, free: 5.277 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008629/0.4459, allocations: 0.7601 MB / 0.6366 GB, free: 4.387 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.4459, allocations: 4 kB / 0.6366 GB, free: 4.383 MB / 458.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001616/0.4476, allocations: 0.9021 MB / 0.6375 GB, free: 3.473 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4476, allocations: 8 kB / 0.6375 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4476, allocations: 8 kB / 0.6375 GB, free: 3.457 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/0.4489, allocations: 288.9 kB / 0.6378 GB, free: 3.172 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003585/0.4493, allocations: 127.8 kB / 0.6379 GB, free: 3.047 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009478/0.4503, allocations: 0.8828 MB / 0.6388 GB, free: 2.141 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004621/0.4507, allocations: 48.03 kB / 0.6388 GB, free: 2.094 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.4508, allocations: 36 kB / 0.6389 GB, free: 2.059 MB / 458.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.0003196/0.4511, allocations: 249.5 kB / 0.6391 GB, free: 1.805 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.836e-05/0.4512, allocations: 75.03 kB / 0.6392 GB, free: 1.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.4525, allocations: 0.7685 MB / 0.6399 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.4525, allocations: 8.031 kB / 0.6399 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.4525, allocations: 7.984 kB / 0.6399 GB, free: 0.918 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.4526, allocations: 0 / 0.6399 GB, free: 0.918 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.4544, allocations: 1.407 MB / 0.6413 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4544, allocations: 4 kB / 0.6413 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009952/0.4554, allocations: 199.8 kB / 0.6415 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.446e-05/0.4555, allocations: 20.78 kB / 0.6415 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.4556, allocations: 16 kB / 0.6415 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/0.4574, allocations: 2.684 MB / 0.6442 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4575, allocations: 3.984 kB / 0.6442 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.4587, allocations: 0.9995 MB / 0.6451 GB, free: 11.17 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.459, allocations: 208.3 kB / 0.6453 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.537e-05/0.4591, allocations: 12 kB / 0.6453 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.4595, allocations: 39.84 kB / 0.6454 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.4596, allocations: 39.89 kB / 0.6454 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/0.4597, allocations: 27.92 kB / 0.6454 GB, free: 10.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004677/0.4602, allocations: 407 kB / 0.6458 GB, free: 10.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4602, allocations: 3.938 kB / 0.6458 GB, free: 10.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007343/0.4609, allocations: 216 kB / 0.646 GB, free: 10.22 MB / 474.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.002021/0.4629, allocations: 1.723 MB / 0.6477 GB, free: 8.438 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.4641, allocations: 0.5837 MB / 0.6483 GB, free: 7.852 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4642, allocations: 0 / 0.6483 GB, free: 7.852 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009621/0.4651, allocations: 442.3 kB / 0.6487 GB, free: 7.406 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.4668, allocations: 318.7 kB / 0.649 GB, free: 7.098 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.4729, allocations: 4.312 MB / 0.6532 GB, free: 2.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.4734, allocations: 0.9385 MB / 0.6542 GB, free: 1.625 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.4737, allocations: 243.3 kB / 0.6544 GB, free: 1.387 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/0.4737, allocations: 0 / 0.6544 GB, free: 1.387 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.726/5.2, allocations: 16.41 MB / 0.6704 GB, free: 0.9492 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat