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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00106/0.00106, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 59.34 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.107, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1801/0.2872, allocations: 37.52 MB / 395.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.2925, allocations: 4.583 MB / 399.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.2929, allocations: 5.656 kB / 399.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000799/0.2937, allocations: 291.6 kB / 400 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008524/0.2946, allocations: 479.6 kB / 400.4 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004264/0.2988, allocations: 1.649 MB / 402.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.3004, allocations: 1.28 MB / 403.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.3007, allocations: 167.2 kB / 403.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006453/0.3013, allocations: 466 kB / 404 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000458/0.3018, allocations: 406.7 kB / 404.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.3019, allocations: 46.47 kB / 404.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.3036, allocations: 0.7569 MB / 405.2 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.3037, allocations: 132.4 kB / 405.3 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002944/0.304, allocations: 274.2 kB / 405.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.3054, allocations: 1.053 MB / 406.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3054, allocations: 1.469 kB / 406.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3054, allocations: 0 / 406.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.3054, allocations: 0 / 406.6 MB, free: 7.801 MB / 318.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.00105/0.3065, allocations: 0.7768 MB / 407.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3065, allocations: 9.625 kB / 407.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.123e-05/0.3066, allocations: 75.09 kB / 407.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/0.3072, allocations: 83.09 kB / 407.6 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.3076, allocations: 331.6 kB / 407.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3076, allocations: 33.72 kB / 407.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.098e-05/0.3077, allocations: 41.95 kB / 408 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006656/0.3083, allocations: 473.8 kB / 408.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3084, allocations: 2.625 kB / 408.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.513e-05/0.3084, allocations: 17.38 kB / 408.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.3084, allocations: 9.031 kB / 408.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.3089, allocations: 306.6 kB / 408.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.3226, allocations: 6.744 MB / 415.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.3232, allocations: 283.5 kB / 415.8 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.3234, allocations: 145.9 kB / 415.9 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/0.3345, allocations: 3.893 MB / 419.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.3346, allocations: 34.56 kB / 419.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.485e-06/0.3346, allocations: 4 kB / 419.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.01226/0.3469, allocations: 2.459 MB / 422.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.347, allocations: 59.39 kB / 422.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003476/0.3473, allocations: 299.2 kB / 422.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.974e-05/0.3474, allocations: 37.69 kB / 422.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.3475, allocations: 220 kB / 422.9 MB, free: 9.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3477, allocations: 161.7 kB / 423.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.3478, allocations: 102.1 kB / 423.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3479, allocations: 350.8 kB / 423.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.3482, allocations: 149.1 kB / 423.7 MB, free: 8.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.3486, allocations: 279.7 kB / 423.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006516/0.3492, allocations: 476.3 kB / 424.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3492, allocations: 0 / 424.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001086/0.3503, allocations: 0.5918 MB / 425 MB, free: 7.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3504, allocations: 11.94 kB / 425 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3504, allocations: 4 kB / 425 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008189/0.3586, allocations: 1.845 MB / 426.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.359, allocations: 111.8 kB / 427 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.3609, allocations: 2.572 MB / 429.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.3612, allocations: 12 kB / 429.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.3613, allocations: 24 kB / 429.6 MB, free: 2.285 MB / 334.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.0002167/0.3615, allocations: 188.9 kB / 429.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.3616, allocations: 35.62 kB / 429.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.3628, allocations: 0.8552 MB / 430.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3628, allocations: 7.938 kB / 430.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.3628, allocations: 0 / 430.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000995/0.3638, allocations: 0.9612 MB / 431.6 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.3659, allocations: 1.492 MB / 433.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3659, allocations: 0 / 433.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.3662, allocations: 75.91 kB / 433.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003428/0.3696, allocations: 0.6256 MB / 433.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.3697, allocations: 15.94 kB / 433.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009147/0.3706, allocations: 1.28 MB / 435.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3706, allocations: 0 / 435.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.3721, allocations: 1.223 MB / 436.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.3723, allocations: 124.7 kB / 436.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.087e-05/0.3724, allocations: 8 kB / 436.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.3726, allocations: 11.94 kB / 436.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.3727, allocations: 31.95 kB / 436.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/0.3727, allocations: 23.98 kB / 436.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.3729, allocations: 206 kB / 436.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.373, allocations: 0 / 436.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008611/0.3738, allocations: 231.9 kB / 436.9 MB, free: 10.63 MB / 350.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.002348/0.3762, allocations: 1.934 MB / 438.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3777, allocations: 0.7185 MB / 439.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3777, allocations: 0 / 439.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009339/0.3787, allocations: 444 kB / 440 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.38, allocations: 243.6 kB / 440.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00595/0.3859, allocations: 4.517 MB / 444.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.3863, allocations: 0.8324 MB / 445.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.3867, allocations: 76.28 kB / 445.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.3869, allocations: 163.4 kB / 445.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3869, allocations: 4 kB / 445.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.4267, allocations: 17.16 MB / 463 MB, free: 428 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.76, allocations: 4 kB / 463 MB, free: 424 kB / 366.1 MB (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.000404 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches