Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001097/0.001097, allocations: 183.8 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2003/0.2003, allocations: 44.19 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3548, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04249/0.3973, allocations: 39.03 MB / 0.557 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02424/0.4216, allocations: 20.15 MB / 0.5767 GB, free: 0.707 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.423, allocations: 19.88 kB / 0.5767 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.4249, allocations: 453.3 kB / 0.5772 GB, free: 248 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01938/0.4443, allocations: 5.105 MB / 0.5821 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009092/0.4535, allocations: 2.567 MB / 0.5846 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003268/0.4568, allocations: 1.997 MB / 0.5866 GB, free: 6.562 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.4578, allocations: 497.5 kB / 0.5871 GB, free: 6.062 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01054/0.4684, allocations: 4.16 MB / 0.5911 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01211/0.4805, allocations: 5.428 MB / 0.5964 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003862/0.481, allocations: 72 kB / 0.5965 GB, free: 12.26 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01739/0.4984, allocations: 7.395 MB / 0.6037 GB, free: 4.855 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006898/0.4991, allocations: 295.1 kB / 0.604 GB, free: 4.566 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.5003, allocations: 458 kB / 0.6044 GB, free: 4.117 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01607/0.5164, allocations: 5.128 MB / 0.6094 GB, free: 14.98 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.5165, allocations: 0 / 0.6094 GB, free: 14.98 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5165, allocations: 0 / 0.6094 GB, free: 14.98 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.015e-05/0.5166, allocations: 0 / 0.6094 GB, free: 14.98 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.006304/0.5229, allocations: 1.71 MB / 0.6111 GB, free: 13.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.5229, allocations: 8.031 kB / 0.6111 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002499/0.5254, allocations: 308.1 kB / 0.6114 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.5268, allocations: 0.5837 MB / 0.612 GB, free: 12.28 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.527, allocations: 117.3 kB / 0.6121 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.5271, allocations: 60.12 kB / 0.6122 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/0.5298, allocations: 1.165 MB / 0.6133 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.5298, allocations: 3.938 kB / 0.6133 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.5299, allocations: 32 kB / 0.6133 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.87e-05/0.53, allocations: 41.3 kB / 0.6134 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.5318, allocations: 0.8479 MB / 0.6142 GB, free: 9.902 MB / 478.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.006582/0.5384, allocations: 5.498 MB / 0.6196 GB, free: 4.031 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.5397, allocations: 0.5764 MB / 0.6201 GB, free: 3.438 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003734/0.5401, allocations: 229.6 kB / 0.6204 GB, free: 3.207 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09135/0.6314, allocations: 46.41 MB / 0.6657 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.6315, allocations: 42.5 kB / 0.6657 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=42): time 2.044e-06/0.6315, allocations: 0 / 0.6657 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=46): time 0.005424/0.6369, allocations: 1.94 MB / 0.6676 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.6371, allocations: 174.2 kB / 0.6678 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008158/0.6379, allocations: 0.6172 MB / 0.6684 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.638, allocations: 37.64 kB / 0.6684 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003/0.6383, allocations: 404.2 kB / 0.6688 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.6385, allocations: 170.6 kB / 0.669 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.6387, allocations: 154.6 kB / 0.6691 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6389, allocations: 378.8 kB / 0.6695 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.6393, allocations: 233.9 kB / 0.6697 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/0.6399, allocations: 0.5639 MB / 0.6702 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.6409, allocations: 0.8446 MB / 0.6711 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.6409, allocations: 0 / 0.6711 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001406/0.6424, allocations: 0.8796 MB / 0.6719 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.6424, allocations: 11.12 kB / 0.6719 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.6424, allocations: 12 kB / 0.6719 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.6427, allocations: 56.83 kB / 0.672 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.6438, allocations: 283.5 kB / 0.6723 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.6455, allocations: 2.086 MB / 0.6743 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.6461, allocations: 31.94 kB / 0.6743 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.6462, allocations: 43.94 kB / 0.6744 GB, free: 5.934 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004359/0.6466, allocations: 265.6 kB / 0.6746 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.6468, allocations: 79.53 kB / 0.6747 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.6493, allocations: 2.213 MB / 0.6769 GB, free: 3.359 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.6494, allocations: 31.95 kB / 0.6769 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.6494, allocations: 3.938 kB / 0.6769 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.6494, allocations: 3.984 kB / 0.6769 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003693/0.6531, allocations: 3.285 MB / 0.6801 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.6531, allocations: 7.938 kB / 0.6801 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/0.654, allocations: 187.8 kB / 0.6803 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003219/0.6543, allocations: 88.73 kB / 0.6804 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.6544, allocations: 12 kB / 0.6804 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.6558, allocations: 2.09 MB / 0.6824 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6558, allocations: 0 / 0.6824 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002201/0.658, allocations: 1.999 MB / 0.6844 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.6584, allocations: 244 kB / 0.6846 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.6586, allocations: 31.81 kB / 0.6847 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005436/0.6591, allocations: 31.97 kB / 0.6847 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.6592, allocations: 36.38 kB / 0.6847 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/0.6593, allocations: 19.98 kB / 0.6847 GB, free: 11.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006937/0.66, allocations: 0.5108 MB / 0.6852 GB, free: 10.51 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.6e-07/0.66, allocations: 0 / 0.6852 GB, free: 10.51 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00312/0.6631, allocations: 1.096 MB / 0.6863 GB, free: 9.41 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005018/0.6681, allocations: 1.228 MB / 0.6875 GB, free: 8.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001981/0.6701, allocations: 0.9357 MB / 0.6884 GB, free: 7.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.6701, allocations: 0 / 0.6884 GB, free: 7.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.6713, allocations: 0.6716 MB / 0.6891 GB, free: 6.574 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.6734, allocations: 390.1 kB / 0.6895 GB, free: 6.203 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.6767, allocations: 2.262 MB / 0.6917 GB, free: 3.914 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006977/0.6774, allocations: 1.121 MB / 0.6928 GB, free: 2.766 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000887/0.6783, allocations: 449.8 kB / 0.6932 GB, free: 2.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.6785, allocations: 59.44 kB / 0.6932 GB, free: 2.262 MB / 0.545 GB Notification: Performance of SimCode: time 5.11e-07/0.6785, allocations: 0 / 0.6932 GB, free: 2.262 MB / 0.545 GB Notification: Performance of Templates: time 0.3252/1.004, allocations: 46.01 MB / 0.7382 GB, free: 194 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches