Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009924/0.0009924, allocations: 107.7 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009902/0.0009903, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 241.8 MB, free: 13.9 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2189/0.2189, allocations: 44.17 MB / 336.1 MB, free: 2.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.72 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1606, allocations: 60.82 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4989/0.6596, allocations: 147.7 MB / 0.6017 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004378/0.664, allocations: 3.232 MB / 0.6049 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.6642, allocations: 0 / 0.6049 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005433/0.6648, allocations: 55.7 kB / 0.605 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003158/0.668, allocations: 0.9474 MB / 0.6059 GB, free: 9.477 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.6687, allocations: 184.9 kB / 0.6061 GB, free: 9.301 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006972/0.6694, allocations: 478.5 kB / 0.6065 GB, free: 8.832 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.6695, allocations: 13.08 kB / 0.6065 GB, free: 8.816 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.6698, allocations: 143.5 kB / 0.6067 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002634/0.6701, allocations: 119.6 kB / 0.6068 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.6701, allocations: 8 kB / 0.6068 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.6735, allocations: 1.758 MB / 0.6085 GB, free: 6.789 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.6736, allocations: 71.83 kB / 0.6086 GB, free: 6.719 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.6737, allocations: 99.58 kB / 0.6087 GB, free: 6.621 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001852/0.6756, allocations: 1.118 MB / 0.6098 GB, free: 5.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.6756, allocations: 7.938 kB / 0.6098 GB, free: 5.492 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6756, allocations: 0 / 0.6098 GB, free: 5.492 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.6756, allocations: 0 / 0.6098 GB, free: 5.492 MB / 446.1 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.001137/0.6768, allocations: 0.539 MB / 0.6103 GB, free: 4.906 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/0.6769, allocations: 8.031 kB / 0.6103 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00381/0.6807, allocations: 392.2 kB / 0.6107 GB, free: 4.516 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004574/0.6811, allocations: 264.2 kB / 0.6109 GB, free: 4.219 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.6812, allocations: 16.31 kB / 0.6109 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.6813, allocations: 20 kB / 0.611 GB, free: 4.184 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.6823, allocations: 485.3 kB / 0.6114 GB, free: 3.699 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.6824, allocations: 11.88 kB / 0.6114 GB, free: 3.688 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.6824, allocations: 8.812 kB / 0.6114 GB, free: 3.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.6825, allocations: 4 kB / 0.6114 GB, free: 3.676 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.6836, allocations: 0.5036 MB / 0.6119 GB, free: 3.172 MB / 446.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.00236/0.6859, allocations: 0.9818 MB / 0.6129 GB, free: 2.137 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006005/0.6865, allocations: 297 kB / 0.6132 GB, free: 1.828 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.6868, allocations: 154.1 kB / 0.6133 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001911/0.6887, allocations: 0.9801 MB / 0.6143 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.6888, allocations: 38.5 kB / 0.6143 GB, free: 496 kB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 2.023e-06/0.6888, allocations: 4 kB / 0.6143 GB, free: 492 kB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.001012/0.6898, allocations: 405 kB / 0.6147 GB, free: 84 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.6899, allocations: 77.11 kB / 0.6148 GB, free: 15.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.69, allocations: 116.1 kB / 0.6149 GB, free: 15.87 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.6901, allocations: 37.64 kB / 0.6149 GB, free: 15.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.6902, allocations: 116.4 kB / 0.615 GB, free: 15.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.607e-05/0.6903, allocations: 102.5 kB / 0.6151 GB, free: 15.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.6904, allocations: 66.03 kB / 0.6152 GB, free: 15.53 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.6905, allocations: 326.8 kB / 0.6155 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.6908, allocations: 116.6 kB / 0.6156 GB, free: 15.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.6911, allocations: 201.2 kB / 0.6158 GB, free: 14.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005604/0.6917, allocations: 344.1 kB / 0.6161 GB, free: 14.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/0.6917, allocations: 7.875 kB / 0.6162 GB, free: 14.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007162/0.6924, allocations: 373.1 kB / 0.6165 GB, free: 14.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.6924, allocations: 8 kB / 0.6165 GB, free: 14.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.6924, allocations: 0 / 0.6165 GB, free: 14.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.6925, allocations: 8 kB / 0.6165 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/0.6929, allocations: 75.89 kB / 0.6166 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.6929, allocations: 4.312 kB / 0.6166 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.6932, allocations: 35.77 kB / 0.6166 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.6933, allocations: 16 kB / 0.6167 GB, free: 13.96 MB / 462.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 (39): * Single equations (assignments): 39 * Array equations: 0 * 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.0001818/0.6935, allocations: 145.6 kB / 0.6168 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.6936, allocations: 15.81 kB / 0.6168 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008231/0.6944, allocations: 373.7 kB / 0.6172 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.6944, allocations: 7.984 kB / 0.6172 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6944, allocations: 0 / 0.6172 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.6945, allocations: 0 / 0.6172 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006094/0.6951, allocations: 364.7 kB / 0.6175 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.6951, allocations: 0 / 0.6175 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.6955, allocations: 59.91 kB / 0.6176 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.6955, allocations: 0 / 0.6176 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.6955, allocations: 11.98 kB / 0.6176 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.6956, allocations: 8 kB / 0.6176 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.6956, allocations: 0 / 0.6176 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000904/0.6965, allocations: 0.5467 MB / 0.6181 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.573e-05/0.6965, allocations: 92.86 kB / 0.6182 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.6966, allocations: 8.062 kB / 0.6182 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.697, allocations: 28.8 kB / 0.6183 GB, free: 12.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.697, allocations: 23.91 kB / 0.6183 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.6971, allocations: 15.98 kB / 0.6183 GB, free: 12.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.152e-05/0.6972, allocations: 95.25 kB / 0.6184 GB, free: 12.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6972, allocations: 0 / 0.6184 GB, free: 12.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001057/0.6982, allocations: 235.8 kB / 0.6186 GB, free: 11.86 MB / 462.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 (29): * Single equations (assignments): 29 * Array equations: 0 * 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.001158/0.6994, allocations: 439.1 kB / 0.619 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006354/0.7, allocations: 298 kB / 0.6193 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7001, allocations: 4 kB / 0.6193 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.7003, allocations: 148.4 kB / 0.6195 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.701, allocations: 76.58 kB / 0.6195 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.7023, allocations: 0.7999 MB / 0.6203 GB, free: 10.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.7027, allocations: 0.7443 MB / 0.621 GB, free: 9.309 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004705/0.7031, allocations: 81.78 kB / 0.6211 GB, free: 9.227 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.7033, allocations: 31.42 kB / 0.6211 GB, free: 9.199 MB / 462.1 MB Notification: Performance of SimCode: time 3.11e-07/0.7033, allocations: 0 / 0.6211 GB, free: 9.199 MB / 462.1 MB Notification: Performance of Templates: time 0.0133/0.7166, allocations: 8.121 MB / 0.6291 GB, free: 1.129 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches