Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009052/0.0009054, allocations: 180.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007352/0.0007352, allocations: 90.34 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003572, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2054, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02464/0.23, allocations: 34.62 MB / 409.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004111/0.2342, allocations: 4.287 MB / 413.4 MB, free: 9.848 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004919/0.2347, allocations: 11.88 kB / 413.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007367/0.2354, allocations: 230.7 kB / 413.7 MB, free: 9.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.2365, allocations: 453.6 kB / 414.1 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003755/0.2403, allocations: 1.283 MB / 415.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001315/0.2416, allocations: 1.608 MB / 417 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.2419, allocations: 118.1 kB / 417.1 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006362/0.2425, allocations: 414.5 kB / 417.5 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005275/0.243, allocations: 394.5 kB / 417.9 MB, free: 5.363 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.079e-05/0.2431, allocations: 24 kB / 417.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.2445, allocations: 0.6985 MB / 418.6 MB, free: 4.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.2446, allocations: 107.6 kB / 418.8 MB, free: 4.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.2448, allocations: 125.5 kB / 418.9 MB, free: 4.406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008051/0.2456, allocations: 0.7569 MB / 419.6 MB, free: 3.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2456, allocations: 0 / 419.6 MB, free: 3.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2456, allocations: 4 kB / 419.6 MB, free: 3.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.2456, allocations: 0 / 419.6 MB, free: 3.645 MB / 298.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.000938/0.2466, allocations: 0.6861 MB / 420.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2466, allocations: 8.031 kB / 420.3 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005183/0.2471, allocations: 79.41 kB / 420.4 MB, free: 2.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.2475, allocations: 334.2 kB / 420.7 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2475, allocations: 29 kB / 420.8 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.986e-05/0.2476, allocations: 40 kB / 420.8 MB, free: 2.391 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.2482, allocations: 471.5 kB / 421.3 MB, free: 1.887 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2482, allocations: 11.91 kB / 421.3 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.949e-05/0.2482, allocations: 16 kB / 421.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2482, allocations: 15.95 kB / 421.3 MB, free: 1.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/0.2486, allocations: 303.7 kB / 421.6 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0133/0.2619, allocations: 6.747 MB / 428.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005131/0.2625, allocations: 264.4 kB / 428.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.2627, allocations: 148.8 kB / 428.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.2732, allocations: 3.877 MB / 432.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.2733, allocations: 50.5 kB / 432.7 MB, free: 5.566 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.2733, allocations: 0 / 432.7 MB, free: 5.566 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.01134/0.2846, allocations: 2.478 MB / 435.2 MB, free: 3.008 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2847, allocations: 55.41 kB / 435.2 MB, free: 2.941 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.285, allocations: 295.3 kB / 435.5 MB, free: 2.645 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.2851, allocations: 33.7 kB / 435.5 MB, free: 2.605 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.2852, allocations: 220 kB / 435.7 MB, free: 2.387 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.2853, allocations: 169.7 kB / 435.9 MB, free: 2.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.2854, allocations: 12 kB / 435.9 MB, free: 2.207 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2855, allocations: 346.8 kB / 436.3 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.2858, allocations: 149.1 kB / 436.4 MB, free: 1.711 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.2861, allocations: 271.7 kB / 436.7 MB, free: 1.398 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.2865, allocations: 192.7 kB / 436.9 MB, free: 1.211 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.2865, allocations: 3.953 kB / 436.9 MB, free: 1.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001112/0.2876, allocations: 0.5916 MB / 437.5 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.2876, allocations: 11.94 kB / 437.5 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/0.2877, allocations: 4 kB / 437.5 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006328/0.294, allocations: 0.7718 MB / 438.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/0.2944, allocations: 111.8 kB / 438.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.2962, allocations: 2.467 MB / 440.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.2966, allocations: 35.89 kB / 440.9 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.2966, allocations: 24 kB / 440.9 MB, free: 12.97 MB / 330.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.0002027/0.2968, allocations: 180.6 kB / 441.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/0.2969, allocations: 43.48 kB / 441.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.298, allocations: 0.8553 MB / 442 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.2981, allocations: 8 kB / 442 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2981, allocations: 0 / 442 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009991/0.2991, allocations: 0.9573 MB / 442.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.301, allocations: 1.5 MB / 444.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.301, allocations: 0 / 444.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3013, allocations: 75.89 kB / 444.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003466/0.3048, allocations: 0.6335 MB / 445.1 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.3048, allocations: 12 kB / 445.1 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008571/0.3057, allocations: 1.285 MB / 446.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3057, allocations: 0 / 446.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.3072, allocations: 1.215 MB / 447.6 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.3073, allocations: 124.5 kB / 447.8 MB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.3074, allocations: 12 kB / 447.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.3077, allocations: 27.98 kB / 447.8 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.3077, allocations: 27.95 kB / 447.8 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.3078, allocations: 16 kB / 447.8 MB, free: 5.746 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.308, allocations: 209.9 kB / 448 MB, free: 5.535 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.308, allocations: 0 / 448 MB, free: 5.535 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006895/0.3087, allocations: 239.9 kB / 448.3 MB, free: 5.301 MB / 330.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.0005909/0.3093, allocations: 267 kB / 448.5 MB, free: 5.027 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.3105, allocations: 0.6984 MB / 449.2 MB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3105, allocations: 0 / 449.2 MB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008759/0.3114, allocations: 428.8 kB / 449.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.3126, allocations: 241.7 kB / 449.9 MB, free: 3.668 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.3146, allocations: 1.52 MB / 451.4 MB, free: 2.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.315, allocations: 0.8439 MB / 452.3 MB, free: 1.258 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.3151, allocations: 43.44 kB / 452.3 MB, free: 1.215 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3151, allocations: 0 / 452.3 MB, free: 1.215 MB / 330.7 MB Notification: Performance of Templates: time 0.01485/0.3299, allocations: 12.85 MB / 465.1 MB, free: 4.352 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches