Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.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: translateModel(ModelicaTest.Media.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir") translateModel(ModelicaTest.Media.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007752/0.0007753, allocations: 101.6 kB / 295.5 MB, free: 6.711 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2929/0.2929, allocations: 44.83 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.00026, allocations: 8 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3078, allocations: 62.95 MB / 0.5159 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1395/0.4473, allocations: 136 MB / 0.6487 GB, free: 1.141 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.4505, allocations: 2.915 MB / 0.6515 GB, free: 14.22 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.03e-05/0.4506, allocations: 4 kB / 0.6516 GB, free: 14.21 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002944/0.4509, allocations: 47.72 kB / 0.6516 GB, free: 14.17 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001942/0.4529, allocations: 0.9182 MB / 0.6525 GB, free: 13.25 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.4533, allocations: 180.3 kB / 0.6527 GB, free: 13.08 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.4537, allocations: 398.6 kB / 0.653 GB, free: 12.69 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.742e-05/0.4538, allocations: 20.7 kB / 0.6531 GB, free: 12.67 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.454, allocations: 139.5 kB / 0.6532 GB, free: 12.54 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.4542, allocations: 119.5 kB / 0.6533 GB, free: 12.42 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.4543, allocations: 8 kB / 0.6533 GB, free: 12.41 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.4571, allocations: 1.765 MB / 0.655 GB, free: 10.64 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.4572, allocations: 71.83 kB / 0.6551 GB, free: 10.57 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.4573, allocations: 117.4 kB / 0.6552 GB, free: 10.45 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.4585, allocations: 0.7616 MB / 0.656 GB, free: 9.688 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4585, allocations: 0 / 0.656 GB, free: 9.688 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.88e-06/0.4585, allocations: 0 / 0.656 GB, free: 9.688 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.4585, allocations: 3.938 kB / 0.656 GB, free: 9.684 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.000778/0.4593, allocations: 0.5033 MB / 0.6565 GB, free: 9.133 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4594, allocations: 8.875 kB / 0.6565 GB, free: 9.125 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003413/0.4628, allocations: 388.2 kB / 0.6568 GB, free: 8.746 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.4632, allocations: 259.8 kB / 0.6571 GB, free: 8.453 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.4632, allocations: 20.25 kB / 0.6571 GB, free: 8.434 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.68e-05/0.4633, allocations: 20 kB / 0.6571 GB, free: 8.414 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009349/0.4642, allocations: 485.5 kB / 0.6576 GB, free: 7.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.4642, allocations: 3.938 kB / 0.6576 GB, free: 7.926 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.4643, allocations: 12 kB / 0.6576 GB, free: 7.914 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.4643, allocations: 8 kB / 0.6576 GB, free: 7.906 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00096/0.4653, allocations: 0.4997 MB / 0.6581 GB, free: 7.406 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.002123/0.4674, allocations: 0.985 MB / 0.6591 GB, free: 6.367 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.468, allocations: 289.1 kB / 0.6593 GB, free: 6.066 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.4683, allocations: 157.6 kB / 0.6595 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001673/0.4699, allocations: 0.9722 MB / 0.6604 GB, free: 4.766 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.47, allocations: 38.55 kB / 0.6605 GB, free: 4.719 MB / 474.7 MB Notification: Performance of pre-optimization done (n=29): time 2.856e-06/0.47, allocations: 4 kB / 0.6605 GB, free: 4.715 MB / 474.7 MB Notification: Performance of matching and sorting (n=29): time 0.000914/0.4709, allocations: 403.7 kB / 0.6609 GB, free: 4.316 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.471, allocations: 81.11 kB / 0.6609 GB, free: 4.219 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.826e-05/0.4711, allocations: 113.7 kB / 0.6611 GB, free: 4.098 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.4711, allocations: 33.7 kB / 0.6611 GB, free: 4.059 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.474e-05/0.4712, allocations: 112.4 kB / 0.6612 GB, free: 3.945 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.885e-05/0.4713, allocations: 110.4 kB / 0.6613 GB, free: 3.836 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.4713, allocations: 4 kB / 0.6613 GB, free: 3.832 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4715, allocations: 334.8 kB / 0.6616 GB, free: 3.496 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.4717, allocations: 116.6 kB / 0.6617 GB, free: 3.383 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.472, allocations: 203.4 kB / 0.6619 GB, free: 3.148 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.4726, allocations: 331.8 kB / 0.6622 GB, free: 2.789 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4726, allocations: 3.938 kB / 0.6622 GB, free: 2.785 MB / 474.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007466/0.4733, allocations: 380.7 kB / 0.6626 GB, free: 2.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.4734, allocations: 6.5 kB / 0.6626 GB, free: 2.406 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.4734, allocations: 4 kB / 0.6626 GB, free: 2.402 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.4734, allocations: 4 kB / 0.6626 GB, free: 2.398 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/0.4739, allocations: 75.83 kB / 0.6627 GB, free: 2.324 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.4739, allocations: 4 kB / 0.6627 GB, free: 2.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.4742, allocations: 43.98 kB / 0.6627 GB, free: 2.277 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.4743, allocations: 16 kB / 0.6628 GB, free: 2.262 MB / 474.7 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 (39): * Single equations (assignments): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.4745, allocations: 145.7 kB / 0.6629 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.4746, allocations: 15.89 kB / 0.6629 GB, free: 2.094 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008043/0.4754, allocations: 371.7 kB / 0.6633 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4754, allocations: 0 / 0.6633 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.4754, allocations: 4 kB / 0.6633 GB, free: 1.723 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4754, allocations: 0 / 0.6633 GB, free: 1.723 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006166/0.4761, allocations: 372.2 kB / 0.6636 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4761, allocations: 0 / 0.6636 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000391/0.4765, allocations: 55.91 kB / 0.6637 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.4765, allocations: 0 / 0.6637 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.4765, allocations: 11.98 kB / 0.6637 GB, free: 1.238 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.4765, allocations: 4 kB / 0.6637 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4765, allocations: 0 / 0.6637 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008561/0.4774, allocations: 0.5548 MB / 0.6642 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.4775, allocations: 92.89 kB / 0.6643 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.4775, allocations: 8.062 kB / 0.6643 GB, free: 0.5469 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.4779, allocations: 31.81 kB / 0.6644 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.478, allocations: 15.98 kB / 0.6644 GB, free: 0.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.478, allocations: 19.98 kB / 0.6644 GB, free: 492 kB / 474.7 MB Notification: Performance of sorting global known variables: time 5.145e-05/0.4781, allocations: 95.19 kB / 0.6645 GB, free: 396 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4781, allocations: 0 / 0.6645 GB, free: 396 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008782/0.479, allocations: 235.9 kB / 0.6647 GB, free: 160 kB / 474.7 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 (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001278/0.4803, allocations: 442.6 kB / 0.6651 GB, free: 15.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005842/0.4809, allocations: 287.7 kB / 0.6654 GB, free: 15.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4809, allocations: 4 kB / 0.6654 GB, free: 15.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.4812, allocations: 150.5 kB / 0.6656 GB, free: 15.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006274/0.4818, allocations: 77.45 kB / 0.6656 GB, free: 15.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4831, allocations: 0.9357 MB / 0.6665 GB, free: 14.23 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.4834, allocations: 0.7326 MB / 0.6673 GB, free: 13.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.4836, allocations: 39.42 kB / 0.6673 GB, free: 13.44 MB / 490.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4836, allocations: 0 / 0.6673 GB, free: 13.44 MB / 490.7 MB Notification: Performance of Templates: time 0.01027/0.4939, allocations: 6.58 MB / 0.6737 GB, free: 6.859 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches