Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9451/0.9451, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.86e-05, allocations: 2.312 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.01385/0.01388, allocations: 12.95 MB / 285.9 MB, free: 4.508 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.01642, allocations: 2.204 MB / 288.1 MB, free: 2.297 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.01664, allocations: 11.94 kB / 288.2 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004106/0.01705, allocations: 151 kB / 288.3 MB, free: 2.137 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.01771, allocations: 0.5124 MB / 288.8 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002676/0.02039, allocations: 1.478 MB / 290.3 MB, free: 140 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1087/0.1291, allocations: 1.342 MB / 291.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.1293, allocations: 111.7 kB / 291.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.1304, allocations: 0.6531 MB / 292.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006376/0.1311, allocations: 371.6 kB / 292.8 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1312, allocations: 45.91 kB / 292.8 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.1326, allocations: 0.6936 MB / 293.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1328, allocations: 144.1 kB / 293.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002741/0.1331, allocations: 212.5 kB / 293.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1343, allocations: 0.8694 MB / 294.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1343, allocations: 0.6094 kB / 294.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1343, allocations: 0.5312 kB / 294.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1343, allocations: 0.625 kB / 294.7 MB, free: 15.17 MB / 266.7 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.0009626/0.1353, allocations: 0.7951 MB / 295.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1353, allocations: 8.75 kB / 295.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005564/0.1359, allocations: 173.2 kB / 295.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.1363, allocations: 282.1 kB / 296 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.1363, allocations: 33.75 kB / 296 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/0.1364, allocations: 44.81 kB / 296 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.1369, allocations: 0.6076 MB / 296.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.1369, allocations: 2.688 kB / 296.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.1369, allocations: 18.7 kB / 296.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.137, allocations: 13.41 kB / 296.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003317/0.1373, allocations: 201.2 kB / 296.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007779/0.1451, allocations: 5.159 MB / 302 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.1454, allocations: 207.1 kB / 302.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.1456, allocations: 101.6 kB / 302.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005608/0.1512, allocations: 2.695 MB / 305 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.1512, allocations: 39.05 kB / 305.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.014e-06/0.1512, allocations: 0 / 305.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.007256/0.1584, allocations: 2.008 MB / 307.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.089e-05/0.1585, allocations: 55.34 kB / 307.1 MB, free: 10.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.1586, allocations: 324.1 kB / 307.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.1587, allocations: 32.83 kB / 307.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.021e-05/0.1587, allocations: 285.2 kB / 307.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.184e-05/0.1588, allocations: 165.2 kB / 307.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.864e-05/0.1589, allocations: 101.5 kB / 308 MB, free: 10.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.1589, allocations: 0.5118 MB / 308.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.159, allocations: 92.53 kB / 308.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.1592, allocations: 261.9 kB / 308.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.1595, allocations: 389.5 kB / 309.3 MB, free: 9.191 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1595, allocations: 0 / 309.3 MB, free: 9.191 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005165/0.16, allocations: 491.2 kB / 309.7 MB, free: 9.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.16, allocations: 7.094 kB / 309.7 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.16, allocations: 5.25 kB / 309.8 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00349/0.1635, allocations: 1.846 MB / 311.6 MB, free: 7.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.1637, allocations: 110.3 kB / 311.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008928/0.1646, allocations: 3.38 MB / 315.1 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.1647, allocations: 18.47 kB / 315.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1648, allocations: 19.75 kB / 315.1 MB, free: 4.277 MB / 266.7 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.0001019/0.1649, allocations: 188.9 kB / 315.3 MB, free: 4.105 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.822e-05/0.1649, allocations: 55.64 kB / 315.4 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005305/0.1654, allocations: 0.586 MB / 315.9 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1655, allocations: 7.938 kB / 316 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1655, allocations: 0 / 316 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003866/0.1658, allocations: 0.6965 MB / 316.7 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000872/0.1667, allocations: 1.061 MB / 317.7 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1667, allocations: 6.438 kB / 317.7 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.1669, allocations: 75.05 kB / 317.8 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/0.1683, allocations: 0.5571 MB / 318.4 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.1683, allocations: 16 kB / 318.4 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004402/0.1687, allocations: 1.638 MB / 320 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1687, allocations: 1.969 kB / 320 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007477/0.1695, allocations: 0.8162 MB / 320.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.1695, allocations: 39.66 kB / 320.9 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.1696, allocations: 15.98 kB / 320.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.1697, allocations: 12 kB / 320.9 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.1697, allocations: 19.95 kB / 320.9 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.1697, allocations: 19.98 kB / 320.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000118/0.1698, allocations: 213.1 kB / 321.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1698, allocations: 4.031 kB / 321.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000649/0.1705, allocations: 231.7 kB / 321.4 MB, free: 13.93 MB / 282.7 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.0004702/0.171, allocations: 289.5 kB / 321.6 MB, free: 13.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.1716, allocations: 0.5736 MB / 322.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1716, allocations: 0 / 322.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004322/0.1721, allocations: 296 kB / 322.5 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.1727, allocations: 216.8 kB / 322.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1741, allocations: 1.021 MB / 323.7 MB, free: 11.58 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.478e-05/0.1742, allocations: 126.3 kB / 323.9 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.1743, allocations: 67.58 kB / 323.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.1744, allocations: 40.5 kB / 324 MB, free: 11.33 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1744, allocations: 0 / 324 MB, free: 11.33 MB / 282.7 MB Notification: Performance of Templates: time 0.01527/0.1897, allocations: 13.55 MB / 337.5 MB, free: 14.01 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.531177368015051]