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.001013/0.001013, allocations: 92.94 kB / 16.65 MB, free: 6.535 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.001251/0.001251, allocations: 177.4 kB / 17.56 MB, free: 6.18 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.317/1.317, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.0002527, allocations: 11.92 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08487, allocations: 50.41 MB / 351.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.184/0.2689, allocations: 36.89 MB / 388.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004596/0.2735, allocations: 4.56 MB / 393.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.2741, allocations: 7.156 kB / 393.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007369/0.2748, allocations: 252.4 kB / 393.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008673/0.2757, allocations: 470.2 kB / 394 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003853/0.2796, allocations: 1.399 MB / 395.4 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002174/0.2818, allocations: 1.952 MB / 397.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.282, allocations: 121.2 kB / 397.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006404/0.2826, allocations: 394.5 kB / 397.8 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004638/0.2831, allocations: 420.3 kB / 398.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.2832, allocations: 25.47 kB / 398.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.2847, allocations: 0.7237 MB / 399 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.2849, allocations: 110 kB / 399.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.2851, allocations: 286 kB / 399.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.2861, allocations: 1.008 MB / 400.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2862, allocations: 0 / 400.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.2862, allocations: 0 / 400.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2862, allocations: 0 / 400.4 MB, free: 1.559 MB / 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.0008138/0.287, allocations: 0.6824 MB / 401.1 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.287, allocations: 9.5 kB / 401.1 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005465/0.2876, allocations: 86.42 kB / 401.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.2879, allocations: 331.9 kB / 401.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.2879, allocations: 28.81 kB / 401.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.288, allocations: 38.12 kB / 401.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.2886, allocations: 470.4 kB / 402 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.2886, allocations: 6.75 kB / 402 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.2887, allocations: 24.09 kB / 402 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2887, allocations: 11.34 kB / 402.1 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000409/0.2891, allocations: 301.3 kB / 402.4 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.3021, allocations: 6.727 MB / 409.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004322/0.3026, allocations: 283 kB / 409.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.3028, allocations: 150.2 kB / 409.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.3129, allocations: 3.876 MB / 413.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.313, allocations: 42.44 kB / 413.4 MB, free: 7.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.477e-06/0.313, allocations: 3.984 kB / 413.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.0119/0.3249, allocations: 2.486 MB / 415.9 MB, free: 4.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.325, allocations: 59.34 kB / 416 MB, free: 4.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/0.3253, allocations: 303.2 kB / 416.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.3253, allocations: 41.64 kB / 416.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3255, allocations: 220 kB / 416.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3256, allocations: 157.7 kB / 416.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.3257, allocations: 49.7 kB / 416.7 MB, free: 3.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3258, allocations: 350.8 kB / 417.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002497/0.3261, allocations: 149.1 kB / 417.2 MB, free: 3.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.3264, allocations: 279.7 kB / 417.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006197/0.327, allocations: 472.2 kB / 417.9 MB, free: 2.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3271, allocations: 4 kB / 417.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001059/0.3281, allocations: 0.5958 MB / 418.5 MB, free: 2.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3281, allocations: 11.92 kB / 418.6 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3282, allocations: 4 kB / 418.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006915/0.3351, allocations: 0.7675 MB / 419.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.3355, allocations: 115.8 kB / 419.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.3374, allocations: 2.459 MB / 421.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.3378, allocations: 36.02 kB / 421.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.3378, allocations: 28 kB / 422 MB, free: 14.39 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.0002176/0.3381, allocations: 173.6 kB / 422.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.3382, allocations: 43.47 kB / 422.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.3393, allocations: 0.8514 MB / 423 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3394, allocations: 8 kB / 423 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3394, allocations: 3.938 kB / 423 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009961/0.3404, allocations: 0.9651 MB / 424 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.3423, allocations: 1.485 MB / 425.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3423, allocations: 0 / 425.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.3427, allocations: 79.89 kB / 425.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003575/0.3463, allocations: 0.6336 MB / 426.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.3463, allocations: 16 kB / 426.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009317/0.3473, allocations: 1.28 MB / 427.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3473, allocations: 4.031 kB / 427.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.3488, allocations: 1.226 MB / 428.7 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.349, allocations: 120.6 kB / 428.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.349, allocations: 12 kB / 428.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.3493, allocations: 31.83 kB / 428.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.3494, allocations: 27.95 kB / 428.9 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.3494, allocations: 19.98 kB / 428.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.3497, allocations: 209.9 kB / 429.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3497, allocations: 0 / 429.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000797/0.3505, allocations: 235.9 kB / 429.4 MB, free: 6.715 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.000597/0.3511, allocations: 290.9 kB / 429.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.3523, allocations: 0.687 MB / 430.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3523, allocations: 0 / 430.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009151/0.3532, allocations: 424.2 kB / 430.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.3546, allocations: 227.3 kB / 431 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.3565, allocations: 1.518 MB / 432.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.3569, allocations: 0.8365 MB / 433.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.3573, allocations: 76.33 kB / 433.4 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.166e-05/0.3573, allocations: 35.44 kB / 433.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3574, allocations: 4 kB / 433.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of Templates: time 0.01879/0.3761, allocations: 12.12 MB / 445.6 MB, free: 6.543 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins/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