Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.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.0008773/0.0008773, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008459/0.0008459, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8282/0.8282, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.DryAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.261e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.01587/0.01588, allocations: 24.37 MB / 342.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.01869, allocations: 3.75 MB / 346.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.01884, allocations: 11.88 kB / 346.6 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005007/0.01934, allocations: 198.6 kB / 346.8 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.01981, allocations: 357.7 kB / 347.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.02249, allocations: 1.507 MB / 348.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008272/0.02332, allocations: 0.8869 MB / 349.5 MB, free: 7.156 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.02346, allocations: 68.88 kB / 349.6 MB, free: 7.094 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003626/0.02709, allocations: 4.291 MB / 353.9 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.02732, allocations: 255.2 kB / 354.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.02736, allocations: 28 kB / 354.1 MB, free: 2.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007789/0.02813, allocations: 0.7023 MB / 354.8 MB, free: 1.816 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.796e-05/0.02823, allocations: 99.64 kB / 354.9 MB, free: 1.719 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.02834, allocations: 147.7 kB / 355.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.02938, allocations: 0.9664 MB / 356.1 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.02938, allocations: 4 kB / 356.1 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.02939, allocations: 0 / 356.1 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.02939, allocations: 0 / 356.1 MB, free: 0.6016 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0006369/0.03003, allocations: 0.5712 MB / 356.6 MB, free: 0 / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.03008, allocations: 8.969 kB / 356.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.543e-05/0.03013, allocations: 66.61 kB / 356.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/0.03039, allocations: 64.69 kB / 356.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.03071, allocations: 225.3 kB / 357 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.03073, allocations: 24.97 kB / 357 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.03076, allocations: 24.38 kB / 357 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.03114, allocations: 494.4 kB / 357.5 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.03115, allocations: 4.125 kB / 357.5 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.03118, allocations: 15.94 kB / 357.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.03118, allocations: 8 kB / 357.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/0.03141, allocations: 209.8 kB / 357.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.03721, allocations: 4.137 MB / 361.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.03743, allocations: 173.6 kB / 362.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.86e-05/0.03753, allocations: 80.83 kB / 362.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004649/0.04218, allocations: 2.68 MB / 364.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.04221, allocations: 38.56 kB / 364.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.04221, allocations: 0 / 364.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.003159/0.04537, allocations: 1.264 MB / 366.1 MB, free: 6.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.0454, allocations: 59.34 kB / 366.2 MB, free: 6.191 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.04559, allocations: 261.8 kB / 366.4 MB, free: 5.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.04561, allocations: 33.7 kB / 366.5 MB, free: 5.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.027e-05/0.0457, allocations: 192.4 kB / 366.7 MB, free: 5.691 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.04574, allocations: 87.23 kB / 366.7 MB, free: 5.605 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/0.04581, allocations: 73.64 kB / 366.8 MB, free: 5.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.137e-05/0.04589, allocations: 334.8 kB / 367.1 MB, free: 5.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.046, allocations: 91.97 kB / 367.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.04615, allocations: 186.8 kB / 367.4 MB, free: 4.879 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.04641, allocations: 307 kB / 367.7 MB, free: 4.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.04641, allocations: 0 / 367.7 MB, free: 4.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004309/0.04685, allocations: 406.9 kB / 368.1 MB, free: 4.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.04686, allocations: 8 kB / 368.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.04687, allocations: 0 / 368.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/0.04886, allocations: 0.9362 MB / 369 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.04902, allocations: 71.83 kB / 369.1 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.05032, allocations: 1.867 MB / 371 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.05043, allocations: 8 kB / 371 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.05045, allocations: 16 kB / 371 MB, free: 1.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.05057, allocations: 149.7 kB / 371.2 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.453e-05/0.05061, allocations: 35.75 kB / 371.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004775/0.05109, allocations: 495.1 kB / 371.7 MB, free: 408 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.0511, allocations: 8 kB / 371.7 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.0511, allocations: 0 / 371.7 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004499/0.05155, allocations: 0.732 MB / 372.4 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008307/0.05238, allocations: 0.879 MB / 373.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.05238, allocations: 0 / 373.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.05249, allocations: 51.91 kB / 373.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007665/0.05325, allocations: 316.3 kB / 373.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.05327, allocations: 12.05 kB / 373.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003233/0.05359, allocations: 0.6499 MB / 374.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.0536, allocations: 3.984 kB / 374.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006039/0.0542, allocations: 0.7331 MB / 375.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.05424, allocations: 27.78 kB / 375.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.05426, allocations: 11.94 kB / 375.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.534e-05/0.05436, allocations: 12.12 kB / 375.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/0.05439, allocations: 19.95 kB / 375.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.0544, allocations: 8 kB / 375.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001221/0.05452, allocations: 189.2 kB / 375.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05452, allocations: 0 / 375.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005991/0.05512, allocations: 183.7 kB / 375.5 MB, free: 12.38 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/0.05629, allocations: 1.467 MB / 377 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000801/0.05709, allocations: 458.3 kB / 377.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.05709, allocations: 0 / 377.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.0574, allocations: 224.6 kB / 377.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.05795, allocations: 175 kB / 377.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.0607, allocations: 3.273 MB / 381.1 MB, free: 6.586 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.06081, allocations: 168.3 kB / 381.2 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000139/0.06095, allocations: 50.94 kB / 381.3 MB, free: 6.355 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.06105, allocations: 108.5 kB / 381.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of SimCode: time 7.51e-07/0.06105, allocations: 0 / 381.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.08477, allocations: 14.53 MB / 395.9 MB, free: 7.945 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/8.283, allocations: 7.656 kB / 395.9 MB, free: 7.941 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1_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_DryAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.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: 10.437525340355933]