Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00178/0.001781, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2359/0.2359, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 83.27 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1183, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4269/0.5453, allocations: 152.8 MB / 0.6182 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004419/0.5497, allocations: 3.253 MB / 0.6213 GB, free: 7.195 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.796e-05/0.5498, allocations: 0 / 0.6213 GB, free: 7.195 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004155/0.5503, allocations: 63.64 kB / 0.6214 GB, free: 7.133 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002817/0.5531, allocations: 1.064 MB / 0.6224 GB, free: 6.066 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.5537, allocations: 194.9 kB / 0.6226 GB, free: 5.879 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.5542, allocations: 366.7 kB / 0.623 GB, free: 5.52 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.071e-05/0.5542, allocations: 13.09 kB / 0.623 GB, free: 5.508 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.5546, allocations: 163.4 kB / 0.6231 GB, free: 5.348 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.5548, allocations: 111.7 kB / 0.6232 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.5548, allocations: 12 kB / 0.6233 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003106/0.5579, allocations: 1.559 MB / 0.6248 GB, free: 3.664 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.5581, allocations: 83.77 kB / 0.6249 GB, free: 3.582 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.5582, allocations: 111.5 kB / 0.625 GB, free: 3.473 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.5599, allocations: 1.013 MB / 0.6259 GB, free: 2.457 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.5599, allocations: 0 / 0.6259 GB, free: 2.457 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5599, allocations: 0 / 0.6259 GB, free: 2.457 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.5599, allocations: 4 kB / 0.626 GB, free: 2.453 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009998/0.561, allocations: 0.5545 MB / 0.6265 GB, free: 1.852 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.561, allocations: 12.03 kB / 0.6265 GB, free: 1.84 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.45e-05/0.5611, allocations: 54.73 kB / 0.6266 GB, free: 1.777 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004074/0.5652, allocations: 384.7 kB / 0.6269 GB, free: 1.402 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.5656, allocations: 268 kB / 0.6272 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.5656, allocations: 20.31 kB / 0.6272 GB, free: 1.082 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.423e-05/0.5657, allocations: 16 kB / 0.6272 GB, free: 1.066 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.5668, allocations: 0.4929 MB / 0.6277 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.5668, allocations: 0 / 0.6277 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.5668, allocations: 8 kB / 0.6277 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.5669, allocations: 15.98 kB / 0.6277 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.568, allocations: 0.5198 MB / 0.6282 GB, free: 20 kB / 462.1 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.002484/0.5705, allocations: 1.001 MB / 0.6292 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000655/0.5712, allocations: 305 kB / 0.6295 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.5715, allocations: 157.6 kB / 0.6296 GB, free: 14.49 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001964/0.5735, allocations: 0.9684 MB / 0.6306 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.5736, allocations: 34.56 kB / 0.6306 GB, free: 13.31 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 2.404e-06/0.5736, allocations: 4 kB / 0.6306 GB, free: 13.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001144/0.5747, allocations: 429.7 kB / 0.631 GB, free: 12.89 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.5748, allocations: 81.11 kB / 0.6311 GB, free: 12.79 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.5749, allocations: 113.7 kB / 0.6312 GB, free: 12.67 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.575, allocations: 33.7 kB / 0.6313 GB, free: 12.63 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.5751, allocations: 112.3 kB / 0.6314 GB, free: 12.51 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.5752, allocations: 110.4 kB / 0.6315 GB, free: 12.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.5753, allocations: 73.95 kB / 0.6315 GB, free: 12.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5755, allocations: 334.8 kB / 0.6319 GB, free: 11.99 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.5758, allocations: 121.6 kB / 0.632 GB, free: 11.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.5762, allocations: 206.9 kB / 0.6322 GB, free: 11.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.5768, allocations: 356.2 kB / 0.6325 GB, free: 11.25 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.5768, allocations: 0 / 0.6325 GB, free: 11.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001108/0.578, allocations: 396.5 kB / 0.6329 GB, free: 10.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.578, allocations: 4 kB / 0.6329 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.578, allocations: 4 kB / 0.6329 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.578, allocations: 4 kB / 0.6329 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.5785, allocations: 75.89 kB / 0.633 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.5785, allocations: 9.094 kB / 0.633 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.579, allocations: 35.98 kB / 0.633 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.191e-05/0.5791, allocations: 12 kB / 0.633 GB, free: 10.72 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002766/0.5793, allocations: 149.6 kB / 0.6332 GB, free: 10.56 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.5796, allocations: 23.62 kB / 0.6332 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.5806, allocations: 377.5 kB / 0.6336 GB, free: 10.17 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5806, allocations: 4 kB / 0.6336 GB, free: 10.17 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5806, allocations: 4 kB / 0.6336 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.5806, allocations: 3.984 kB / 0.6336 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007942/0.5814, allocations: 377.1 kB / 0.6339 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.5815, allocations: 4 kB / 0.6339 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.5819, allocations: 51.91 kB / 0.634 GB, free: 9.684 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/0.5819, allocations: 4 kB / 0.634 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.417e-05/0.582, allocations: 11.98 kB / 0.634 GB, free: 9.668 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.582, allocations: 0 / 0.634 GB, free: 9.668 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.582, allocations: 4 kB / 0.634 GB, free: 9.664 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.5832, allocations: 0.5726 MB / 0.6346 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.956e-05/0.5833, allocations: 92.86 kB / 0.6346 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/0.5833, allocations: 8.062 kB / 0.6347 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004869/0.5838, allocations: 23.91 kB / 0.6347 GB, free: 8.934 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.5839, allocations: 19.97 kB / 0.6347 GB, free: 8.914 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.5839, allocations: 19.98 kB / 0.6347 GB, free: 8.895 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.253e-05/0.584, allocations: 95.52 kB / 0.6348 GB, free: 8.801 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.584, allocations: 0 / 0.6348 GB, free: 8.801 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009344/0.585, allocations: 239.8 kB / 0.635 GB, free: 8.566 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,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 (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002571/0.5875, allocations: 1.441 MB / 0.6364 GB, free: 7.098 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0009189/0.5885, allocations: 332.2 kB / 0.6368 GB, free: 6.773 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5885, allocations: 0 / 0.6368 GB, free: 6.773 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.5889, allocations: 151.8 kB / 0.6369 GB, free: 6.625 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007193/0.5896, allocations: 101.2 kB / 0.637 GB, free: 6.535 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/0.5939, allocations: 2.784 MB / 0.6397 GB, free: 3.609 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.5943, allocations: 0.7402 MB / 0.6404 GB, free: 2.844 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005004/0.5948, allocations: 82.02 kB / 0.6405 GB, free: 2.766 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.595, allocations: 63.41 kB / 0.6406 GB, free: 2.707 MB / 478.1 MB Notification: Performance of SimCode: time 4.8e-07/0.595, allocations: 0 / 0.6406 GB, free: 2.707 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.633, allocations: 10.98 MB / 0.6513 GB, free: 7.836 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.973, allocations: 15.86 kB / 0.6513 GB, free: 7.82 MB / 494.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)