Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",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.001648/0.001648, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.002118/0.002118, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.439/2.439, allocations: 205.1 MB / 224.4 MB, free: 12.28 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.002573/0.002573, allocations: 52.16 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1672, allocations: 46.62 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.07386/0.2412, allocations: 32.57 MB / 360 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03754/0.2788, allocations: 15.73 MB / 375.7 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.2801, allocations: 7.938 kB / 375.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.2825, allocations: 270.4 kB / 376 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002445/0.285, allocations: 361.9 kB / 376.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.4012/0.6863, allocations: 5.774 MB / 382.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002951/0.6893, allocations: 1.007 MB / 383.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005062/0.6898, allocations: 109.3 kB / 383.2 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01145/0.7013, allocations: 2.197 MB / 385.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.7026, allocations: 302.1 kB / 385.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002713/0.7029, allocations: 41.41 kB / 385.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02545/0.7284, allocations: 5.934 MB / 391.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004111/0.7289, allocations: 117.3 kB / 391.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008221/0.7297, allocations: 228 kB / 392 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01901/0.7487, allocations: 3.796 MB / 395.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.068e-05/0.7489, allocations: 1.375 kB / 395.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.7489, allocations: 0 / 395.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.41e-05/0.749, allocations: 0 / 395.8 MB, free: 11.23 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00749/0.7565, allocations: 0.9916 MB / 396.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.615e-05/0.7566, allocations: 8.344 kB / 396.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/0.7568, allocations: 71.72 kB / 396.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.7594, allocations: 151.2 kB / 397 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009868/0.7604, allocations: 321.4 kB / 397.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-05/0.7605, allocations: 26.38 kB / 397.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.7607, allocations: 29.75 kB / 397.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/0.7629, allocations: 0.5161 MB / 397.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.7629, allocations: 4.672 kB / 397.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.763, allocations: 17.72 kB / 397.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.7631, allocations: 7.969 kB / 397.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.7642, allocations: 331.5 kB / 398.3 MB, free: 10.17 MB / 318.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.004703/0.7689, allocations: 2.558 MB / 400.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009287/0.7699, allocations: 278.1 kB / 401.1 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.7701, allocations: 115.7 kB / 401.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1269/0.897, allocations: 30.89 MB / 432.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.709e-05/0.8971, allocations: 40.42 kB / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 4.629e-06/0.8971, allocations: 0 / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.006056/0.9032, allocations: 1.201 MB / 433.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.9033, allocations: 55.41 kB / 433.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.9039, allocations: 267.1 kB / 433.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.348e-05/0.904, allocations: 30.52 kB / 433.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.9042, allocations: 192.5 kB / 433.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.9044, allocations: 113.9 kB / 434 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.9046, allocations: 72.44 kB / 434.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.9048, allocations: 343.6 kB / 434.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.9051, allocations: 96.7 kB / 434.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.9055, allocations: 217.1 kB / 434.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007674/0.9063, allocations: 341.5 kB / 435 MB, free: 8.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.9063, allocations: 0 / 435 MB, free: 8.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001413/0.9077, allocations: 415.6 kB / 435.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.9078, allocations: 4 kB / 435.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.9078, allocations: 4 kB / 435.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005383/0.9084, allocations: 69.41 kB / 435.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007037/0.9091, allocations: 89.92 kB / 435.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/0.9123, allocations: 2.53 MB / 438.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.9128, allocations: 10 kB / 438.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.653e-05/0.9129, allocations: 15.06 kB / 438.2 MB, free: 5.473 MB / 350.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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.9133, allocations: 167.7 kB / 438.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.9135, allocations: 27.72 kB / 438.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.9155, allocations: 0.8628 MB / 439.2 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001876/0.9157, allocations: 15.48 kB / 439.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9157, allocations: 0 / 439.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00158/0.9173, allocations: 1.045 MB / 440.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.9206, allocations: 1.487 MB / 441.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.9207, allocations: 0 / 441.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004086/0.9211, allocations: 55.06 kB / 441.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006283/0.9218, allocations: 76.7 kB / 441.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.836e-05/0.9218, allocations: 8.875 kB / 441.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007382/0.9226, allocations: 0.5882 MB / 442.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.9226, allocations: 3.984 kB / 442.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.9246, allocations: 0.8271 MB / 443.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002976/0.9249, allocations: 112.6 kB / 443.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.9251, allocations: 11.94 kB / 443.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.9258, allocations: 23.98 kB / 443.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.9259, allocations: 27.91 kB / 443.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.735e-05/0.926, allocations: 11.98 kB / 443.5 MB, free: 500 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000524/0.9266, allocations: 243.1 kB / 443.7 MB, free: 252 kB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9266, allocations: 0 / 443.7 MB, free: 252 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.00697/0.9335, allocations: 0.8512 MB / 444.6 MB, free: 15.39 MB / 366.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.h) * 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 (32): * Single equations (assignments): 29 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01462/0.9482, allocations: 2.229 MB / 446.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.9505, allocations: 496.9 kB / 447.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.9506, allocations: 4.062 kB / 447.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.9513, allocations: 263.4 kB / 447.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.9535, allocations: 187.9 kB / 447.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.9678, allocations: 4.013 MB / 451.8 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000691/0.9686, allocations: 0.8211 MB / 452.6 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009172/0.9695, allocations: 175 kB / 452.7 MB, free: 7.145 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.9699, allocations: 143.4 kB / 452.9 MB, free: 7.004 MB / 366.1 MB Notification: Performance of SimCode: time 2.044e-06/0.9699, allocations: 0 / 452.9 MB, free: 7.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1962/1.166, allocations: 39.58 MB / 492.5 MB, free: 15.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.04/23.2, allocations: 12 kB / 492.5 MB, free: 15.36 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_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_WaterIF97OnePhase_ph.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_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/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches