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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 116.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 216.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.6 MB / 231.8 MB, free: 4.059 MB / 174.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 52.56 kB / 342.3 MB, free: 9.965 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1092, allocations: 49.12 MB / 391.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03885/0.148, allocations: 32.78 MB / 424.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.1696, allocations: 15.78 MB / 440 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004783/0.1701, allocations: 4 kB / 440 MB, free: 7.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000966/0.1711, allocations: 270.4 kB / 440.3 MB, free: 7.676 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008864/0.1719, allocations: 366 kB / 440.6 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.017/0.1889, allocations: 5.799 MB / 446.4 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.1909, allocations: 1.013 MB / 447.5 MB, free: 488 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.1911, allocations: 81.05 kB / 447.5 MB, free: 404 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005696/0.1968, allocations: 2.208 MB / 449.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005942/0.1974, allocations: 318.7 kB / 450.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.806e-05/0.1975, allocations: 40 kB / 450.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.2104, allocations: 6.084 MB / 456.2 MB, free: 7.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.2107, allocations: 115.6 kB / 456.3 MB, free: 7.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.2111, allocations: 231.1 kB / 456.5 MB, free: 7.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.2214, allocations: 3.8 MB / 460.3 MB, free: 3.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.2214, allocations: 0 / 460.3 MB, free: 3.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2214, allocations: 0 / 460.3 MB, free: 3.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.2214, allocations: 0 / 460.3 MB, free: 3.57 MB / 382.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.003003/0.2244, allocations: 1.023 MB / 461.3 MB, free: 2.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.2244, allocations: 8.031 kB / 461.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.2245, allocations: 70.72 kB / 461.4 MB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.226, allocations: 148.6 kB / 461.6 MB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006087/0.2266, allocations: 335.7 kB / 461.9 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.2266, allocations: 25.03 kB / 461.9 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.974e-05/0.2267, allocations: 40.06 kB / 462 MB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.228, allocations: 0.5073 MB / 462.5 MB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.228, allocations: 4 kB / 462.5 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/0.2281, allocations: 16 kB / 462.5 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.2281, allocations: 8 kB / 462.5 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006948/0.2288, allocations: 325.9 kB / 462.8 MB, free: 0.9453 MB / 382.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.1965/0.4253, allocations: 2.547 MB / 465.4 MB, free: 66.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007674/0.4261, allocations: 267.4 kB / 465.6 MB, free: 66.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.4263, allocations: 108.6 kB / 465.7 MB, free: 66.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0597/0.486, allocations: 31.03 MB / 496.7 MB, free: 42.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.486, allocations: 38.31 kB / 496.8 MB, free: 42.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.815e-06/0.486, allocations: 4 kB / 496.8 MB, free: 42.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.003222/0.4892, allocations: 1.192 MB / 498 MB, free: 41.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.4893, allocations: 58.59 kB / 498 MB, free: 41.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.4895, allocations: 260.5 kB / 498.3 MB, free: 41.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.4895, allocations: 29.7 kB / 498.3 MB, free: 41.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.4896, allocations: 198.7 kB / 498.5 MB, free: 41.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.4897, allocations: 119.3 kB / 498.6 MB, free: 41.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/0.4898, allocations: 74.12 kB / 498.7 MB, free: 41.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.069e-05/0.4898, allocations: 342.8 kB / 499 MB, free: 40.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.49, allocations: 96.78 kB / 499.1 MB, free: 40.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.4901, allocations: 217.6 kB / 499.3 MB, free: 40.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.4905, allocations: 332.2 kB / 499.7 MB, free: 40.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4905, allocations: 0.875 kB / 499.7 MB, free: 40.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005738/0.491, allocations: 422.8 kB / 0.4884 GB, free: 39.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4911, allocations: 11.89 kB / 0.4884 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4911, allocations: 4 kB / 0.4884 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.4913, allocations: 58.19 kB / 0.4884 GB, free: 39.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003341/0.4917, allocations: 91.84 kB / 0.4885 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.4928, allocations: 2.536 MB / 0.491 GB, free: 36.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.493, allocations: 12 kB / 0.491 GB, free: 36.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.493, allocations: 20.19 kB / 0.491 GB, free: 36.71 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): 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.0001587/0.4932, allocations: 160 kB / 0.4912 GB, free: 36.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.629e-05/0.4933, allocations: 35.75 kB / 0.4912 GB, free: 36.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.4941, allocations: 0.8678 MB / 0.4921 GB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4941, allocations: 11.98 kB / 0.4921 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.4941, allocations: 0 / 0.4921 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000648/0.4947, allocations: 1.044 MB / 0.4931 GB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.496, allocations: 1.491 MB / 0.4945 GB, free: 32.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.496, allocations: 0 / 0.4945 GB, free: 32.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.4962, allocations: 51.97 kB / 0.4946 GB, free: 32.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.4965, allocations: 72.75 kB / 0.4947 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.4965, allocations: 8 kB / 0.4947 GB, free: 32.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002262/0.4967, allocations: 0.5953 MB / 0.4953 GB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4967, allocations: 0 / 0.4953 GB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007059/0.4974, allocations: 0.8173 MB / 0.4961 GB, free: 31.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.4975, allocations: 117.2 kB / 0.4962 GB, free: 31.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/0.4975, allocations: 18.14 kB / 0.4962 GB, free: 31.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.4978, allocations: 30.84 kB / 0.4962 GB, free: 31.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.4978, allocations: 19.97 kB / 0.4962 GB, free: 31.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.4979, allocations: 15.98 kB / 0.4962 GB, free: 31.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.4981, allocations: 231.1 kB / 0.4965 GB, free: 30.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4981, allocations: 0 / 0.4965 GB, free: 30.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002113/0.5002, allocations: 0.8615 MB / 0.4973 GB, free: 30.13 MB / 382.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.004335/0.5045, allocations: 2.242 MB / 0.4995 GB, free: 27.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000904/0.5054, allocations: 475.6 kB / 0.5 GB, free: 27.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5054, allocations: 1 kB / 0.5 GB, free: 27.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.5057, allocations: 224.4 kB / 0.5002 GB, free: 27.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.5067, allocations: 196.2 kB / 0.5004 GB, free: 27.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.5115, allocations: 3.974 MB / 0.5042 GB, free: 22.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.5117, allocations: 0.825 MB / 0.505 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003659/0.5121, allocations: 190.2 kB / 0.5052 GB, free: 21.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.5123, allocations: 143.4 kB / 0.5054 GB, free: 21.77 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5123, allocations: 0 / 0.5054 GB, free: 21.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/0.619, allocations: 39.7 MB / 0.5441 GB, free: 13.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.75, allocations: 15.89 kB / 0.5441 GB, free: 13.94 MB / 414.1 MB " [Timeout remaining time 645] (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.000201919 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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.561366224996164]