Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009236/0.0009237, allocations: 196.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 226.6 MB / 244.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007114/0.0007114, allocations: 94.47 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001904/0.0001904, allocations: 7.938 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1665, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02106/0.1876, allocations: 34.63 MB / 442.1 MB, free: 9.133 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00426/0.1919, allocations: 4.291 MB / 446.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/0.1922, allocations: 7.938 kB / 446.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005887/0.1928, allocations: 230.7 kB / 446.6 MB, free: 4.598 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007019/0.1935, allocations: 449.7 kB / 447.1 MB, free: 4.156 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.1967, allocations: 1.293 MB / 448.4 MB, free: 2.867 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.1981, allocations: 1.623 MB / 450 MB, free: 1.238 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.1983, allocations: 110.3 kB / 450.1 MB, free: 1.129 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004215/0.1987, allocations: 410.5 kB / 450.5 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.1992, allocations: 394.4 kB / 450.9 MB, free: 348 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.648e-05/0.1992, allocations: 27.94 kB / 450.9 MB, free: 320 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.2004, allocations: 0.6985 MB / 451.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.2005, allocations: 111.6 kB / 451.7 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.2006, allocations: 125.5 kB / 451.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.2014, allocations: 0.7569 MB / 452.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.2014, allocations: 0 / 452.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2014, allocations: 0 / 452.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2014, allocations: 0 / 452.6 MB, free: 14.62 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.0008708/0.2023, allocations: 0.6861 MB / 453.3 MB, free: 13.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.2023, allocations: 8.031 kB / 453.3 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005046/0.2028, allocations: 87.34 kB / 453.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.2032, allocations: 322.3 kB / 453.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.2032, allocations: 29 kB / 453.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.2033, allocations: 40 kB / 453.8 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/0.2039, allocations: 463.6 kB / 454.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.2039, allocations: 8 kB / 454.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.236e-05/0.204, allocations: 16 kB / 454.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.204, allocations: 15.98 kB / 454.2 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.2044, allocations: 307.6 kB / 454.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/0.2172, allocations: 6.73 MB / 461.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.2176, allocations: 278.4 kB / 461.6 MB, free: 4.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.2178, allocations: 151 kB / 461.7 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.228, allocations: 3.881 MB / 465.6 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.228, allocations: 34.56 kB / 465.6 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.228, allocations: 0 / 465.6 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.01093/0.239, allocations: 2.491 MB / 468.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.239, allocations: 55.41 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.2393, allocations: 303.2 kB / 468.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.2394, allocations: 33.7 kB / 468.5 MB, free: 13.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.2395, allocations: 224 kB / 468.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2396, allocations: 165.6 kB / 468.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.2397, allocations: 11.94 kB / 468.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2398, allocations: 350.8 kB / 469.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.24, allocations: 149.1 kB / 469.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.2403, allocations: 271.7 kB / 469.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.2406, allocations: 196.7 kB / 469.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2406, allocations: 0 / 469.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009923/0.2416, allocations: 0.5916 MB / 470.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2417, allocations: 4 kB / 470.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2417, allocations: 4 kB / 470.4 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006513/0.2482, allocations: 0.7678 MB / 471.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.2486, allocations: 107.8 kB / 471.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.2503, allocations: 2.471 MB / 473.8 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.2507, allocations: 40.05 kB / 473.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.2507, allocations: 20 kB / 473.8 MB, free: 7.961 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002119/0.2509, allocations: 177.7 kB / 474 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.251, allocations: 51.47 kB / 474.1 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.2521, allocations: 0.8436 MB / 474.9 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.2521, allocations: 15.92 kB / 474.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2521, allocations: 8 kB / 474.9 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008957/0.253, allocations: 0.9496 MB / 475.9 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.2548, allocations: 1.496 MB / 477.4 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2548, allocations: 0 / 477.4 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.2551, allocations: 79.94 kB / 477.4 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003339/0.2585, allocations: 0.6257 MB / 478.1 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.2585, allocations: 15.98 kB / 478.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008538/0.2594, allocations: 1.28 MB / 479.4 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2594, allocations: 0 / 479.4 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.2608, allocations: 1.223 MB / 480.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.2609, allocations: 124.5 kB / 480.7 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.261, allocations: 8.094 kB / 480.7 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.2612, allocations: 31.83 kB / 480.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.2613, allocations: 31.95 kB / 480.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.2613, allocations: 19.98 kB / 480.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.2615, allocations: 205.9 kB / 481 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2615, allocations: 0 / 481 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006535/0.2622, allocations: 231.9 kB / 481.2 MB, free: 296 kB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005152/0.2627, allocations: 278.9 kB / 481.5 MB, free: 8 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.2638, allocations: 0.6946 MB / 482.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2638, allocations: 0 / 482.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000833/0.2647, allocations: 424.3 kB / 482.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.2658, allocations: 236.5 kB / 482.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.2676, allocations: 1.513 MB / 484.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.2679, allocations: 0.8327 MB / 485.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.461e-05/0.268, allocations: 47.42 kB / 485.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2681, allocations: 0 / 485.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of Templates: time 0.01368/0.2817, allocations: 12.86 MB / 498.1 MB, free: 15.35 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches