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.001061/0.001061, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001061/0.001061, allocations: 184.2 kB / 18.66 MB, free: 4.414 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.314/1.314, 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.001263/0.001263, allocations: 55.92 kB / 328.1 MB, free: 3.75 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09487, allocations: 46.61 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.2437/0.3386, allocations: 32.58 MB / 407.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.3583, allocations: 15.73 MB / 423 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004904/0.3589, allocations: 4.688 kB / 423 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009534/0.3599, allocations: 264.1 kB / 423.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000896/0.3608, allocations: 364.7 kB / 423.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02036/0.3811, allocations: 5.786 MB / 429.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001734/0.3829, allocations: 1.012 MB / 430.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.3832, allocations: 106.7 kB / 430.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005645/0.3888, allocations: 2.196 MB / 432.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004731/0.3893, allocations: 308.5 kB / 433 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.3894, allocations: 42.81 kB / 433.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01301/0.4024, allocations: 6.076 MB / 439.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002831/0.4027, allocations: 107.7 kB / 439.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005453/0.4033, allocations: 231.2 kB / 439.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00974/0.413, allocations: 3.793 MB / 443.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4131, allocations: 0 / 443.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4131, allocations: 0 / 443.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.4131, allocations: 0 / 443.3 MB, free: 11.16 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.002685/0.4158, allocations: 0.991 MB / 444.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4159, allocations: 12.03 kB / 444.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.942e-05/0.416, allocations: 66.72 kB / 444.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001323/0.4173, allocations: 149.2 kB / 444.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.4178, allocations: 335.5 kB / 444.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.4179, allocations: 25.03 kB / 444.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.4179, allocations: 28.38 kB / 444.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.4193, allocations: 0.5151 MB / 445.4 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.4193, allocations: 7.938 kB / 445.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/0.4194, allocations: 16 kB / 445.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.4194, allocations: 8 kB / 445.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006898/0.4201, allocations: 325.9 kB / 445.7 MB, free: 8.57 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.003964/0.4241, allocations: 2.548 MB / 448.3 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006551/0.4247, allocations: 282.7 kB / 448.5 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.425, allocations: 110 kB / 448.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06942/0.4945, allocations: 31.04 MB / 479.7 MB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.4946, allocations: 42.55 kB / 479.7 MB, free: 2.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 3.567e-06/0.4946, allocations: 0 / 479.7 MB, free: 2.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003537/0.4981, allocations: 1.191 MB / 480.9 MB, free: 1.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.4982, allocations: 51.41 kB / 481 MB, free: 1.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.4985, allocations: 266.6 kB / 481.2 MB, free: 1.133 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.4985, allocations: 33.7 kB / 481.3 MB, free: 1.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4987, allocations: 188 kB / 481.4 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.4988, allocations: 110.4 kB / 481.6 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.4989, allocations: 78.03 kB / 481.6 MB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.499, allocations: 346.7 kB / 482 MB, free: 376 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.4992, allocations: 92.83 kB / 482.1 MB, free: 284 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.4995, allocations: 214.9 kB / 482.3 MB, free: 12 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.4999, allocations: 347.2 kB / 482.6 MB, free: 15.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5, allocations: 0 / 482.6 MB, free: 15.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007116/0.5007, allocations: 410.7 kB / 483 MB, free: 15.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.5007, allocations: 8 kB / 483 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.5007, allocations: 4.5 kB / 483 MB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002739/0.501, allocations: 61.69 kB / 483.1 MB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.5014, allocations: 87.89 kB / 483.2 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.5031, allocations: 2.527 MB / 485.7 MB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.5033, allocations: 12 kB / 485.7 MB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.5033, allocations: 20 kB / 485.7 MB, free: 12.29 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.0001821/0.5035, allocations: 165.6 kB / 485.9 MB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.997e-05/0.5036, allocations: 31.62 kB / 485.9 MB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.5046, allocations: 0.8539 MB / 486.8 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.5046, allocations: 19.92 kB / 486.8 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.5047, allocations: 0 / 486.8 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008982/0.5056, allocations: 1.037 MB / 487.8 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.5072, allocations: 1.489 MB / 489.3 MB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5072, allocations: 4 kB / 489.3 MB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.5075, allocations: 51.91 kB / 489.4 MB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.5078, allocations: 80.69 kB / 489.5 MB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.5078, allocations: 8 kB / 489.5 MB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003604/0.5082, allocations: 0.5836 MB / 490 MB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5082, allocations: 7.875 kB / 490.1 MB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009465/0.5092, allocations: 0.8248 MB / 490.9 MB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.454e-05/0.5093, allocations: 120.6 kB / 491 MB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.5093, allocations: 7.938 kB / 491 MB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003071/0.5096, allocations: 19.98 kB / 491 MB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.51e-05/0.5097, allocations: 19.97 kB / 491 MB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.5097, allocations: 15.98 kB / 491.1 MB, free: 6.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.51, allocations: 243.1 kB / 491.3 MB, free: 6.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.51, allocations: 0 / 491.3 MB, free: 6.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002185/0.5121, allocations: 0.8551 MB / 492.1 MB, free: 5.621 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.004799/0.517, allocations: 2.223 MB / 494.4 MB, free: 3.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008936/0.5179, allocations: 492.6 kB / 494.9 MB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5179, allocations: 4.125 kB / 494.9 MB, free: 2.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.5182, allocations: 252.3 kB / 495.1 MB, free: 2.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009997/0.5193, allocations: 186 kB / 495.3 MB, free: 2.441 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005563/0.5248, allocations: 3.976 MB / 499.3 MB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.5252, allocations: 0.8211 MB / 0.4884 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004075/0.5257, allocations: 179 kB / 0.4885 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.5259, allocations: 147.4 kB / 0.4887 GB, free: 13.11 MB / 430.1 MB Notification: Performance of SimCode: time 1.853e-06/0.5259, allocations: 0 / 0.4887 GB, free: 13.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08063/0.6065, allocations: 39.63 MB / 0.5274 GB, free: 5.375 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/14.02, allocations: 11.88 kB / 0.5274 GB, free: 5.363 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