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.00132/0.00132, allocations: 109.3 kB / 18.45 MB, free: 4.578 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.001092/0.001092, allocations: 183 kB / 19.38 MB, free: 3.66 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.272/1.272, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1944/0.1944, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 67.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2924, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.0403/0.3327, allocations: 39.03 MB / 0.5577 GB, free: 4.926 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.3563, allocations: 20.15 MB / 0.5774 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009403/0.3573, allocations: 19.88 kB / 0.5774 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.3586, allocations: 445.3 kB / 0.5778 GB, free: 260 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01418/0.3729, allocations: 5.113 MB / 0.5828 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007318/0.3802, allocations: 2.563 MB / 0.5853 GB, free: 8.578 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002999/0.3832, allocations: 1.997 MB / 0.5873 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009446/0.3842, allocations: 0.4936 MB / 0.5877 GB, free: 6.062 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008697/0.3929, allocations: 4.168 MB / 0.5918 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01023/0.4032, allocations: 5.432 MB / 0.5971 GB, free: 12.32 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003258/0.4035, allocations: 80 kB / 0.5972 GB, free: 12.24 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01446/0.418, allocations: 7.383 MB / 0.6044 GB, free: 4.852 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005423/0.4186, allocations: 299.1 kB / 0.6047 GB, free: 4.559 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008686/0.4195, allocations: 458 kB / 0.6051 GB, free: 4.109 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.4307, allocations: 5.106 MB / 0.6101 GB, free: 14.99 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4307, allocations: 0 / 0.6101 GB, free: 14.99 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4307, allocations: 0 / 0.6101 GB, free: 14.99 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.397e-05/0.4308, allocations: 0 / 0.6101 GB, free: 14.99 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.004831/0.4356, allocations: 1.664 MB / 0.6117 GB, free: 13.28 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.4357, allocations: 8.031 kB / 0.6117 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002269/0.438, allocations: 303.6 kB / 0.612 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.439, allocations: 0.5949 MB / 0.6126 GB, free: 12.34 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.4392, allocations: 109.3 kB / 0.6127 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.4393, allocations: 64.11 kB / 0.6128 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.4418, allocations: 1.154 MB / 0.6139 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.4419, allocations: 4 kB / 0.6139 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.793e-05/0.442, allocations: 28 kB / 0.6139 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.186e-05/0.4421, allocations: 45.23 kB / 0.614 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.4438, allocations: 0.844 MB / 0.6148 GB, free: 9.977 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.00628/0.4501, allocations: 5.493 MB / 0.6202 GB, free: 4.105 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.4514, allocations: 0.5764 MB / 0.6207 GB, free: 3.512 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003394/0.4517, allocations: 233.4 kB / 0.621 GB, free: 3.281 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09448/0.5462, allocations: 46.4 MB / 0.6663 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.414e-05/0.5463, allocations: 42.56 kB / 0.6663 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=42): time 3.526e-06/0.5463, allocations: 3.938 kB / 0.6663 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of matching and sorting (n=46): time 0.005335/0.5517, allocations: 1.93 MB / 0.6682 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.994e-05/0.5518, allocations: 166.1 kB / 0.6684 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007599/0.5526, allocations: 0.6133 MB / 0.669 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.5526, allocations: 37.64 kB / 0.669 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.5529, allocations: 395.2 kB / 0.6694 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.553, allocations: 169.7 kB / 0.6695 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.5533, allocations: 158.5 kB / 0.6697 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5534, allocations: 378.8 kB / 0.67 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.5538, allocations: 221.9 kB / 0.6703 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005769/0.5544, allocations: 0.5795 MB / 0.6708 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009883/0.5554, allocations: 0.8368 MB / 0.6716 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.5554, allocations: 4 kB / 0.6716 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00139/0.5568, allocations: 0.8746 MB / 0.6725 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.5568, allocations: 8 kB / 0.6725 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.5569, allocations: 12 kB / 0.6725 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.5572, allocations: 69.55 kB / 0.6726 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.5583, allocations: 275.6 kB / 0.6728 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.5599, allocations: 2.07 MB / 0.6749 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005219/0.5604, allocations: 36.11 kB / 0.6749 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.407e-05/0.5605, allocations: 47.94 kB / 0.6749 GB, free: 6.047 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.00039/0.5609, allocations: 267.2 kB / 0.6752 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.5611, allocations: 71.16 kB / 0.6753 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.5635, allocations: 2.205 MB / 0.6774 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-05/0.5635, allocations: 27.95 kB / 0.6774 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5635, allocations: 7.938 kB / 0.6775 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.5635, allocations: 3.984 kB / 0.6775 GB, free: 3.449 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003505/0.567, allocations: 3.284 MB / 0.6807 GB, free: 92 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5671, allocations: 3.938 kB / 0.6807 GB, free: 88 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009275/0.568, allocations: 191.8 kB / 0.6809 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003283/0.5683, allocations: 76.78 kB / 0.6809 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.5684, allocations: 15.98 kB / 0.6809 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.5698, allocations: 2.098 MB / 0.683 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5698, allocations: 4.031 kB / 0.683 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.572, allocations: 1.983 MB / 0.6849 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003898/0.5724, allocations: 251.4 kB / 0.6852 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.5726, allocations: 19.84 kB / 0.6852 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005549/0.5731, allocations: 36.12 kB / 0.6852 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.257e-05/0.5732, allocations: 32.39 kB / 0.6853 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.5733, allocations: 23.98 kB / 0.6853 GB, free: 11.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006496/0.5739, allocations: 0.5146 MB / 0.6858 GB, free: 10.64 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5739, allocations: 0 / 0.6858 GB, free: 10.64 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002897/0.5769, allocations: 1.085 MB / 0.6868 GB, free: 9.559 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.004703/0.5816, allocations: 1.218 MB / 0.688 GB, free: 8.336 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001891/0.5835, allocations: 0.9201 MB / 0.6889 GB, free: 7.422 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5835, allocations: 0 / 0.6889 GB, free: 7.422 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5847, allocations: 0.6678 MB / 0.6896 GB, free: 6.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.5867, allocations: 384 kB / 0.6899 GB, free: 6.387 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.59, allocations: 2.277 MB / 0.6922 GB, free: 4.074 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.5907, allocations: 1.113 MB / 0.6933 GB, free: 2.934 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.5909, allocations: 75.42 kB / 0.6933 GB, free: 2.859 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.5909, allocations: 0 / 0.6933 GB, free: 2.859 MB / 0.545 GB Notification: Performance of Templates: time 0.249/0.8399, allocations: 37.9 MB / 0.7303 GB, free: 196.5 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/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