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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009668/0.0009669, allocations: 94.3 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000796/0.0007961, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2013, allocations: 49.45 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02585/0.2272, allocations: 37.69 MB / 437.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005098/0.2324, allocations: 4.615 MB / 441.8 MB, free: 6.926 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/0.2328, allocations: 7.938 kB / 441.8 MB, free: 6.918 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007613/0.2335, allocations: 250.7 kB / 442 MB, free: 6.672 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000852/0.2344, allocations: 469.6 kB / 442.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003898/0.2383, allocations: 1.402 MB / 443.9 MB, free: 4.812 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.2402, allocations: 1.959 MB / 445.8 MB, free: 2.848 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.2404, allocations: 118.7 kB / 446 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005649/0.241, allocations: 410.5 kB / 446.4 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004857/0.2415, allocations: 422.3 kB / 446.8 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.2416, allocations: 31.98 kB / 446.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.2431, allocations: 0.7258 MB / 447.5 MB, free: 1.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.2432, allocations: 111.6 kB / 447.6 MB, free: 1.047 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000266/0.2435, allocations: 262.8 kB / 447.9 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.2448, allocations: 1.029 MB / 448.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2448, allocations: 0 / 448.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2448, allocations: 0 / 448.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2448, allocations: 0 / 448.9 MB, free: 15.76 MB / 330.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.001086/0.2459, allocations: 0.7759 MB / 449.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.2459, allocations: 12.03 kB / 449.7 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005347/0.2465, allocations: 80.34 kB / 449.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.2469, allocations: 335.4 kB / 450.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.247, allocations: 29.38 kB / 450.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.468e-05/0.247, allocations: 44.36 kB / 450.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.2477, allocations: 467.7 kB / 450.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2477, allocations: 8 kB / 450.7 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.348e-05/0.2478, allocations: 20 kB / 450.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.2478, allocations: 15.94 kB / 450.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004565/0.2482, allocations: 295.7 kB / 451 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.2616, allocations: 6.742 MB / 457.7 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.2621, allocations: 274.5 kB / 458 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.2624, allocations: 148.8 kB / 458.1 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009957/0.2723, allocations: 3.877 MB / 462 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.2724, allocations: 38.55 kB / 462 MB, free: 1.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.365e-06/0.2724, allocations: 7.938 kB / 462.1 MB, free: 1.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.01148/0.2839, allocations: 2.466 MB / 464.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.284, allocations: 59.34 kB / 464.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.2843, allocations: 303.2 kB / 464.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.2844, allocations: 37.7 kB / 464.9 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.2845, allocations: 220 kB / 465.1 MB, free: 14.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.2846, allocations: 161.7 kB / 465.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.2848, allocations: 98.16 kB / 465.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2849, allocations: 346.7 kB / 465.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.2852, allocations: 157.1 kB / 465.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.2855, allocations: 275.7 kB / 466.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.2862, allocations: 472.2 kB / 466.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2862, allocations: 4 kB / 466.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001037/0.2872, allocations: 0.5878 MB / 467.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.2873, allocations: 11.94 kB / 467.2 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2873, allocations: 0 / 467.2 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01055/0.2978, allocations: 1.849 MB / 469.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/0.2985, allocations: 111.8 kB / 469.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/0.3011, allocations: 2.463 MB / 471.6 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/0.3017, allocations: 36.11 kB / 471.7 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.3018, allocations: 20.09 kB / 471.7 MB, free: 7.539 MB / 346.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.0003123/0.3021, allocations: 185.6 kB / 471.9 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.3022, allocations: 47.45 kB / 471.9 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.3039, allocations: 0.8553 MB / 472.8 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.304, allocations: 7.984 kB / 472.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.304, allocations: 0 / 472.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001406/0.3054, allocations: 0.9612 MB / 473.7 MB, free: 5.383 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.3082, allocations: 1.485 MB / 475.2 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.3082, allocations: 4 kB / 475.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004656/0.3087, allocations: 79.83 kB / 475.3 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00494/0.3136, allocations: 0.6257 MB / 475.9 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.814e-05/0.3137, allocations: 12 kB / 475.9 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.3151, allocations: 1.284 MB / 477.2 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.371e-06/0.3151, allocations: 4.031 kB / 477.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06464/0.3797, allocations: 18.83 MB / 496.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.3799, allocations: 120.5 kB / 496.2 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.275e-05/0.38, allocations: 15.94 kB / 496.2 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004664/0.3805, allocations: 27.98 kB / 496.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.3806, allocations: 23.97 kB / 496.2 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.3806, allocations: 19.98 kB / 496.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003212/0.381, allocations: 209.9 kB / 496.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.381, allocations: 0 / 496.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002333/0.3833, allocations: 0.5389 MB / 497 MB, free: 13.42 MB / 378.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.002349/0.3857, allocations: 0.4993 MB / 497.5 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.3875, allocations: 0.7025 MB / 498.2 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3875, allocations: 0 / 498.2 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3889, allocations: 428.2 kB / 498.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.3909, allocations: 228 kB / 498.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/0.3955, allocations: 2.363 MB / 0.4895 GB, free: 9.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.396, allocations: 0.8718 MB / 0.4903 GB, free: 8.234 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005808/0.3966, allocations: 80.33 kB / 0.4904 GB, free: 8.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.3968, allocations: 47.42 kB / 0.4904 GB, free: 8.109 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3968, allocations: 0 / 0.4904 GB, free: 8.109 MB / 378.7 MB Notification: Performance of Templates: time 0.2611/0.6579, allocations: 27.71 MB / 0.5175 GB, free: 87.71 MB / 378.7 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@2/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