Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001352/0.001352, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 43.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08009/0.08142, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1971/0.2786, allocations: 37.46 MB / 412.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005821/0.2844, allocations: 4.579 MB / 416.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005628/0.2851, allocations: 10.28 kB / 416.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.2861, allocations: 293.7 kB / 417 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.2874, allocations: 493.4 kB / 417.5 MB, free: 452 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005838/0.2933, allocations: 1.641 MB / 419.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.2951, allocations: 1.272 MB / 420.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003703/0.2955, allocations: 167.1 kB / 420.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.2966, allocations: 479.9 kB / 421 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007882/0.2974, allocations: 402.9 kB / 421.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.2976, allocations: 49.25 kB / 421.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002141/0.2997, allocations: 0.7554 MB / 422.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.2999, allocations: 132.9 kB / 422.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005817/0.3005, allocations: 277.8 kB / 422.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002253/0.3028, allocations: 1.054 MB / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3028, allocations: 8 kB / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3028, allocations: 0 / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.3029, allocations: 1.125 kB / 423.7 MB, free: 12.62 MB / 350.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.001528/0.3044, allocations: 0.7823 MB / 424.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3044, allocations: 13.52 kB / 424.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.3046, allocations: 76.78 kB / 424.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000645/0.3052, allocations: 85.94 kB / 424.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005778/0.3058, allocations: 344.3 kB / 425 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3058, allocations: 29.78 kB / 425 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.807e-05/0.3059, allocations: 43.7 kB / 425 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007577/0.3067, allocations: 476.4 kB / 425.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.3067, allocations: 9.875 kB / 425.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.011e-05/0.3068, allocations: 21.47 kB / 425.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.3068, allocations: 9.938 kB / 425.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000519/0.3073, allocations: 306.2 kB / 425.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01361/0.3209, allocations: 6.734 MB / 432.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004975/0.3215, allocations: 274.4 kB / 432.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.3217, allocations: 148.8 kB / 433 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.332, allocations: 3.897 MB / 436.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3321, allocations: 34.56 kB / 436.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.445e-06/0.3321, allocations: 0 / 436.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.01242/0.3445, allocations: 2.456 MB / 439.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.3446, allocations: 59.41 kB / 439.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.3449, allocations: 303.2 kB / 439.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.345, allocations: 33.7 kB / 439.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.3451, allocations: 228.5 kB / 440 MB, free: 13.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3453, allocations: 170.5 kB / 440.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.3454, allocations: 102.2 kB / 440.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3455, allocations: 338.8 kB / 440.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.3458, allocations: 169 kB / 440.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.3461, allocations: 267.7 kB / 441 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.3468, allocations: 476.2 kB / 441.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3468, allocations: 4 kB / 441.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001035/0.3478, allocations: 0.5922 MB / 442.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3479, allocations: 16 kB / 442.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3479, allocations: 0 / 442.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007864/0.3558, allocations: 1.847 MB / 443.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.3562, allocations: 115.8 kB / 444 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.3582, allocations: 2.554 MB / 446.6 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.3586, allocations: 19.92 kB / 446.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.3587, allocations: 20 kB / 446.6 MB, free: 6.48 MB / 366.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.000241/0.3589, allocations: 177.7 kB / 446.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.359, allocations: 39.77 kB / 446.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.3603, allocations: 0.8592 MB / 447.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.3603, allocations: 15.98 kB / 447.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3603, allocations: 0 / 447.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001022/0.3614, allocations: 0.9535 MB / 448.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.3634, allocations: 1.49 MB / 450.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.3634, allocations: 3.984 kB / 450.2 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.3637, allocations: 79.94 kB / 450.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003253/0.367, allocations: 0.6179 MB / 450.9 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.3671, allocations: 15.94 kB / 450.9 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009109/0.368, allocations: 1.288 MB / 452.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.368, allocations: 0 / 452.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.3695, allocations: 1.221 MB / 453.4 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.3697, allocations: 120.8 kB / 453.5 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.383e-05/0.3698, allocations: 12 kB / 453.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.3701, allocations: 15.94 kB / 453.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.329e-05/0.3701, allocations: 23.95 kB / 453.6 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.3702, allocations: 19.98 kB / 453.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3704, allocations: 213.9 kB / 453.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3704, allocations: 0 / 453.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008432/0.3713, allocations: 231.7 kB / 454 MB, free: 14.83 MB / 382.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.002342/0.3736, allocations: 1.939 MB / 456 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3749, allocations: 0.7025 MB / 456.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3749, allocations: 0 / 456.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000901/0.3758, allocations: 429.1 kB / 457.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.3771, allocations: 248.6 kB / 457.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005912/0.383, allocations: 4.49 MB / 461.8 MB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.3834, allocations: 0.8363 MB / 462.6 MB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003171/0.3838, allocations: 72.33 kB / 462.7 MB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.384, allocations: 159.4 kB / 462.9 MB, free: 5.711 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.384, allocations: 0 / 462.9 MB, free: 5.711 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04271/0.4267, allocations: 17.37 MB / 480.2 MB, free: 4.262 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.19, allocations: 4.375 kB / 480.3 MB, free: 4.258 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches