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.001252/0.001252, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001395/0.001395, allocations: 187 kB / 18.67 MB, free: 4.402 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.29/1.29, 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.001249/0.001249, allocations: 47.94 kB / 328.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08254/0.0838, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2063/0.2902, allocations: 32.57 MB / 407.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01693/0.3071, allocations: 15.73 MB / 423 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004104/0.3077, allocations: 13.53 kB / 423 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008498/0.3085, allocations: 268.2 kB / 423.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007702/0.3093, allocations: 366.6 kB / 423.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01847/0.3278, allocations: 5.788 MB / 429.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.3293, allocations: 1.01 MB / 430.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.3295, allocations: 108.6 kB / 430.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005138/0.3346, allocations: 2.208 MB / 432.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.3351, allocations: 305.2 kB / 433 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.75e-05/0.3351, allocations: 43.94 kB / 433.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01056/0.3457, allocations: 6.07 MB / 439.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001743/0.3459, allocations: 115.6 kB / 439.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003904/0.3463, allocations: 227.2 kB / 439.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007413/0.3537, allocations: 3.792 MB / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3538, allocations: 0 / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3538, allocations: 0 / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.3538, allocations: 4 kB / 443.3 MB, free: 11.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.001948/0.3557, allocations: 1.019 MB / 444.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3558, allocations: 8.031 kB / 444.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.527e-05/0.3559, allocations: 74.72 kB / 444.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.3571, allocations: 148.6 kB / 444.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004777/0.3576, allocations: 335.7 kB / 444.9 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.3576, allocations: 21.03 kB / 444.9 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.3577, allocations: 41.23 kB / 444.9 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.3589, allocations: 0.5112 MB / 445.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3589, allocations: 0 / 445.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.359, allocations: 12 kB / 445.4 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.359, allocations: 11.98 kB / 445.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005871/0.3596, allocations: 329.9 kB / 445.8 MB, free: 8.621 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.002704/0.3623, allocations: 2.558 MB / 448.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/0.3629, allocations: 269.4 kB / 448.6 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.363, allocations: 121.3 kB / 448.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06231/0.4254, allocations: 31.04 MB / 479.7 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.4254, allocations: 34.56 kB / 479.8 MB, free: 2.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.4255, allocations: 0 / 479.8 MB, free: 2.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003416/0.4289, allocations: 1.207 MB / 481 MB, free: 1.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.4289, allocations: 55.41 kB / 481 MB, free: 1.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.4292, allocations: 262.5 kB / 481.3 MB, free: 1.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.4292, allocations: 29.7 kB / 481.3 MB, free: 1.133 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.4293, allocations: 192.4 kB / 481.5 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.4294, allocations: 123 kB / 481.6 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.629e-05/0.4295, allocations: 74.14 kB / 481.7 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4297, allocations: 346.7 kB / 482 MB, free: 404 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.4298, allocations: 92.84 kB / 482.1 MB, free: 312 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.43, allocations: 210.9 kB / 482.3 MB, free: 44 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.4305, allocations: 338.4 kB / 482.7 MB, free: 15.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4305, allocations: 4 kB / 482.7 MB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006582/0.4311, allocations: 418.8 kB / 483.1 MB, free: 15.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.4312, allocations: 4 kB / 483.1 MB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4312, allocations: 4 kB / 483.1 MB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.4315, allocations: 54.16 kB / 483.1 MB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.4318, allocations: 100.7 kB / 483.2 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.4334, allocations: 2.526 MB / 485.8 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.4336, allocations: 12 kB / 485.8 MB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.4337, allocations: 19.98 kB / 485.8 MB, free: 12.33 MB / 414.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.0001865/0.4339, allocations: 161.9 kB / 486 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-05/0.4339, allocations: 35.81 kB / 486 MB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009559/0.4349, allocations: 0.8578 MB / 486.9 MB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.4349, allocations: 11.94 kB / 486.9 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4349, allocations: 3.984 kB / 486.9 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008514/0.4358, allocations: 1.04 MB / 487.9 MB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.4373, allocations: 1.497 MB / 489.4 MB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4373, allocations: 1.375 kB / 489.4 MB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.4375, allocations: 51.97 kB / 489.5 MB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000291/0.4378, allocations: 72.72 kB / 489.5 MB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.4379, allocations: 12 kB / 489.5 MB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003366/0.4382, allocations: 0.5914 MB / 490.1 MB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4382, allocations: 0 / 490.1 MB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008763/0.4391, allocations: 0.825 MB / 491 MB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/0.4392, allocations: 116.9 kB / 491.1 MB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.4392, allocations: 15.95 kB / 491.1 MB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.4396, allocations: 28.78 kB / 491.1 MB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.4396, allocations: 15.98 kB / 491.1 MB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.4396, allocations: 15.98 kB / 491.1 MB, free: 6.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002185/0.4399, allocations: 239 kB / 491.4 MB, free: 6.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4399, allocations: 3.938 kB / 491.4 MB, free: 6.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002253/0.4421, allocations: 0.8657 MB / 492.3 MB, free: 5.625 MB / 414.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.004346/0.4465, allocations: 2.247 MB / 494.5 MB, free: 3.344 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008952/0.4474, allocations: 487.7 kB / 495 MB, free: 2.859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4474, allocations: 0 / 495 MB, free: 2.859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003494/0.4478, allocations: 253.3 kB / 495.2 MB, free: 2.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.4488, allocations: 180.8 kB / 495.4 MB, free: 2.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/0.4543, allocations: 3.988 MB / 499.4 MB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.4547, allocations: 0.8249 MB / 0.4885 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003755/0.4551, allocations: 186.9 kB / 0.4887 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.4553, allocations: 147.4 kB / 0.4888 GB, free: 13.08 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4553, allocations: 0 / 0.4888 GB, free: 13.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07128/0.5266, allocations: 39.62 MB / 0.5275 GB, free: 5.355 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.12, allocations: 23.81 kB / 0.5275 GB, free: 5.332 MB / 462.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