Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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) 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: translateModel(Modelica.Media.Examples.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="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir") translateModel(Modelica.Media.Examples.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="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 179.3 kB / 16.41 MB, free: 5.727 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.277/1.277, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007271/0.0007272, allocations: 90.34 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002725/0.0002725, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.2852/0.4732, allocations: 137.1 MB / 0.4997 GB, free: 1.559 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.4756, allocations: 2.823 MB / 0.5024 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.008e-05/0.4756, allocations: 0 / 0.5024 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.4759, allocations: 50.28 kB / 0.5025 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.4771, allocations: 0.6939 MB / 0.5031 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.4774, allocations: 154.7 kB / 0.5033 GB, free: 1.488 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.4777, allocations: 409.3 kB / 0.5037 GB, free: 1.484 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.4778, allocations: 16.95 kB / 0.5037 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.4779, allocations: 137.8 kB / 0.5038 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.4781, allocations: 118.9 kB / 0.5039 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.4781, allocations: 6.25 kB / 0.5039 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.4797, allocations: 1.05 MB / 0.505 GB, free: 1.469 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.824e-05/0.4798, allocations: 75.08 kB / 0.505 GB, free: 1.469 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.3e-05/0.4798, allocations: 60.77 kB / 0.5051 GB, free: 1.438 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005775/0.4804, allocations: 0.6062 MB / 0.5057 GB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.4804, allocations: 7 kB / 0.5057 GB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4804, allocations: 1.75 kB / 0.5057 GB, free: 1.398 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.4804, allocations: 0 / 0.5057 GB, free: 1.398 MB / 378.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.0006669/0.4811, allocations: 498.4 kB / 0.5062 GB, free: 16.97 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.4811, allocations: 11.56 kB / 0.5062 GB, free: 16.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003414/0.4846, allocations: 377.3 kB / 0.5066 GB, free: 16.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.4848, allocations: 258.6 kB / 0.5068 GB, free: 16.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4849, allocations: 14.16 kB / 0.5068 GB, free: 16.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.4849, allocations: 26.38 kB / 0.5068 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008125/0.4858, allocations: 496.6 kB / 0.5073 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.4858, allocations: 4 kB / 0.5073 GB, free: 16.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.718e-05/0.4858, allocations: 13.44 kB / 0.5073 GB, free: 16.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.4859, allocations: 5.281 kB / 0.5073 GB, free: 16.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009308/0.4868, allocations: 0.5142 MB / 0.5078 GB, free: 16.68 MB / 394.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.001909/0.4887, allocations: 0.9905 MB / 0.5088 GB, free: 16.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/0.4892, allocations: 287.6 kB / 0.5091 GB, free: 16.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002905/0.4895, allocations: 157.9 kB / 0.5092 GB, free: 16.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001701/0.4912, allocations: 0.8967 MB / 0.5101 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.4913, allocations: 36.66 kB / 0.5101 GB, free: 15.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.4913, allocations: 0 / 0.5101 GB, free: 15.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008791/0.4921, allocations: 404.8 kB / 0.5105 GB, free: 15.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.4922, allocations: 80.27 kB / 0.5106 GB, free: 15.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.198e-05/0.4923, allocations: 117.5 kB / 0.5107 GB, free: 15.11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.4923, allocations: 34.7 kB / 0.5107 GB, free: 15.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.4924, allocations: 109.4 kB / 0.5108 GB, free: 14.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.4924, allocations: 108.9 kB / 0.511 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.4925, allocations: 3.562 kB / 0.511 GB, free: 14.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.4926, allocations: 333.5 kB / 0.5113 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.4928, allocations: 113.4 kB / 0.5114 GB, free: 14.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.493, allocations: 207.9 kB / 0.5116 GB, free: 14.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.4933, allocations: 137.1 kB / 0.5117 GB, free: 14.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4933, allocations: 4 kB / 0.5117 GB, free: 14.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000598/0.4939, allocations: 368.2 kB / 0.5121 GB, free: 14.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.4939, allocations: 9.312 kB / 0.5121 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.4939, allocations: 3 kB / 0.5121 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.4939, allocations: 9.406 kB / 0.5121 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.4943, allocations: 74.72 kB / 0.5122 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4944, allocations: 7.875 kB / 0.5122 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.4947, allocations: 36.44 kB / 0.5122 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.4947, allocations: 19.69 kB / 0.5122 GB, free: 14.42 MB / 394.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.0001295/0.4948, allocations: 148.2 kB / 0.5124 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.555e-05/0.4949, allocations: 20.41 kB / 0.5124 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007097/0.4956, allocations: 371.8 kB / 0.5127 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4957, allocations: 2.906 kB / 0.5127 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4957, allocations: 0.5625 kB / 0.5127 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.4957, allocations: 6.344 kB / 0.5127 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/0.4962, allocations: 369 kB / 0.5131 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4962, allocations: 0.6875 kB / 0.5131 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.4967, allocations: 59.64 kB / 0.5132 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.4967, allocations: 6.062 kB / 0.5132 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.4967, allocations: 13.09 kB / 0.5132 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4967, allocations: 2 kB / 0.5132 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4967, allocations: 1.156 kB / 0.5132 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008611/0.4976, allocations: 0.5473 MB / 0.5137 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.4977, allocations: 97.23 kB / 0.5138 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.4977, allocations: 6.219 kB / 0.5138 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/0.4981, allocations: 22.06 kB / 0.5138 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.4982, allocations: 19.22 kB / 0.5138 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/0.4982, allocations: 17.44 kB / 0.5139 GB, free: 13.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.017e-05/0.4983, allocations: 92.56 kB / 0.514 GB, free: 13.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4983, allocations: 1.859 kB / 0.514 GB, free: 13.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006766/0.4989, allocations: 224.5 kB / 0.5142 GB, free: 13.57 MB / 394.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.0008545/0.4998, allocations: 365.9 kB / 0.5145 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005751/0.5004, allocations: 290.5 kB / 0.5148 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.5004, allocations: 5 kB / 0.5148 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.5007, allocations: 147.6 kB / 0.5149 GB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.5013, allocations: 91.31 kB / 0.515 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.5024, allocations: 0.9334 MB / 0.5159 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.5027, allocations: 0.737 MB / 0.5167 GB, free: 12.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.5029, allocations: 39.95 kB / 0.5167 GB, free: 12.1 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5029, allocations: 0 / 0.5167 GB, free: 12.1 MB / 394.7 MB Notification: Performance of Templates: time 0.008612/0.5115, allocations: 6.457 MB / 0.523 GB, free: 10.43 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches