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.001/0.001, allocations: 115.2 kB / 17.06 MB, free: 6 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.0009891/0.0009892, allocations: 191 kB / 18 MB, free: 5.078 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.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009228/0.0009228, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2316, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03356/0.2652, allocations: 37.45 MB / 438.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005274/0.2705, allocations: 4.576 MB / 442.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004417/0.271, allocations: 4 kB / 442.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008652/0.2718, allocations: 290.2 kB / 443 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.273, allocations: 481.3 kB / 443.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004418/0.2774, allocations: 1.647 MB / 445.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.2791, allocations: 1.269 MB / 446.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.2794, allocations: 174.4 kB / 446.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007469/0.2801, allocations: 478.4 kB / 447.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000675/0.2808, allocations: 402.4 kB / 447.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.802e-05/0.2809, allocations: 44 kB / 447.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001566/0.2825, allocations: 0.7649 MB / 448.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2827, allocations: 123.6 kB / 448.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.283, allocations: 282.9 kB / 448.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.2846, allocations: 1.052 MB / 449.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2846, allocations: 0 / 449.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2846, allocations: 0 / 449.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.2846, allocations: 8 kB / 449.7 MB, free: 7.711 MB / 366.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.001208/0.2858, allocations: 0.7905 MB / 450.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2859, allocations: 11.97 kB / 450.5 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.2865, allocations: 80.61 kB / 450.6 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.287, allocations: 347.6 kB / 450.9 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.2871, allocations: 29.38 kB / 451 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.064e-05/0.2872, allocations: 44.31 kB / 451 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006953/0.2879, allocations: 471.7 kB / 451.5 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2879, allocations: 0 / 451.5 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.2879, allocations: 16 kB / 451.5 MB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.288, allocations: 12 kB / 451.5 MB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.2884, allocations: 303.7 kB / 451.8 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.3014, allocations: 6.739 MB / 458.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.3019, allocations: 278.4 kB / 458.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.3021, allocations: 155.9 kB / 459 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009937/0.3121, allocations: 3.885 MB / 462.8 MB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.3121, allocations: 46.42 kB / 462.9 MB, free: 9.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.064e-06/0.3122, allocations: 0 / 462.9 MB, free: 9.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01178/0.3239, allocations: 2.463 MB / 465.3 MB, free: 6.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.324, allocations: 63.39 kB / 465.4 MB, free: 6.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003321/0.3243, allocations: 295.3 kB / 465.7 MB, free: 6.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.3244, allocations: 37.69 kB / 465.7 MB, free: 6.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.3245, allocations: 228.5 kB / 466 MB, free: 6.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3246, allocations: 166.6 kB / 466.1 MB, free: 6.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.3248, allocations: 102.1 kB / 466.2 MB, free: 6.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3249, allocations: 346.8 kB / 466.6 MB, free: 5.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.3252, allocations: 153.1 kB / 466.7 MB, free: 5.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.3255, allocations: 275.7 kB / 467 MB, free: 5.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006227/0.3261, allocations: 472.2 kB / 467.4 MB, free: 4.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3261, allocations: 4 kB / 467.4 MB, free: 4.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001062/0.3272, allocations: 0.5918 MB / 468 MB, free: 4.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3272, allocations: 11.94 kB / 468 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3273, allocations: 4 kB / 468.1 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007813/0.3351, allocations: 1.847 MB / 469.9 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.3355, allocations: 107.8 kB / 470 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.3374, allocations: 2.561 MB / 472.6 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.3377, allocations: 12 kB / 472.6 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.3377, allocations: 28.12 kB / 472.6 MB, free: 15.37 MB / 398.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.0002034/0.3379, allocations: 179.3 kB / 472.8 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.338, allocations: 43.75 kB / 472.8 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.3392, allocations: 0.8513 MB / 473.7 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.3393, allocations: 11.98 kB / 473.7 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3393, allocations: 0 / 473.7 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009678/0.3402, allocations: 0.9535 MB / 474.6 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.3421, allocations: 1.493 MB / 476.1 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3422, allocations: 3.938 kB / 476.1 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.3425, allocations: 75.91 kB / 476.2 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003241/0.3457, allocations: 0.6218 MB / 476.8 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.3458, allocations: 15.94 kB / 476.8 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009136/0.3467, allocations: 1.288 MB / 478.1 MB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3467, allocations: 0 / 478.1 MB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.3482, allocations: 1.221 MB / 479.4 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3483, allocations: 124.8 kB / 479.5 MB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.3483, allocations: 8 kB / 479.5 MB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.3486, allocations: 15.94 kB / 479.5 MB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.3486, allocations: 27.95 kB / 479.5 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.3487, allocations: 15.98 kB / 479.5 MB, free: 8.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002131/0.3489, allocations: 213.9 kB / 479.8 MB, free: 7.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3489, allocations: 0 / 479.8 MB, free: 7.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006909/0.3496, allocations: 231.7 kB / 480 MB, free: 7.727 MB / 398.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.0005878/0.3502, allocations: 274.7 kB / 480.2 MB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3514, allocations: 0.7062 MB / 481 MB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3514, allocations: 3.938 kB / 481 MB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008998/0.3523, allocations: 428.3 kB / 481.4 MB, free: 6.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.3536, allocations: 247.7 kB / 481.6 MB, free: 6.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.3554, allocations: 1.26 MB / 482.9 MB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.3557, allocations: 0.84 MB / 483.7 MB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002678/0.356, allocations: 68.34 kB / 483.8 MB, free: 3.848 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.428e-05/0.3561, allocations: 39.42 kB / 483.8 MB, free: 3.809 MB / 398.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3561, allocations: 0 / 483.8 MB, free: 3.809 MB / 398.1 MB Notification: Performance of Templates: time 0.01937/0.3755, allocations: 12.77 MB / 496.6 MB, free: 7.121 MB / 414.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