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.001069/0.001069, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001106/0.001106, allocations: 187 kB / 18.66 MB, free: 4.395 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.306/1.306, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001335/0.001335, allocations: 51.94 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08498, 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.2025/0.2875, allocations: 32.57 MB / 407.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01719/0.3048, allocations: 15.74 MB / 423 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004466/0.3053, allocations: 8.781 kB / 423 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008669/0.3062, allocations: 259.2 kB / 423.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008895/0.3071, allocations: 362.2 kB / 423.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01743/0.3245, allocations: 5.785 MB / 429.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.326, allocations: 1.012 MB / 430.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.3263, allocations: 107.8 kB / 430.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004982/0.3313, allocations: 2.207 MB / 432.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005219/0.3318, allocations: 303.5 kB / 433 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.445e-05/0.3319, allocations: 40 kB / 433.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0119/0.3438, allocations: 6.076 MB / 439.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.344, allocations: 111.7 kB / 439.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004748/0.3445, allocations: 231.1 kB / 439.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009438/0.354, allocations: 3.789 MB / 443.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.354, allocations: 0 / 443.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.354, allocations: 0 / 443.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.354, allocations: 0 / 443.3 MB, free: 11.27 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.00227/0.3563, allocations: 0.9871 MB / 444.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3564, allocations: 16.03 kB / 444.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.719e-05/0.3565, allocations: 66.72 kB / 444.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.3578, allocations: 149.2 kB / 444.5 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004797/0.3583, allocations: 335.5 kB / 444.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.3583, allocations: 25.03 kB / 444.8 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.3584, allocations: 36.31 kB / 444.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.3596, allocations: 0.5151 MB / 445.4 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.3596, allocations: 4 kB / 445.4 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.3597, allocations: 12 kB / 445.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3597, allocations: 8 kB / 445.4 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006023/0.3603, allocations: 329.9 kB / 445.7 MB, free: 8.68 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.002829/0.3631, allocations: 2.56 MB / 448.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/0.3637, allocations: 270.8 kB / 448.5 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3639, allocations: 110 kB / 448.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06413/0.428, allocations: 31.04 MB / 479.7 MB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.4281, allocations: 38.56 kB / 479.7 MB, free: 2.852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.204e-06/0.4281, allocations: 0 / 479.7 MB, free: 2.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003441/0.4315, allocations: 1.198 MB / 480.9 MB, free: 1.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.4316, allocations: 51.41 kB / 481 MB, free: 1.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.4319, allocations: 258.6 kB / 481.2 MB, free: 1.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.4319, allocations: 33.7 kB / 481.3 MB, free: 1.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.432, allocations: 192 kB / 481.4 MB, free: 1.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.44e-05/0.4321, allocations: 110.4 kB / 481.6 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4322, allocations: 78.03 kB / 481.6 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.4324, allocations: 342.8 kB / 482 MB, free: 496 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.4325, allocations: 96.83 kB / 482.1 MB, free: 400 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.4328, allocations: 214.9 kB / 482.3 MB, free: 128 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.4332, allocations: 339.3 kB / 482.6 MB, free: 15.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4332, allocations: 0 / 482.6 MB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007112/0.4339, allocations: 418.6 kB / 483 MB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.434, allocations: 8 kB / 483 MB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.434, allocations: 4 kB / 483 MB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.4343, allocations: 58.16 kB / 483.1 MB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.4347, allocations: 95.83 kB / 483.2 MB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.4364, allocations: 2.527 MB / 485.7 MB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.4366, allocations: 8 kB / 485.7 MB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.4367, allocations: 20 kB / 485.7 MB, free: 12.41 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.0002809/0.437, allocations: 169.9 kB / 485.9 MB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.873e-05/0.4371, allocations: 31.62 kB / 485.9 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009642/0.438, allocations: 0.8538 MB / 486.8 MB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.4381, allocations: 19.92 kB / 486.8 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.4381, allocations: 0 / 486.8 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008501/0.4389, allocations: 1.037 MB / 487.8 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.4406, allocations: 1.489 MB / 489.3 MB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4406, allocations: 4 kB / 489.3 MB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.4409, allocations: 55.91 kB / 489.4 MB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.4412, allocations: 68.7 kB / 489.4 MB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.4412, allocations: 12 kB / 489.5 MB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003337/0.4416, allocations: 0.5875 MB / 490 MB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4416, allocations: 3.938 kB / 490.1 MB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009204/0.4425, allocations: 0.8248 MB / 490.9 MB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.797e-05/0.4426, allocations: 120.7 kB / 491 MB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.4427, allocations: 8 kB / 491 MB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.443, allocations: 19.98 kB / 491 MB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.443, allocations: 27.91 kB / 491 MB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.4431, allocations: 15.98 kB / 491.1 MB, free: 6.824 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.4433, allocations: 239 kB / 491.3 MB, free: 6.586 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4433, allocations: 0 / 491.3 MB, free: 6.586 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002787/0.4461, allocations: 0.8512 MB / 492.1 MB, free: 5.734 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.005542/0.4517, allocations: 2.228 MB / 494.4 MB, free: 3.473 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.4528, allocations: 487.7 kB / 494.9 MB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4528, allocations: 0 / 494.9 MB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.4532, allocations: 253.3 kB / 495.1 MB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.4544, allocations: 194.8 kB / 495.3 MB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00628/0.4607, allocations: 3.963 MB / 499.3 MB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.4611, allocations: 0.825 MB / 0.4884 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.4615, allocations: 183 kB / 0.4885 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.4617, allocations: 151.4 kB / 0.4887 GB, free: 13.22 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4618, allocations: 0 / 0.4887 GB, free: 13.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07488/0.5366, allocations: 39.8 MB / 0.5275 GB, free: 5.312 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.95, allocations: 11.88 kB / 0.5276 GB, free: 5.301 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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