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.0009901/0.0009901, allocations: 175.2 kB / 16.72 MB, free: 4.957 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.294/1.294, 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.0007713/0.0007714, allocations: 89.41 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.215, allocations: 47.58 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.318/0.533, allocations: 137.1 MB / 0.5002 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.5355, allocations: 2.824 MB / 0.503 GB, free: 1.488 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.889e-05/0.5356, allocations: 0 / 0.503 GB, free: 1.488 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.5359, allocations: 52.3 kB / 0.503 GB, free: 1.488 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.5375, allocations: 0.89 MB / 0.5039 GB, free: 1.441 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.5379, allocations: 178 kB / 0.5041 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.5382, allocations: 407.8 kB / 0.5044 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.866e-05/0.5382, allocations: 14.47 kB / 0.5045 GB, free: 1.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.5384, allocations: 136.4 kB / 0.5046 GB, free: 1.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.5386, allocations: 120 kB / 0.5047 GB, free: 1.426 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.5386, allocations: 6.25 kB / 0.5047 GB, free: 1.426 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.5409, allocations: 1.729 MB / 0.5064 GB, free: 1.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.807e-05/0.541, allocations: 75.47 kB / 0.5065 GB, free: 1.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.95e-05/0.5411, allocations: 121.8 kB / 0.5066 GB, free: 1.379 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007923/0.5419, allocations: 0.7575 MB / 0.5073 GB, free: 1.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.542, allocations: 5.531 kB / 0.5073 GB, free: 1.344 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.542, allocations: 0 / 0.5073 GB, free: 1.344 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.542, allocations: 0.5938 kB / 0.5073 GB, free: 1.344 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.0007456/0.5427, allocations: 0.4889 MB / 0.5078 GB, free: 16.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.5428, allocations: 9.125 kB / 0.5078 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00325/0.546, allocations: 383.4 kB / 0.5082 GB, free: 16.9 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.5463, allocations: 259.9 kB / 0.5084 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.5464, allocations: 14.97 kB / 0.5084 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/0.5464, allocations: 23.53 kB / 0.5085 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008315/0.5473, allocations: 494.9 kB / 0.5089 GB, free: 16.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.5473, allocations: 6.516 kB / 0.5089 GB, free: 16.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.5474, allocations: 10.03 kB / 0.509 GB, free: 16.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.5474, allocations: 2.938 kB / 0.509 GB, free: 16.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009736/0.5484, allocations: 0.5071 MB / 0.5094 GB, free: 16.63 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.002124/0.5505, allocations: 0.9992 MB / 0.5104 GB, free: 16.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/0.551, allocations: 288.5 kB / 0.5107 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.5512, allocations: 161.8 kB / 0.5109 GB, free: 16.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001588/0.5528, allocations: 0.8899 MB / 0.5117 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.5529, allocations: 39.7 kB / 0.5118 GB, free: 15.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.305e-06/0.5529, allocations: 0 / 0.5118 GB, free: 15.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008987/0.5538, allocations: 403.7 kB / 0.5121 GB, free: 15.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.5539, allocations: 83.47 kB / 0.5122 GB, free: 15.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.457e-05/0.554, allocations: 110.6 kB / 0.5123 GB, free: 15.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.554, allocations: 35.92 kB / 0.5124 GB, free: 15.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.5541, allocations: 115.2 kB / 0.5125 GB, free: 14.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.5541, allocations: 106 kB / 0.5126 GB, free: 14.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.5542, allocations: 3.5 kB / 0.5126 GB, free: 14.85 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.5543, allocations: 329.4 kB / 0.5129 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.5545, allocations: 110.3 kB / 0.513 GB, free: 14.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.5547, allocations: 206.5 kB / 0.5132 GB, free: 14.44 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/0.5552, allocations: 339.8 kB / 0.5135 GB, free: 14.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5552, allocations: 1.188 kB / 0.5135 GB, free: 14.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000704/0.5559, allocations: 386.3 kB / 0.5139 GB, free: 14.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.556, allocations: 6.5 kB / 0.5139 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.556, allocations: 2.656 kB / 0.5139 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.556, allocations: 8.844 kB / 0.5139 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.5564, allocations: 78.56 kB / 0.514 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.5565, allocations: 7.906 kB / 0.514 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.5568, allocations: 30.08 kB / 0.514 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.5568, allocations: 18.38 kB / 0.514 GB, free: 14.27 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.0001409/0.557, allocations: 140.5 kB / 0.5142 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.153e-05/0.5571, allocations: 24.25 kB / 0.5142 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007734/0.5578, allocations: 365.8 kB / 0.5145 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.5579, allocations: 3.031 kB / 0.5145 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5579, allocations: 0.9062 kB / 0.5145 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5579, allocations: 3.953 kB / 0.5145 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005312/0.5584, allocations: 371.5 kB / 0.5149 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.5584, allocations: 0.6875 kB / 0.5149 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.5588, allocations: 60.17 kB / 0.515 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.5588, allocations: 1.031 kB / 0.515 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.5589, allocations: 14.59 kB / 0.515 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.5589, allocations: 4.219 kB / 0.515 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5589, allocations: 4.797 kB / 0.515 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008278/0.5597, allocations: 0.5472 MB / 0.5155 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.5598, allocations: 96.73 kB / 0.5156 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.5598, allocations: 7.25 kB / 0.5156 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.5602, allocations: 15.47 kB / 0.5156 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.5603, allocations: 23.09 kB / 0.5157 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.5603, allocations: 19.95 kB / 0.5157 GB, free: 13.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.73e-05/0.5604, allocations: 89 kB / 0.5158 GB, free: 13.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.5604, allocations: 0 / 0.5158 GB, free: 13.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008783/0.5612, allocations: 239 kB / 0.516 GB, free: 13.42 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.001075/0.5623, allocations: 436 kB / 0.5164 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006/0.5629, allocations: 288.9 kB / 0.5167 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.563, allocations: 1.094 kB / 0.5167 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.5632, allocations: 146.2 kB / 0.5168 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.5638, allocations: 90.22 kB / 0.5169 GB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.565, allocations: 0.937 MB / 0.5178 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.5653, allocations: 0.7345 MB / 0.5185 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.5655, allocations: 39.19 kB / 0.5186 GB, free: 11.95 MB / 394.7 MB Notification: Performance of SimCode: time 2.01e-07/0.5655, allocations: 0 / 0.5186 GB, free: 11.95 MB / 394.7 MB Notification: Performance of Templates: time 0.008784/0.5743, allocations: 6.648 MB / 0.5251 GB, free: 9.828 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