Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 113.2 kB / 17.73 MB, free: 5.309 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.00156/0.00156, allocations: 188.2 kB / 18.66 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002009/0.00201, allocations: 51.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1069, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3493/0.4562, allocations: 150.6 MB / 0.5134 GB, free: 8.582 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.4574, allocations: 0.9723 MB / 0.5144 GB, free: 7.609 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.4575, allocations: 0 / 0.5144 GB, free: 7.609 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.4578, allocations: 31.77 kB / 0.5144 GB, free: 7.578 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005908/0.4584, allocations: 246.7 kB / 0.5146 GB, free: 7.336 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.4588, allocations: 115.6 kB / 0.5147 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.459, allocations: 171.3 kB / 0.5149 GB, free: 7.055 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.4591, allocations: 5.969 kB / 0.5149 GB, free: 7.051 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.4593, allocations: 95.56 kB / 0.515 GB, free: 6.957 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.4594, allocations: 47.83 kB / 0.515 GB, free: 6.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.4594, allocations: 4 kB / 0.515 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000473/0.4599, allocations: 267.7 kB / 0.5153 GB, free: 6.645 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.46, allocations: 23.97 kB / 0.5153 GB, free: 6.621 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.46, allocations: 39.81 kB / 0.5154 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.4604, allocations: 288.5 kB / 0.5156 GB, free: 6.305 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4604, allocations: 0 / 0.5156 GB, free: 6.305 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4605, allocations: 0 / 0.5156 GB, free: 6.305 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.4605, allocations: 0 / 0.5156 GB, free: 6.305 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000565/0.461, allocations: 411.9 kB / 0.516 GB, free: 5.855 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4611, allocations: 12.03 kB / 0.516 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001976/0.4631, allocations: 184.6 kB / 0.5162 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.4634, allocations: 208.4 kB / 0.5164 GB, free: 5.422 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.4635, allocations: 11.94 kB / 0.5164 GB, free: 5.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.4635, allocations: 7.906 kB / 0.5164 GB, free: 5.402 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.464, allocations: 235.9 kB / 0.5167 GB, free: 5.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.4641, allocations: 4 kB / 0.5167 GB, free: 5.152 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.4641, allocations: 3.984 kB / 0.5167 GB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.4641, allocations: 0 / 0.5167 GB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.4646, allocations: 171.8 kB / 0.5168 GB, free: 4.98 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.001031/0.4656, allocations: 0.5801 MB / 0.5174 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.4659, allocations: 142.4 kB / 0.5175 GB, free: 4.195 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.4661, allocations: 64.83 kB / 0.5176 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.4661, allocations: 4 kB / 0.5176 GB, free: 4.125 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.4662, allocations: 42.55 kB / 0.5176 GB, free: 4.074 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.532e-06/0.4662, allocations: 0 / 0.5176 GB, free: 4.074 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004952/0.4711, allocations: 1.294 MB / 0.5189 GB, free: 2.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.4712, allocations: 59.41 kB / 0.519 GB, free: 2.621 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.4713, allocations: 115.2 kB / 0.5191 GB, free: 2.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.4713, allocations: 29.69 kB / 0.5191 GB, free: 2.465 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.074e-05/0.4714, allocations: 95.98 kB / 0.5192 GB, free: 2.367 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.4714, allocations: 70.98 kB / 0.5193 GB, free: 2.297 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.4715, allocations: 53.7 kB / 0.5193 GB, free: 2.238 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.4716, allocations: 318.8 kB / 0.5196 GB, free: 1.918 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.4718, allocations: 71.95 kB / 0.5197 GB, free: 1.848 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.472, allocations: 107.2 kB / 0.5198 GB, free: 1.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.4723, allocations: 179.3 kB / 0.5199 GB, free: 1.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.4723, allocations: 4 kB / 0.52 GB, free: 1.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004771/0.4728, allocations: 262.1 kB / 0.5202 GB, free: 1.273 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.4728, allocations: 8 kB / 0.5202 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4728, allocations: 0 / 0.5202 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/0.473, allocations: 48.83 kB / 0.5203 GB, free: 1.215 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.4733, allocations: 55.91 kB / 0.5203 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004022/0.4737, allocations: 0.5719 MB / 0.5209 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.4739, allocations: 4 kB / 0.5209 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.4739, allocations: 27.98 kB / 0.5209 GB, free: 0.5312 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.474, allocations: 121.8 kB / 0.521 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.4741, allocations: 7.906 kB / 0.521 GB, free: 404 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007119/0.4748, allocations: 349.2 kB / 0.5214 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.4748, allocations: 7.922 kB / 0.5214 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4748, allocations: 4 kB / 0.5214 GB, free: 36 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4749, allocations: 1.688 kB / 0.5214 GB, free: 36 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009433/0.4758, allocations: 0.6236 MB / 0.522 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4758, allocations: 7.922 kB / 0.522 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.4761, allocations: 55.97 kB / 0.522 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.706e-05/0.4762, allocations: 28.77 kB / 0.5221 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.4763, allocations: 12 kB / 0.5221 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008972/0.4772, allocations: 1.364 MB / 0.5234 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4772, allocations: 0 / 0.5234 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006482/0.4778, allocations: 438.7 kB / 0.5238 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.4779, allocations: 92.94 kB / 0.5239 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.4779, allocations: 4 kB / 0.5239 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.4781, allocations: 9.062 kB / 0.5239 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.4782, allocations: 23.97 kB / 0.524 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.4783, allocations: 31.98 kB / 0.524 GB, free: 13.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.818e-05/0.4783, allocations: 91.22 kB / 0.5241 GB, free: 13.01 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4783, allocations: 0 / 0.5241 GB, free: 13.01 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003874/0.4787, allocations: 75.98 kB / 0.5241 GB, free: 12.94 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003743/0.4791, allocations: 143.2 kB / 0.5243 GB, free: 12.79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004941/0.4796, allocations: 212.5 kB / 0.5245 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4796, allocations: 4 kB / 0.5245 GB, free: 12.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.48, allocations: 214.6 kB / 0.5247 GB, free: 12.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.4804, allocations: 45.02 kB / 0.5247 GB, free: 12.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007849/0.4812, allocations: 479.9 kB / 0.5252 GB, free: 11.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.4815, allocations: 0.7046 MB / 0.5259 GB, free: 11.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002919/0.4818, allocations: 85.61 kB / 0.526 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.4819, allocations: 47.41 kB / 0.526 GB, free: 10.95 MB / 462.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4819, allocations: 0 / 0.526 GB, free: 10.95 MB / 462.1 MB Notification: Performance of Templates: time 0.008832/0.4908, allocations: 5.642 MB / 0.5315 GB, free: 5.309 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches