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.00139/0.00139, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001564/0.001564, allocations: 183 kB / 18.66 MB, free: 4.414 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.503/1.503, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001241/0.001241, allocations: 51.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08813, allocations: 46.62 MB / 375.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2): time 0.3762/0.4644, allocations: 150.6 MB / 0.5134 GB, free: 8.535 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.4657, allocations: 0.9718 MB / 0.5144 GB, free: 7.562 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.887e-05/0.4658, allocations: 0 / 0.5144 GB, free: 7.562 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.4661, allocations: 33.83 kB / 0.5144 GB, free: 7.531 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005891/0.4667, allocations: 246.7 kB / 0.5146 GB, free: 7.289 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003704/0.4671, allocations: 120.2 kB / 0.5147 GB, free: 7.172 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.4673, allocations: 167.3 kB / 0.5149 GB, free: 7.008 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.435e-05/0.4674, allocations: 4 kB / 0.5149 GB, free: 7.004 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.4676, allocations: 99.56 kB / 0.515 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.4677, allocations: 51.83 kB / 0.515 GB, free: 6.855 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.4677, allocations: 8 kB / 0.515 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005581/0.4683, allocations: 255.7 kB / 0.5153 GB, free: 6.598 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.41e-05/0.4684, allocations: 27.91 kB / 0.5153 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.301e-05/0.4684, allocations: 39.86 kB / 0.5154 GB, free: 6.531 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.4689, allocations: 284.5 kB / 0.5156 GB, free: 6.258 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4689, allocations: 0 / 0.5156 GB, free: 6.258 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4689, allocations: 0 / 0.5156 GB, free: 6.258 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.4689, allocations: 0 / 0.5156 GB, free: 6.258 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.0005518/0.4694, allocations: 415.9 kB / 0.516 GB, free: 5.805 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.4695, allocations: 8.031 kB / 0.516 GB, free: 5.797 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/0.4717, allocations: 184.6 kB / 0.5162 GB, free: 5.617 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.472, allocations: 208.4 kB / 0.5164 GB, free: 5.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.4721, allocations: 11.94 kB / 0.5164 GB, free: 5.363 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.4721, allocations: 7.906 kB / 0.5164 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.4726, allocations: 236 kB / 0.5167 GB, free: 5.109 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4726, allocations: 3.938 kB / 0.5167 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.4727, allocations: 0.6875 kB / 0.5167 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4727, allocations: 4 kB / 0.5167 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.4732, allocations: 167.8 kB / 0.5168 GB, free: 4.938 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.001056/0.4742, allocations: 0.5801 MB / 0.5174 GB, free: 4.301 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.4746, allocations: 138.5 kB / 0.5175 GB, free: 4.156 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4747, allocations: 68.83 kB / 0.5176 GB, free: 4.086 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.4748, allocations: 7.984 kB / 0.5176 GB, free: 4.078 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.4748, allocations: 35.62 kB / 0.5176 GB, free: 4.035 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.4748, allocations: 3.938 kB / 0.5176 GB, free: 4.031 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.005469/0.4803, allocations: 1.303 MB / 0.5189 GB, free: 2.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.4803, allocations: 51.41 kB / 0.519 GB, free: 2.574 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.4804, allocations: 115.2 kB / 0.5191 GB, free: 2.453 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.4805, allocations: 25.7 kB / 0.5191 GB, free: 2.422 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.4805, allocations: 99.97 kB / 0.5192 GB, free: 2.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.4806, allocations: 67 kB / 0.5192 GB, free: 2.254 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.4807, allocations: 53.7 kB / 0.5193 GB, free: 2.195 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4808, allocations: 322.8 kB / 0.5196 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.481, allocations: 67.95 kB / 0.5197 GB, free: 1.805 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.4811, allocations: 107.2 kB / 0.5198 GB, free: 1.688 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.4815, allocations: 184.1 kB / 0.5199 GB, free: 1.496 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4815, allocations: 0 / 0.5199 GB, free: 1.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004852/0.482, allocations: 266.1 kB / 0.5202 GB, free: 1.227 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.482, allocations: 4 kB / 0.5202 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.482, allocations: 0 / 0.5202 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.4822, allocations: 48.83 kB / 0.5203 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.4825, allocations: 60 kB / 0.5203 GB, free: 1.113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004083/0.483, allocations: 0.5679 MB / 0.5209 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.4831, allocations: 7.625 kB / 0.5209 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/0.4832, allocations: 27.98 kB / 0.5209 GB, free: 500 kB / 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.0001118/0.4833, allocations: 121.8 kB / 0.521 GB, free: 368 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.4834, allocations: 20 kB / 0.521 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007439/0.4841, allocations: 339.5 kB / 0.5214 GB, free: 16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.4841, allocations: 11.88 kB / 0.5214 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4842, allocations: 0 / 0.5214 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4842, allocations: 0 / 0.5214 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009414/0.4851, allocations: 0.6275 MB / 0.522 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.4851, allocations: 0 / 0.522 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.4855, allocations: 63.89 kB / 0.522 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.051e-05/0.4856, allocations: 24.67 kB / 0.5221 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.4856, allocations: 12 kB / 0.5221 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009083/0.4865, allocations: 1.362 MB / 0.5234 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.4865, allocations: 8.172 kB / 0.5234 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006693/0.4872, allocations: 434.5 kB / 0.5238 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.4873, allocations: 88.98 kB / 0.5239 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.4873, allocations: 8.062 kB / 0.5239 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.4876, allocations: 8 kB / 0.5239 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.4876, allocations: 23.97 kB / 0.524 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.737e-05/0.4877, allocations: 27.98 kB / 0.524 GB, free: 13.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.338e-05/0.4878, allocations: 91.27 kB / 0.5241 GB, free: 12.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.4878, allocations: 0 / 0.5241 GB, free: 12.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004247/0.4882, allocations: 75.94 kB / 0.5241 GB, free: 12.89 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.0003631/0.4886, allocations: 151.2 kB / 0.5243 GB, free: 12.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005064/0.4891, allocations: 212.3 kB / 0.5245 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4891, allocations: 0 / 0.5245 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.4895, allocations: 218.6 kB / 0.5247 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.4899, allocations: 44.78 kB / 0.5247 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007921/0.4907, allocations: 475.3 kB / 0.5252 GB, free: 11.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.491, allocations: 0.7046 MB / 0.5259 GB, free: 11.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.4913, allocations: 77.61 kB / 0.5259 GB, free: 10.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.4915, allocations: 59.34 kB / 0.526 GB, free: 10.9 MB / 462.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4915, allocations: 0 / 0.526 GB, free: 10.9 MB / 462.1 MB Notification: Performance of Templates: time 0.009208/0.5007, allocations: 5.634 MB / 0.5315 GB, free: 5.27 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