Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001053/0.001053, allocations: 112.8 kB / 17.28 MB, free: 6.047 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.001093/0.001094, allocations: 189.3 kB / 18.2 MB, free: 5.152 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.282/1.282, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001199/0.001199, allocations: 56.14 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08249, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03683/0.1194, allocations: 37.3 MB / 364.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005976/0.1254, allocations: 4.553 MB / 368.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000601/0.126, allocations: 4 kB / 368.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.1271, allocations: 262.7 kB / 368.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.1283, allocations: 457.7 kB / 369.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004583/0.1329, allocations: 1.464 MB / 370.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.1344, allocations: 1.269 MB / 372.1 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.1347, allocations: 174.4 kB / 372.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008184/0.1356, allocations: 474.4 kB / 372.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006932/0.1363, allocations: 430.4 kB / 373.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.1364, allocations: 44 kB / 373.2 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001795/0.1382, allocations: 0.7687 MB / 373.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.1384, allocations: 131.6 kB / 374.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004148/0.1388, allocations: 275 kB / 374.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.1404, allocations: 1.052 MB / 375.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1405, allocations: 0 / 375.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1405, allocations: 0 / 375.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.1405, allocations: 4 kB / 375.4 MB, free: 4.008 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.001287/0.1418, allocations: 0.772 MB / 376.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1418, allocations: 8.031 kB / 376.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006326/0.1425, allocations: 80.34 kB / 376.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.143, allocations: 339.3 kB / 376.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.143, allocations: 29.38 kB / 376.6 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.257e-05/0.1431, allocations: 44.38 kB / 376.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.1438, allocations: 475.6 kB / 377.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.1438, allocations: 0 / 377.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.1439, allocations: 20 kB / 377.1 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1439, allocations: 8 kB / 377.1 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004917/0.1444, allocations: 307.6 kB / 377.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1622/0.3066, allocations: 6.725 MB / 384.2 MB, free: 55.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.3071, allocations: 276.2 kB / 384.4 MB, free: 55.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.3074, allocations: 151.3 kB / 384.6 MB, free: 55.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.3179, allocations: 3.899 MB / 388.5 MB, free: 53.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.3179, allocations: 36.94 kB / 388.5 MB, free: 53.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.3179, allocations: 1.031 kB / 388.5 MB, free: 53.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01144/0.3294, allocations: 2.442 MB / 391 MB, free: 52.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.3294, allocations: 55.78 kB / 391 MB, free: 51.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.3297, allocations: 302.7 kB / 391.3 MB, free: 51.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.3298, allocations: 43.95 kB / 391.4 MB, free: 51.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.034e-05/0.3298, allocations: 223.5 kB / 391.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.031e-05/0.3299, allocations: 161.7 kB / 391.7 MB, free: 51.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.3301, allocations: 97.09 kB / 391.8 MB, free: 51.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.242e-05/0.3301, allocations: 353 kB / 392.2 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.3304, allocations: 157.2 kB / 392.3 MB, free: 50.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.3307, allocations: 274.2 kB / 392.6 MB, free: 50.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005551/0.3312, allocations: 469.5 kB / 393.1 MB, free: 50.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3312, allocations: 2.062 kB / 393.1 MB, free: 50.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009516/0.3322, allocations: 0.5878 MB / 393.6 MB, free: 50.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3322, allocations: 7.344 kB / 393.6 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3322, allocations: 3.562 kB / 393.7 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007728/0.34, allocations: 1.854 MB / 395.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/0.3403, allocations: 111 kB / 395.6 MB, free: 49.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3417, allocations: 2.579 MB / 398.2 MB, free: 46.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.3421, allocations: 29.47 kB / 398.2 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.3421, allocations: 27.91 kB / 398.2 MB, free: 46.58 MB / 318.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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.3423, allocations: 173.5 kB / 398.4 MB, free: 46.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-05/0.3424, allocations: 39.31 kB / 398.5 MB, free: 46.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008988/0.3433, allocations: 0.8571 MB / 399.3 MB, free: 45.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3433, allocations: 11.95 kB / 399.3 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.3433, allocations: 3.969 kB / 399.3 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006903/0.344, allocations: 0.9509 MB / 400.3 MB, free: 45.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.3455, allocations: 1.487 MB / 401.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3455, allocations: 3.984 kB / 401.8 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.3458, allocations: 71.91 kB / 401.8 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003102/0.3489, allocations: 0.6287 MB / 402.5 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.3489, allocations: 11.98 kB / 402.5 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00064/0.3496, allocations: 1.284 MB / 403.8 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3496, allocations: 0 / 403.8 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3507, allocations: 1.228 MB / 405 MB, free: 40.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.243e-05/0.3508, allocations: 116.5 kB / 405.1 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.3508, allocations: 16.03 kB / 405.1 MB, free: 40.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.3511, allocations: 15.94 kB / 405.1 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.488e-05/0.3512, allocations: 34.95 kB / 405.2 MB, free: 40.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.3512, allocations: 19.98 kB / 405.2 MB, free: 40.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.3514, allocations: 213.9 kB / 405.4 MB, free: 40.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3514, allocations: 3.938 kB / 405.4 MB, free: 40.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000627/0.352, allocations: 229.3 kB / 405.6 MB, free: 40.04 MB / 318.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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005335/0.3525, allocations: 277.2 kB / 405.9 MB, free: 39.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.3537, allocations: 0.7197 MB / 406.6 MB, free: 39.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3537, allocations: 384 / 406.6 MB, free: 39.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007497/0.3545, allocations: 440.8 kB / 407.1 MB, free: 38.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.3556, allocations: 238.7 kB / 407.3 MB, free: 38.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.357, allocations: 1.442 MB / 408.7 MB, free: 36.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.3573, allocations: 0.8324 MB / 409.6 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002794/0.3575, allocations: 71.72 kB / 409.6 MB, free: 36.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.899e-05/0.3576, allocations: 35.44 kB / 409.7 MB, free: 36.01 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3576, allocations: 4 kB / 409.7 MB, free: 36.01 MB / 318.1 MB Notification: Performance of Templates: time 0.01568/0.3733, allocations: 12.61 MB / 422.3 MB, free: 23.42 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches