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.001243/0.001243, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001306/0.001306, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.356/1.356, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 51.05 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09115, allocations: 49.44 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1998/0.291, allocations: 37.43 MB / 388.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005032/0.2961, allocations: 4.573 MB / 392.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000542/0.2967, allocations: 9.438 kB / 392.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008904/0.2976, allocations: 298.3 kB / 393 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.2987, allocations: 479.4 kB / 393.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004741/0.3034, allocations: 1.648 MB / 395.1 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.3051, allocations: 1.269 MB / 396.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.3054, allocations: 172.9 kB / 396.6 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007718/0.3062, allocations: 471.7 kB / 397 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004812/0.3067, allocations: 403.1 kB / 397.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.577e-05/0.3068, allocations: 45.84 kB / 397.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.3085, allocations: 0.7488 MB / 398.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.3087, allocations: 137.2 kB / 398.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003113/0.309, allocations: 282.7 kB / 398.6 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.3103, allocations: 1.045 MB / 399.7 MB, free: 256 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3103, allocations: 0 / 399.7 MB, free: 256 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3104, allocations: 0 / 399.7 MB, free: 256 kB / 302.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3104, allocations: 0 / 399.7 MB, free: 256 kB / 302.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.001162/0.3115, allocations: 0.7775 MB / 400.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3116, allocations: 9.938 kB / 400.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/0.3122, allocations: 80.91 kB / 400.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.3127, allocations: 337.8 kB / 400.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.3127, allocations: 29.19 kB / 400.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.3128, allocations: 43.25 kB / 400.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006813/0.3134, allocations: 472.3 kB / 401.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3135, allocations: 1.406 kB / 401.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.671e-05/0.3135, allocations: 21.22 kB / 401.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.3135, allocations: 10 kB / 401.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.314, allocations: 299.2 kB / 401.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/0.3281, allocations: 6.752 MB / 408.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004886/0.3286, allocations: 271.4 kB / 408.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.3289, allocations: 151.6 kB / 408.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01053/0.3394, allocations: 3.879 MB / 412.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.3395, allocations: 41.41 kB / 412.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.717e-06/0.3395, allocations: 4 kB / 412.8 MB, free: 6.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01212/0.3516, allocations: 2.459 MB / 415.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.3517, allocations: 59.34 kB / 415.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.352, allocations: 307.2 kB / 415.6 MB, free: 3.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.3521, allocations: 29.7 kB / 415.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.3523, allocations: 228 kB / 415.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3524, allocations: 161.7 kB / 416 MB, free: 2.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.3525, allocations: 106.1 kB / 416.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3527, allocations: 346.8 kB / 416.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.3529, allocations: 149.1 kB / 416.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.3533, allocations: 279.7 kB / 416.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.3539, allocations: 476.2 kB / 417.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.3539, allocations: 4 kB / 417.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001032/0.355, allocations: 0.5879 MB / 418 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.355, allocations: 7.938 kB / 418 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.355, allocations: 4 kB / 418 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00829/0.3633, allocations: 1.85 MB / 419.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.3638, allocations: 103.9 kB / 419.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.366, allocations: 2.561 MB / 422.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.3664, allocations: 16 kB / 422.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.3664, allocations: 24.12 kB / 422.5 MB, free: 12.03 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 (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.0002854/0.3667, allocations: 177.6 kB / 422.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.3668, allocations: 35.62 kB / 422.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.3681, allocations: 0.859 MB / 423.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3681, allocations: 8 kB / 423.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3681, allocations: 4 kB / 423.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001024/0.3691, allocations: 0.9573 MB / 424.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.3711, allocations: 1.5 MB / 426.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.3711, allocations: 0 / 426.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.3715, allocations: 75.91 kB / 426.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003414/0.3749, allocations: 0.6219 MB / 426.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.278e-05/0.375, allocations: 16 kB / 426.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009274/0.3759, allocations: 1.284 MB / 428.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3759, allocations: 0 / 428.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.3775, allocations: 1.219 MB / 429.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.3776, allocations: 128.5 kB / 429.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.457e-05/0.3777, allocations: 8 kB / 429.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.378, allocations: 15.94 kB / 429.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.378, allocations: 31.89 kB / 429.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.3781, allocations: 16 kB / 429.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.3783, allocations: 209.9 kB / 429.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3783, allocations: 0 / 429.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009041/0.3792, allocations: 231.9 kB / 429.9 MB, free: 4.379 MB / 334.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.0006258/0.3798, allocations: 286.7 kB / 430.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.3813, allocations: 0.7104 MB / 430.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3813, allocations: 0 / 430.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009045/0.3822, allocations: 436.3 kB / 431.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.3835, allocations: 237 kB / 431.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.3856, allocations: 1.277 MB / 432.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3859, allocations: 0.8363 MB / 433.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.386, allocations: 43.42 kB / 433.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3861, allocations: 0 / 433.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of Templates: time 0.01615/0.4022, allocations: 12.95 MB / 446.7 MB, free: 3.559 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/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