Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001607/0.001607, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001805/0.001805, allocations: 214.7 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 63.89 kB / 377.7 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2377, allocations: 53.4 MB / 431.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03697/0.2747, allocations: 34 MB / 465.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005821/0.2805, allocations: 4.171 MB / 469.3 MB, free: 212 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004856/0.281, allocations: 15.94 kB / 469.3 MB, free: 196 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.282, allocations: 270.2 kB / 469.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.2831, allocations: 493.3 kB / 470.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004622/0.2877, allocations: 1.63 MB / 471.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00164/0.2894, allocations: 1.284 MB / 473 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.2896, allocations: 118.9 kB / 473.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006697/0.2903, allocations: 490.5 kB / 473.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.2909, allocations: 410.3 kB / 474 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.708e-05/0.2909, allocations: 44 kB / 474 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001524/0.2925, allocations: 0.7336 MB / 474.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.2926, allocations: 131.5 kB / 474.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.2929, allocations: 243.2 kB / 475.1 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.2943, allocations: 1.056 MB / 476.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2943, allocations: 4 kB / 476.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2943, allocations: 0 / 476.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2943, allocations: 3.938 kB / 476.2 MB, free: 9.305 MB / 382.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.001209/0.2955, allocations: 0.7075 MB / 476.9 MB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.2956, allocations: 15.98 kB / 476.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.781e-05/0.2957, allocations: 86.59 kB / 477 MB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005668/0.2962, allocations: 80.62 kB / 477.1 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/0.2968, allocations: 277.8 kB / 477.4 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.2968, allocations: 33.38 kB / 477.4 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.2969, allocations: 36.38 kB / 477.4 MB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.2977, allocations: 0.6651 MB / 478.1 MB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.2978, allocations: 3.938 kB / 478.1 MB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.2978, allocations: 16 kB / 478.1 MB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.2978, allocations: 15.98 kB / 478.1 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.2983, allocations: 307.7 kB / 478.4 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01279/0.3111, allocations: 4.635 MB / 483.1 MB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004912/0.3116, allocations: 267 kB / 483.3 MB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.3118, allocations: 132.8 kB / 483.4 MB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.3218, allocations: 2.688 MB / 486.1 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.3219, allocations: 38.55 kB / 486.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.645e-06/0.3219, allocations: 0 / 486.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01155/0.3334, allocations: 2.308 MB / 488.5 MB, free: 12.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.3335, allocations: 63.41 kB / 488.5 MB, free: 12.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.3339, allocations: 304.4 kB / 488.8 MB, free: 12.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.472e-05/0.3339, allocations: 37.7 kB / 488.9 MB, free: 12.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.3341, allocations: 224.6 kB / 489.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.3342, allocations: 174.5 kB / 489.3 MB, free: 11.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3344, allocations: 94.34 kB / 489.4 MB, free: 11.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3345, allocations: 346.8 kB / 489.7 MB, free: 11.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.3348, allocations: 153.2 kB / 489.8 MB, free: 11.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/0.3352, allocations: 280.6 kB / 490.1 MB, free: 10.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006724/0.3358, allocations: 468.3 kB / 490.6 MB, free: 10.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3358, allocations: 0 / 490.6 MB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001119/0.337, allocations: 0.6033 MB / 491.2 MB, free: 9.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.337, allocations: 8 kB / 491.2 MB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.337, allocations: 7.938 kB / 491.2 MB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00768/0.3447, allocations: 1.848 MB / 493 MB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.3451, allocations: 107.8 kB / 493.1 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.3473, allocations: 2.454 MB / 495.6 MB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.3476, allocations: 20 kB / 495.6 MB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.3476, allocations: 23.98 kB / 495.6 MB, free: 5.223 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.000227/0.3479, allocations: 177.3 kB / 495.8 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.3479, allocations: 39.77 kB / 495.9 MB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.3492, allocations: 0.8764 MB / 496.7 MB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.3492, allocations: 7.984 kB / 496.7 MB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.3492, allocations: 0 / 496.7 MB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001104/0.3503, allocations: 0.9823 MB / 497.7 MB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/0.3524, allocations: 1.413 MB / 499.1 MB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3524, allocations: 0 / 499.1 MB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.3527, allocations: 83.92 kB / 499.2 MB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003298/0.356, allocations: 0.614 MB / 499.8 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.356, allocations: 23.92 kB / 499.9 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.3572, allocations: 1.296 MB / 0.4894 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3572, allocations: 3.938 kB / 0.4894 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.3589, allocations: 1.247 MB / 0.4906 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.359, allocations: 43.66 kB / 0.4907 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.703e-05/0.3591, allocations: 8 kB / 0.4907 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3593, allocations: 19.92 kB / 0.4907 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.3594, allocations: 31.94 kB / 0.4907 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.3594, allocations: 24.05 kB / 0.4907 GB, free: 14.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.3596, allocations: 211.1 kB / 0.4909 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3596, allocations: 0 / 0.4909 GB, free: 13.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007712/0.3604, allocations: 231.7 kB / 0.4912 GB, free: 13.67 MB / 414.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.002591/0.363, allocations: 1.967 MB / 0.4931 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.3643, allocations: 0.6754 MB / 0.4938 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3643, allocations: 0.5 kB / 0.4938 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009177/0.3652, allocations: 428.3 kB / 0.4942 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.3665, allocations: 245.1 kB / 0.4944 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.3727, allocations: 4.495 MB / 0.4988 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.373, allocations: 237.3 kB / 0.499 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.3733, allocations: 64.36 kB / 0.4991 GB, free: 5.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.3735, allocations: 159.4 kB / 0.4992 GB, free: 5.156 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3735, allocations: 0 / 0.4992 GB, free: 5.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06531/0.4388, allocations: 18.5 MB / 0.5173 GB, free: 2.863 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.7, allocations: 0 / 0.5173 GB, free: 2.863 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.272895252797753]