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.001377/0.001377, allocations: 103 kB / 17.74 MB, free: 5.324 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.001165/0.001165, allocations: 196.3 kB / 18.67 MB, free: 4.395 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.366/1.366, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2457, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.04022/0.286, allocations: 37.44 MB / 438.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00651/0.2926, allocations: 4.572 MB / 443.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.2937, allocations: 11.94 kB / 443.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.295, allocations: 282.2 kB / 443.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.2966, allocations: 489.3 kB / 444.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005695/0.3023, allocations: 1.652 MB / 445.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001967/0.3043, allocations: 1.269 MB / 447.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.3047, allocations: 170.5 kB / 447.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.3058, allocations: 478.4 kB / 447.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000784/0.3066, allocations: 414.4 kB / 448.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.3067, allocations: 47.94 kB / 448.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.3087, allocations: 0.7571 MB / 449 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.309, allocations: 127.6 kB / 449.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004235/0.3094, allocations: 278.9 kB / 449.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.3114, allocations: 1.052 MB / 450.4 MB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3114, allocations: 4 kB / 450.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3114, allocations: 4 kB / 450.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.3114, allocations: 0 / 450.4 MB, free: 7.707 MB / 366.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.001392/0.3128, allocations: 0.772 MB / 451.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3129, allocations: 8.031 kB / 451.2 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006186/0.3135, allocations: 80.44 kB / 451.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.3141, allocations: 339.4 kB / 451.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.3141, allocations: 29.38 kB / 451.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.3142, allocations: 40.38 kB / 451.7 MB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.3149, allocations: 471.7 kB / 452.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.315, allocations: 11.78 kB / 452.1 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.557e-05/0.315, allocations: 20 kB / 452.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.315, allocations: 11.98 kB / 452.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.3155, allocations: 303.7 kB / 452.5 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.3292, allocations: 6.73 MB / 459.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.3297, allocations: 270.5 kB / 459.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.33, allocations: 152.8 kB / 459.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.3402, allocations: 3.893 MB / 463.5 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.3402, allocations: 46.36 kB / 463.6 MB, free: 9.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.164e-06/0.3403, allocations: 0 / 463.6 MB, free: 9.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01186/0.3521, allocations: 2.452 MB / 466 MB, free: 6.996 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3522, allocations: 63.41 kB / 466.1 MB, free: 6.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.3526, allocations: 303.2 kB / 466.4 MB, free: 6.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.3526, allocations: 33.7 kB / 466.4 MB, free: 6.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.3528, allocations: 224 kB / 466.6 MB, free: 6.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3529, allocations: 165.6 kB / 466.8 MB, free: 6.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.3531, allocations: 90.25 kB / 466.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3532, allocations: 346.8 kB / 467.2 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.3535, allocations: 153.1 kB / 467.4 MB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/0.3538, allocations: 275.7 kB / 467.6 MB, free: 5.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.3544, allocations: 472.2 kB / 468.1 MB, free: 4.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3544, allocations: 0 / 468.1 MB, free: 4.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001067/0.3555, allocations: 0.5916 MB / 468.7 MB, free: 4.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3555, allocations: 12.41 kB / 468.7 MB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3555, allocations: 8 kB / 468.7 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0078/0.3634, allocations: 1.845 MB / 470.5 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.3638, allocations: 107.9 kB / 470.6 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.3659, allocations: 2.558 MB / 473.2 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003733/0.3663, allocations: 15.94 kB / 473.2 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-05/0.3664, allocations: 27.98 kB / 473.2 MB, free: 15.42 MB / 398.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.0002735/0.3667, allocations: 177.6 kB / 473.4 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.3668, allocations: 39.53 kB / 473.5 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.368, allocations: 0.8551 MB / 474.3 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3681, allocations: 16.05 kB / 474.3 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3681, allocations: 96 / 474.3 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009552/0.369, allocations: 0.9574 MB / 475.3 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.371, allocations: 1.489 MB / 476.8 MB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.371, allocations: 0 / 476.8 MB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.3713, allocations: 83.92 kB / 476.9 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00326/0.3746, allocations: 0.6178 MB / 477.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.277e-05/0.3747, allocations: 19.94 kB / 477.5 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009373/0.3756, allocations: 1.28 MB / 478.8 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3756, allocations: 0 / 478.8 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.3772, allocations: 1.217 MB / 480 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.3773, allocations: 120.5 kB / 480.1 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/0.3774, allocations: 12 kB / 480.1 MB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.3777, allocations: 15.94 kB / 480.1 MB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.3777, allocations: 23.97 kB / 480.2 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/0.3778, allocations: 15.98 kB / 480.2 MB, free: 8.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.378, allocations: 213.9 kB / 480.4 MB, free: 8.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.378, allocations: 4 kB / 480.4 MB, free: 8.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007759/0.3788, allocations: 227.9 kB / 480.6 MB, free: 7.785 MB / 398.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.0006755/0.3795, allocations: 283 kB / 480.9 MB, free: 7.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3808, allocations: 0.7102 MB / 481.6 MB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3808, allocations: 0 / 481.6 MB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009006/0.3817, allocations: 428.3 kB / 482 MB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.383, allocations: 232.8 kB / 482.2 MB, free: 6.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.3849, allocations: 1.265 MB / 483.5 MB, free: 4.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.3853, allocations: 0.84 MB / 484.3 MB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3854, allocations: 47.38 kB / 484.4 MB, free: 3.918 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3854, allocations: 0 / 484.4 MB, free: 3.918 MB / 398.1 MB Notification: Performance of Templates: time 0.01718/0.4026, allocations: 13 MB / 497.4 MB, free: 6.934 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches