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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002191/0.002191, allocations: 196.4 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 43.92 kB / 370.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.222, allocations: 52.19 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03662/0.2586, allocations: 33.9 MB / 456.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005661/0.2643, allocations: 4.16 MB / 460.6 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.2645, allocations: 11.88 kB / 460.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007932/0.2653, allocations: 278.3 kB / 460.9 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008754/0.2662, allocations: 489.3 kB / 461.4 MB, free: 7.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004152/0.2703, allocations: 1.633 MB / 463 MB, free: 5.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.2718, allocations: 1.3 MB / 464.3 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.272, allocations: 111 kB / 464.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006129/0.2726, allocations: 0.4906 MB / 464.9 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005223/0.2731, allocations: 402.3 kB / 465.3 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.706e-05/0.2732, allocations: 48 kB / 465.4 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.2746, allocations: 0.7336 MB / 466.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.2747, allocations: 143.5 kB / 466.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002475/0.275, allocations: 239.1 kB / 466.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.2762, allocations: 1.056 MB / 467.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2762, allocations: 0 / 467.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2762, allocations: 0 / 467.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.2763, allocations: 0 / 467.5 MB, free: 1.262 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.001083/0.2773, allocations: 0.7113 MB / 468.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2774, allocations: 8.031 kB / 468.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.532e-05/0.2775, allocations: 82.72 kB / 468.3 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005442/0.278, allocations: 76.62 kB / 468.4 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.2785, allocations: 285.7 kB / 468.7 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.2786, allocations: 29.38 kB / 468.7 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.077e-05/0.2786, allocations: 44.44 kB / 468.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007926/0.2794, allocations: 0.6613 MB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.2794, allocations: 3.938 kB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.2795, allocations: 20 kB / 469.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.2795, allocations: 8 kB / 469.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004906/0.28, allocations: 307.7 kB / 469.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01262/0.2926, allocations: 4.627 MB / 474.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.2931, allocations: 259.2 kB / 474.6 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.2933, allocations: 140.8 kB / 474.8 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/0.3034, allocations: 2.688 MB / 477.5 MB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.3034, allocations: 46.36 kB / 477.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.154e-06/0.3034, allocations: 0 / 477.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01137/0.3148, allocations: 2.312 MB / 479.8 MB, free: 4.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3148, allocations: 55.41 kB / 479.9 MB, free: 4.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.3152, allocations: 316.3 kB / 480.2 MB, free: 4.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.3152, allocations: 33.7 kB / 480.2 MB, free: 4.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.3154, allocations: 228.5 kB / 480.4 MB, free: 4.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.3155, allocations: 170.5 kB / 480.6 MB, free: 3.848 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.3156, allocations: 98.3 kB / 480.7 MB, free: 3.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3158, allocations: 346.8 kB / 481 MB, free: 3.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.3161, allocations: 157.2 kB / 481.2 MB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/0.3164, allocations: 272.7 kB / 481.5 MB, free: 2.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006692/0.3171, allocations: 472.2 kB / 481.9 MB, free: 2.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3171, allocations: 0 / 481.9 MB, free: 2.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001063/0.3182, allocations: 0.5918 MB / 482.5 MB, free: 1.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3182, allocations: 8 kB / 482.5 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3182, allocations: 4.469 kB / 482.5 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007667/0.3259, allocations: 1.85 MB / 484.4 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004268/0.3263, allocations: 111.8 kB / 484.5 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.3284, allocations: 2.45 MB / 486.9 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.3287, allocations: 15.94 kB / 487 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.793e-05/0.3288, allocations: 28.2 kB / 487 MB, free: 13.19 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.0002449/0.329, allocations: 181.7 kB / 487.2 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.118e-05/0.3291, allocations: 39.77 kB / 487.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.3304, allocations: 0.8764 MB / 488.1 MB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.3304, allocations: 11.98 kB / 488.1 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3304, allocations: 7.938 kB / 488.1 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001063/0.3314, allocations: 0.9747 MB / 489.1 MB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3334, allocations: 1.416 MB / 490.5 MB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3334, allocations: 4.031 kB / 490.5 MB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/0.3338, allocations: 79.89 kB / 490.6 MB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003296/0.3371, allocations: 0.6178 MB / 491.2 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.3371, allocations: 19.92 kB / 491.2 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3382, allocations: 1.292 MB / 492.5 MB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3382, allocations: 3.938 kB / 492.5 MB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.3399, allocations: 1.254 MB / 493.8 MB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.34, allocations: 39.7 kB / 493.8 MB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.018e-05/0.3401, allocations: 12.03 kB / 493.8 MB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.3403, allocations: 11.94 kB / 493.8 MB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.3403, allocations: 28.08 kB / 493.8 MB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.3404, allocations: 23.98 kB / 493.9 MB, free: 6.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.3406, allocations: 211.1 kB / 494.1 MB, free: 5.855 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3406, allocations: 0 / 494.1 MB, free: 5.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007355/0.3413, allocations: 231.7 kB / 494.3 MB, free: 5.629 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.002369/0.3437, allocations: 1.973 MB / 496.3 MB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.3449, allocations: 0.6797 MB / 497 MB, free: 2.934 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3449, allocations: 4 kB / 497 MB, free: 2.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009049/0.3458, allocations: 421.1 kB / 497.4 MB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.3471, allocations: 232.8 kB / 497.6 MB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/0.3532, allocations: 4.498 MB / 0.4903 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.3534, allocations: 245 kB / 0.4906 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.3537, allocations: 68.34 kB / 0.4906 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.3539, allocations: 159.4 kB / 0.4908 GB, free: 13.12 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3539, allocations: 0 / 0.4908 GB, free: 13.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05223/0.4062, allocations: 18.5 MB / 0.5088 GB, free: 10.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.71, allocations: 9.625 kB / 0.5088 GB, free: 10.9 MB / 430.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.257294963113964]