Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",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.001189/0.001189, allocations: 113.8 kB / 17.73 MB, free: 5.23 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.001237/0.001237, allocations: 187.1 kB / 18.66 MB, free: 4.305 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.307/1.307, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001259/0.001259, allocations: 55.91 kB / 328.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.08861, allocations: 46.62 MB / 374.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.209/0.2976, allocations: 32.56 MB / 407.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01841/0.3161, allocations: 15.74 MB / 423 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000439/0.3167, allocations: 8.688 kB / 423 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008762/0.3176, allocations: 269.1 kB / 423.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007855/0.3184, allocations: 361.5 kB / 423.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02002/0.3384, allocations: 5.794 MB / 429.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.3399, allocations: 0.9822 MB / 430.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.3401, allocations: 103 kB / 430.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005265/0.3454, allocations: 2.192 MB / 432.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003964/0.3458, allocations: 304.5 kB / 433 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.3459, allocations: 36 kB / 433 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006647/0.3525, allocations: 3.613 MB / 436.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.3527, allocations: 99.72 kB / 436.7 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.353, allocations: 223.1 kB / 436.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003447/0.3565, allocations: 2.354 MB / 439.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3565, allocations: 0 / 439.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3565, allocations: 0 / 439.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3565, allocations: 0 / 439.3 MB, free: 15.25 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001443/0.3579, allocations: 0.8406 MB / 440.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.358, allocations: 12.03 kB / 440.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.502e-05/0.3581, allocations: 66.72 kB / 440.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006999/0.3588, allocations: 88.59 kB / 440.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.3593, allocations: 315.8 kB / 440.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.3593, allocations: 25.84 kB / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.3594, allocations: 32.38 kB / 440.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007995/0.3602, allocations: 446.1 kB / 441.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.3602, allocations: 3.984 kB / 441.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.3603, allocations: 16 kB / 441.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.3603, allocations: 8 kB / 441.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005883/0.3609, allocations: 317.8 kB / 441.4 MB, free: 12.96 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.3636, allocations: 2.628 MB / 444.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.3641, allocations: 255.3 kB / 444.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.3643, allocations: 104.8 kB / 444.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03196/0.3963, allocations: 15.55 MB / 460 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.3963, allocations: 38.56 kB / 460 MB, free: 8.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.186e-06/0.3963, allocations: 3.984 kB / 460 MB, free: 8.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.004522/0.4009, allocations: 1.308 MB / 461.3 MB, free: 6.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.4009, allocations: 55.41 kB / 461.4 MB, free: 6.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.4013, allocations: 262.6 kB / 461.6 MB, free: 6.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.4013, allocations: 29.7 kB / 461.7 MB, free: 6.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.4015, allocations: 200.3 kB / 461.9 MB, free: 6.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.735e-05/0.4016, allocations: 115.1 kB / 462 MB, free: 6.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.4017, allocations: 78.08 kB / 462 MB, free: 6.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4019, allocations: 342.8 kB / 462.4 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.402, allocations: 101.7 kB / 462.5 MB, free: 5.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.4023, allocations: 218.9 kB / 462.7 MB, free: 5.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.4028, allocations: 354.3 kB / 463 MB, free: 5.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4028, allocations: 4 kB / 463 MB, free: 5.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000753/0.4035, allocations: 446.8 kB / 463.5 MB, free: 4.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4036, allocations: 8 kB / 463.5 MB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.4036, allocations: 7.938 kB / 463.5 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003178/0.4068, allocations: 261.4 kB / 463.8 MB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.4071, allocations: 81.88 kB / 463.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.4087, allocations: 1.97 MB / 465.8 MB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.4089, allocations: 16 kB / 465.8 MB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.4089, allocations: 19.98 kB / 465.8 MB, free: 2.094 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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.0001923/0.4091, allocations: 173.7 kB / 466 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.039e-05/0.4092, allocations: 31.81 kB / 466 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.4103, allocations: 0.945 MB / 467 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.4103, allocations: 7.984 kB / 467 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.4103, allocations: 0 / 467 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001016/0.4114, allocations: 1.115 MB / 468.1 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.4132, allocations: 1.597 MB / 469.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4132, allocations: 4 kB / 469.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.4134, allocations: 51.91 kB / 469.8 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.415, allocations: 284 kB / 470 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.4151, allocations: 11.98 kB / 470 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005377/0.4156, allocations: 0.6664 MB / 470.7 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4156, allocations: 3.938 kB / 470.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.4168, allocations: 0.9579 MB / 471.7 MB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4169, allocations: 112.8 kB / 471.8 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.417, allocations: 11.95 kB / 471.8 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.4171, allocations: 8 kB / 471.8 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.4172, allocations: 15.98 kB / 471.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.4172, allocations: 15.98 kB / 471.8 MB, free: 11.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.4175, allocations: 247.1 kB / 472.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4175, allocations: 0 / 472.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001462/0.419, allocations: 499.4 kB / 472.6 MB, free: 11.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003724/0.4227, allocations: 1.919 MB / 474.5 MB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009905/0.4237, allocations: 0.5194 MB / 475 MB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.4237, allocations: 5 kB / 475 MB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000467/0.4242, allocations: 308.3 kB / 475.3 MB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.4253, allocations: 192.6 kB / 475.5 MB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005794/0.4311, allocations: 3.958 MB / 479.5 MB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.4316, allocations: 0.8128 MB / 480.3 MB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003376/0.432, allocations: 119.1 kB / 480.4 MB, free: 3.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.4322, allocations: 147.4 kB / 480.5 MB, free: 2.887 MB / 398.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4322, allocations: 0 / 480.5 MB, free: 2.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05238/0.4846, allocations: 23.29 MB / 0.492 GB, free: 11.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.76, allocations: 0 / 0.492 GB, free: 11.52 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_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_Tests_MediaTestModels_Water_WaterIF97_pT.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches