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.001548/0.001548, allocations: 113.4 kB / 17.73 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.001242/0.001242, allocations: 184.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.319/1.319, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002131/0.002131, allocations: 56.14 kB / 328.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1148, allocations: 46.62 MB / 374.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2037/0.3185, allocations: 32.57 MB / 407.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.3361, allocations: 15.73 MB / 423 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005277/0.3367, allocations: 5.094 kB / 423 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009356/0.3376, allocations: 275.6 kB / 423.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008039/0.3384, allocations: 359.5 kB / 423.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01676/0.3552, allocations: 5.803 MB / 429.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3566, allocations: 0.9971 MB / 430.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.3569, allocations: 111.5 kB / 430.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005281/0.3621, allocations: 2.212 MB / 432.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000431/0.3626, allocations: 303.4 kB / 433 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.468e-05/0.3627, allocations: 40 kB / 433.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01127/0.3739, allocations: 6.076 MB / 439.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.3742, allocations: 115.6 kB / 439.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004497/0.3747, allocations: 227.2 kB / 439.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007676/0.3823, allocations: 3.8 MB / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3824, allocations: 0 / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3824, allocations: 0 / 443.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.3824, allocations: 0 / 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.001923/0.3843, allocations: 1.011 MB / 444.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3844, allocations: 16.02 kB / 444.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.441e-05/0.3845, allocations: 70.72 kB / 444.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.3857, allocations: 152.6 kB / 444.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004556/0.3862, allocations: 331.7 kB / 444.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.3862, allocations: 25.03 kB / 444.9 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.3863, allocations: 36.38 kB / 444.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.3874, allocations: 0.5151 MB / 445.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.3874, allocations: 3.938 kB / 445.4 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.3875, allocations: 12 kB / 445.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.3875, allocations: 8.875 kB / 445.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000609/0.3881, allocations: 325.9 kB / 445.8 MB, free: 8.625 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.002632/0.3908, allocations: 2.558 MB / 448.3 MB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005583/0.3913, allocations: 266.8 kB / 448.6 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.3915, allocations: 118 kB / 448.7 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06331/0.4548, allocations: 31.04 MB / 479.7 MB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.4549, allocations: 45.25 kB / 479.8 MB, free: 2.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.935e-06/0.4549, allocations: 4 kB / 479.8 MB, free: 2.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003314/0.4582, allocations: 1.191 MB / 481 MB, free: 1.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.4583, allocations: 55.41 kB / 481 MB, free: 1.445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.4586, allocations: 254.6 kB / 481.3 MB, free: 1.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.4586, allocations: 33.7 kB / 481.3 MB, free: 1.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.4587, allocations: 204.3 kB / 481.5 MB, free: 0.9453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/0.4588, allocations: 111 kB / 481.6 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.4589, allocations: 78.12 kB / 481.7 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4591, allocations: 338.8 kB / 482 MB, free: 424 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.4592, allocations: 92.84 kB / 482.1 MB, free: 332 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.4595, allocations: 218.9 kB / 482.3 MB, free: 56 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/0.4599, allocations: 338.3 kB / 482.7 MB, free: 15.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4599, allocations: 0 / 482.7 MB, free: 15.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007144/0.4607, allocations: 422.7 kB / 483.1 MB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4607, allocations: 8 kB / 483.1 MB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.4607, allocations: 4 kB / 483.1 MB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.461, allocations: 66.12 kB / 483.2 MB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.4613, allocations: 83.91 kB / 483.2 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.4632, allocations: 2.526 MB / 485.8 MB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.4634, allocations: 8 kB / 485.8 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.4635, allocations: 24.19 kB / 485.8 MB, free: 12.34 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.0002167/0.4637, allocations: 165.7 kB / 486 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.4638, allocations: 31.81 kB / 486 MB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.4649, allocations: 0.8595 MB / 486.9 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.4649, allocations: 19.86 kB / 486.9 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.4649, allocations: 0 / 486.9 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009499/0.4659, allocations: 1.044 MB / 487.9 MB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.4675, allocations: 1.497 MB / 489.4 MB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.4676, allocations: 0 / 489.4 MB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.4678, allocations: 55.91 kB / 489.5 MB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003011/0.4681, allocations: 68.8 kB / 489.5 MB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.4681, allocations: 8 kB / 489.5 MB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003489/0.4685, allocations: 0.5914 MB / 490.1 MB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.4685, allocations: 4.906 kB / 490.1 MB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.4695, allocations: 0.8328 MB / 491 MB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.4696, allocations: 112.8 kB / 491.1 MB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.498e-05/0.4697, allocations: 11.95 kB / 491.1 MB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.47, allocations: 19.97 kB / 491.1 MB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/0.4701, allocations: 23.97 kB / 491.1 MB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.4701, allocations: 15.98 kB / 491.2 MB, free: 6.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003243/0.4704, allocations: 239 kB / 491.4 MB, free: 6.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4704, allocations: 0 / 491.4 MB, free: 6.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002835/0.4733, allocations: 0.8618 MB / 492.2 MB, free: 5.633 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.005684/0.479, allocations: 2.24 MB / 494.5 MB, free: 3.359 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.48, allocations: 487.7 kB / 495 MB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.48, allocations: 5 kB / 495 MB, free: 2.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003833/0.4804, allocations: 244.3 kB / 495.2 MB, free: 2.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.4815, allocations: 199.4 kB / 495.4 MB, free: 2.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.4884, allocations: 3.989 MB / 499.4 MB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.4889, allocations: 0.8327 MB / 0.4885 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004134/0.4893, allocations: 183 kB / 0.4887 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001811/0.4895, allocations: 139.4 kB / 0.4888 GB, free: 13.08 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4895, allocations: 0 / 0.4888 GB, free: 13.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07821/0.5677, allocations: 39.63 MB / 0.5275 GB, free: 5.348 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.04, allocations: 19.72 kB / 0.5275 GB, free: 5.328 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