Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00108/0.00108, allocations: 187 kB / 17.92 MB, free: 3.855 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.161/1.161, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0008813/0.0008813, allocations: 98.28 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008109/0.000811, allocations: 39.92 kB / 327.2 MB, free: 344 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1826, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02356/0.2062, allocations: 37.7 MB / 411.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.2098, allocations: 4.627 MB / 416.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.2101, allocations: 4 kB / 416.1 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006176/0.2107, allocations: 250.7 kB / 416.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005415/0.2113, allocations: 477.6 kB / 416.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00329/0.2146, allocations: 1.394 MB / 418.3 MB, free: 4.957 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.2157, allocations: 1.963 MB / 420.2 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.2159, allocations: 120.3 kB / 420.3 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.2162, allocations: 414.5 kB / 420.7 MB, free: 2.469 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.2165, allocations: 430.3 kB / 421.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.2166, allocations: 24 kB / 421.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001014/0.2176, allocations: 0.7141 MB / 421.9 MB, free: 1.309 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.013e-05/0.2177, allocations: 123.5 kB / 422 MB, free: 1.188 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2179, allocations: 255 kB / 422.3 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00085/0.2187, allocations: 1.029 MB / 423.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2187, allocations: 0 / 423.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2188, allocations: 0 / 423.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.2188, allocations: 3.938 kB / 423.3 MB, free: 15.9 MB / 314.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.0009506/0.2197, allocations: 0.772 MB / 424.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.2198, allocations: 12.03 kB / 424.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.2203, allocations: 80.34 kB / 424.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003819/0.2207, allocations: 331.5 kB / 424.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.2207, allocations: 29.38 kB / 424.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/0.2208, allocations: 40.28 kB / 424.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/0.2213, allocations: 475.6 kB / 425 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2213, allocations: 3.984 kB / 425 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.2214, allocations: 20 kB / 425 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.2214, allocations: 11.94 kB / 425.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/0.2218, allocations: 311.7 kB / 425.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.2337, allocations: 6.738 MB / 432.1 MB, free: 6.391 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.2341, allocations: 275.2 kB / 432.4 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.2343, allocations: 160.8 kB / 432.5 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009378/0.2437, allocations: 3.877 MB / 436.4 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.2438, allocations: 38.56 kB / 436.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 2.314e-06/0.2438, allocations: 0 / 436.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.0104/0.2542, allocations: 2.457 MB / 438.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/0.2542, allocations: 55.41 kB / 438.9 MB, free: 15.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.2545, allocations: 303.2 kB / 439.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.2546, allocations: 37.7 kB / 439.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2547, allocations: 224.1 kB / 439.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.09e-05/0.2548, allocations: 161.6 kB / 439.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.2549, allocations: 106.1 kB / 439.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.255, allocations: 342.8 kB / 440.1 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.2553, allocations: 153.1 kB / 440.2 MB, free: 13.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.2556, allocations: 279.7 kB / 440.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/0.2561, allocations: 476.3 kB / 441 MB, free: 12.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2561, allocations: 0 / 441 MB, free: 12.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009051/0.257, allocations: 0.5879 MB / 441.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2571, allocations: 11.92 kB / 441.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2571, allocations: 4 kB / 441.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007086/0.2642, allocations: 1.858 MB / 443.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.2645, allocations: 103.8 kB / 443.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.2662, allocations: 2.471 MB / 446 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.2665, allocations: 31.89 kB / 446 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.2665, allocations: 28.06 kB / 446.1 MB, free: 7.656 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 (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.0001796/0.2667, allocations: 181.6 kB / 446.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.129e-05/0.2668, allocations: 39.47 kB / 446.3 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.2678, allocations: 0.8475 MB / 447.1 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.2679, allocations: 11.98 kB / 447.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.2679, allocations: 0 / 447.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008961/0.2688, allocations: 0.9612 MB / 448.1 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.2704, allocations: 1.493 MB / 449.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.2705, allocations: 0 / 449.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.2707, allocations: 75.91 kB / 449.7 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003117/0.2739, allocations: 0.614 MB / 450.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.2739, allocations: 19.98 kB / 450.3 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008571/0.2748, allocations: 1.28 MB / 451.6 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2748, allocations: 0 / 451.6 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03756/0.3124, allocations: 18.84 MB / 470.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.778e-05/0.3125, allocations: 116.6 kB / 470.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.925e-05/0.3125, allocations: 15.94 kB / 470.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.3128, allocations: 23.92 kB / 470.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.3129, allocations: 31.95 kB / 470.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.3129, allocations: 19.98 kB / 470.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001883/0.3131, allocations: 210 kB / 470.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3131, allocations: 0 / 470.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001405/0.3145, allocations: 0.5428 MB / 471.4 MB, free: 13.55 MB / 362.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 (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.001411/0.316, allocations: 0.491 MB / 471.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3171, allocations: 0.6909 MB / 472.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3171, allocations: 0 / 472.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008102/0.3179, allocations: 437 kB / 473 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.3191, allocations: 229.1 kB / 473.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.3221, allocations: 2.373 MB / 475.6 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.3225, allocations: 0.8679 MB / 476.5 MB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003345/0.3228, allocations: 84.31 kB / 476.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3229, allocations: 51.38 kB / 476.6 MB, free: 8.234 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3229, allocations: 0 / 476.6 MB, free: 8.234 MB / 362.7 MB Notification: Performance of Templates: time 0.03467/0.3576, allocations: 27.69 MB / 0.4925 GB, free: 12.51 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches