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.001103/0.001103, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001031/0.001031, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.318/1.318, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 47.34 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08673, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1818/0.2685, allocations: 37.43 MB / 388.9 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005099/0.2737, allocations: 4.57 MB / 393.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007263/0.2744, allocations: 10.53 kB / 393.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.2757, allocations: 289.8 kB / 393.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.277, allocations: 491.9 kB / 394.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004453/0.2815, allocations: 1.642 MB / 395.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.2832, allocations: 1.275 MB / 397.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.2835, allocations: 165.9 kB / 397.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000844/0.2843, allocations: 477.9 kB / 397.8 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007181/0.2851, allocations: 405.5 kB / 398.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.2852, allocations: 49.94 kB / 398.3 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001906/0.2871, allocations: 0.7598 MB / 399 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.2873, allocations: 126.1 kB / 399.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000503/0.2878, allocations: 281.9 kB / 399.4 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.2895, allocations: 1.046 MB / 400.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2895, allocations: 0 / 400.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2895, allocations: 1.406 kB / 400.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.2895, allocations: 0 / 400.5 MB, free: 15.92 MB / 318.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.001078/0.2906, allocations: 0.7808 MB / 401.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2906, allocations: 8.781 kB / 401.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000579/0.2912, allocations: 79.44 kB / 401.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.2918, allocations: 343.6 kB / 401.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.2918, allocations: 35.31 kB / 401.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.2919, allocations: 40.34 kB / 401.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.2925, allocations: 472.3 kB / 402.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.2925, allocations: 5.375 kB / 402.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.2926, allocations: 16.78 kB / 402.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.2926, allocations: 11.25 kB / 402.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004592/0.2931, allocations: 301.4 kB / 402.5 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.3063, allocations: 6.736 MB / 409.3 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.3068, allocations: 269.6 kB / 409.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.307, allocations: 157.3 kB / 409.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.3173, allocations: 3.889 MB / 413.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3174, allocations: 34.56 kB / 413.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.384e-06/0.3174, allocations: 0 / 413.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01202/0.3294, allocations: 2.466 MB / 416.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.3295, allocations: 59.34 kB / 416.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.3298, allocations: 303.2 kB / 416.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3299, allocations: 37.7 kB / 416.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.33, allocations: 224 kB / 416.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.3301, allocations: 157.7 kB / 416.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.3302, allocations: 106.1 kB / 416.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3304, allocations: 346.8 kB / 417.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.3306, allocations: 149.1 kB / 417.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.3309, allocations: 275.7 kB / 417.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/0.3316, allocations: 476.2 kB / 418.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3316, allocations: 0 / 418.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001002/0.3326, allocations: 0.5878 MB / 418.7 MB, free: 248 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.3326, allocations: 11.94 kB / 418.8 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.3326, allocations: 4 kB / 418.8 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007926/0.3406, allocations: 1.847 MB / 420.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.341, allocations: 103.9 kB / 420.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.343, allocations: 2.569 MB / 423.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.3434, allocations: 12 kB / 423.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.3434, allocations: 24 kB / 423.3 MB, free: 11.48 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.0002411/0.3437, allocations: 177.7 kB / 423.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-05/0.3438, allocations: 35.62 kB / 423.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.345, allocations: 0.8512 MB / 424.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/0.345, allocations: 7.984 kB / 424.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.345, allocations: 0 / 424.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001038/0.3461, allocations: 0.9612 MB / 425.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.3481, allocations: 1.486 MB / 426.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3481, allocations: 3.938 kB / 426.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.3484, allocations: 75.91 kB / 426.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003352/0.3518, allocations: 0.6179 MB / 427.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.3519, allocations: 16 kB / 427.5 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008984/0.3528, allocations: 1.28 MB / 428.8 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3528, allocations: 4.172 kB / 428.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3543, allocations: 1.229 MB / 430 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.3545, allocations: 120.5 kB / 430.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.044e-05/0.3545, allocations: 12.06 kB / 430.2 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.3548, allocations: 8 kB / 430.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.212e-05/0.3549, allocations: 39.89 kB / 430.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.3549, allocations: 23.92 kB / 430.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002348/0.3551, allocations: 206 kB / 430.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3552, allocations: 0 / 430.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008665/0.356, allocations: 235.9 kB / 430.7 MB, free: 3.844 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.0005955/0.3566, allocations: 270.9 kB / 430.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.3578, allocations: 0.7024 MB / 431.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3578, allocations: 3.938 kB / 431.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008877/0.3587, allocations: 436.2 kB / 432.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.3598, allocations: 236 kB / 432.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.3616, allocations: 1.224 MB / 433.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.362, allocations: 0.8324 MB / 434.4 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002435/0.3622, allocations: 68.34 kB / 434.4 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.506e-05/0.3623, allocations: 43.5 kB / 434.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3623, allocations: 4 kB / 434.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of Templates: time 0.01858/0.3809, allocations: 12.66 MB / 447.1 MB, free: 3.41 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 -s gbode -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