Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.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) 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(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009742/0.0009743, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.000991/0.0009911, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.297/1.297, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002374, allocations: 9.719 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.08521, allocations: 50.43 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.01939/0.1046, allocations: 22.34 MB / 373.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005549/0.1102, allocations: 5.29 MB / 378.8 MB, free: 36 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.1105, allocations: 4 kB / 378.8 MB, free: 32 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006601/0.1112, allocations: 262.8 kB / 379 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005359/0.1117, allocations: 311.1 kB / 379.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003166/0.1149, allocations: 1.347 MB / 380.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007626/0.1157, allocations: 0.7017 MB / 381.4 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.1159, allocations: 118.3 kB / 381.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003994/0.1163, allocations: 351 kB / 381.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.1165, allocations: 243.1 kB / 382.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.387e-05/0.1166, allocations: 28 kB / 382.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.1179, allocations: 0.757 MB / 382.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.118, allocations: 99.64 kB / 383 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.1181, allocations: 121.5 kB / 383.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007313/0.1188, allocations: 0.7523 MB / 383.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.1188, allocations: 3.938 kB / 383.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1189, allocations: 0 / 383.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1189, allocations: 0 / 383.8 MB, free: 10.95 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008404/0.1197, allocations: 0.6823 MB / 384.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.1197, allocations: 12.03 kB / 384.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005302/0.1203, allocations: 75.41 kB / 384.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.1207, allocations: 322.3 kB / 384.9 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.1207, allocations: 32.94 kB / 384.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.1208, allocations: 44 kB / 385 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.1214, allocations: 459.6 kB / 385.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.1215, allocations: 4 kB / 385.4 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.1215, allocations: 19.98 kB / 385.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.1216, allocations: 12 kB / 385.5 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004855/0.122, allocations: 299.7 kB / 385.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.136, allocations: 6.738 MB / 392.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004697/0.1365, allocations: 270.4 kB / 392.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/0.147, allocations: 3.889 MB / 396.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.1471, allocations: 42.5 kB / 396.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.1471, allocations: 0 / 396.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.01178/0.1589, allocations: 2.483 MB / 399.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.159, allocations: 59.41 kB / 399.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.1593, allocations: 295.3 kB / 399.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.1593, allocations: 33.7 kB / 399.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1595, allocations: 224 kB / 399.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1596, allocations: 165.6 kB / 399.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.1596, allocations: 12 kB / 399.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1598, allocations: 354.7 kB / 400.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.16, allocations: 149.1 kB / 400.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003051/0.1603, allocations: 267.7 kB / 400.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.1606, allocations: 196.7 kB / 400.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1606, allocations: 4 kB / 400.9 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001024/0.1617, allocations: 0.584 MB / 401.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1617, allocations: 8 kB / 401.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1617, allocations: 4 kB / 401.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00674/0.1684, allocations: 0.7755 MB / 402.3 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.1689, allocations: 107.8 kB / 402.4 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.1708, allocations: 2.463 MB / 404.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.1711, allocations: 47.84 kB / 404.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.1712, allocations: 24 kB / 404.9 MB, free: 4.453 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.1714, allocations: 177.7 kB / 405.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7e-05/0.1715, allocations: 43.52 kB / 405.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.1726, allocations: 0.8475 MB / 406 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.1727, allocations: 11.98 kB / 406 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1727, allocations: 0 / 406 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009612/0.1736, allocations: 0.9574 MB / 406.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.1755, allocations: 1.5 MB / 408.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1755, allocations: 0 / 408.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.1758, allocations: 75.94 kB / 408.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003407/0.1793, allocations: 0.6374 MB / 409.2 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.432e-05/0.1793, allocations: 15.98 kB / 409.2 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000912/0.1802, allocations: 1.276 MB / 410.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1802, allocations: 0 / 410.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.1817, allocations: 1.229 MB / 411.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.1819, allocations: 128.5 kB / 411.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/0.1819, allocations: 11.95 kB / 411.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.1822, allocations: 31.89 kB / 411.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.1823, allocations: 23.97 kB / 411.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.1823, allocations: 19.98 kB / 411.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.1825, allocations: 209.9 kB / 412.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1825, allocations: 0 / 412.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007269/0.1833, allocations: 231.9 kB / 412.3 MB, free: 12.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005534/0.1838, allocations: 278.9 kB / 412.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.185, allocations: 0.6907 MB / 413.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.185, allocations: 0 / 413.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008675/0.1858, allocations: 420.3 kB / 413.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.187, allocations: 230.3 kB / 413.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1888, allocations: 1.467 MB / 415.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.1892, allocations: 0.8483 MB / 416.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002876/0.1895, allocations: 76.33 kB / 416.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.741e-05/0.1896, allocations: 35.44 kB / 416.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1896, allocations: 0 / 416.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of Templates: time 0.1756/0.3652, allocations: 11.81 MB / 428.1 MB, free: 68.38 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches