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.001394/0.001394, allocations: 110 kB / 18.3 MB, free: 4.84 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.001537/0.001537, allocations: 199.4 kB / 19.23 MB, free: 3.914 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.43/1.43, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2047/0.2047, allocations: 44.18 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.64 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03985/0.1501, allocations: 39.02 MB / 0.497 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2295/0.3796, allocations: 20.14 MB / 0.5167 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008685/0.3805, allocations: 26.03 kB / 0.5167 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.3818, allocations: 443.8 kB / 0.5171 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01416/0.396, allocations: 5.113 MB / 0.5221 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007221/0.4033, allocations: 2.571 MB / 0.5247 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00265/0.406, allocations: 1.997 MB / 0.5266 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000822/0.4068, allocations: 0.4925 MB / 0.5271 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009426/0.4162, allocations: 4.162 MB / 0.5311 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01056/0.4268, allocations: 5.424 MB / 0.5364 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002519/0.4271, allocations: 75.92 kB / 0.5365 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01315/0.4403, allocations: 7.22 MB / 0.5436 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004815/0.4408, allocations: 291.2 kB / 0.5438 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007118/0.4415, allocations: 463.5 kB / 0.5443 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.4535, allocations: 5.113 MB / 0.5493 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4536, allocations: 0 / 0.5493 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4536, allocations: 0 / 0.5493 GB, free: 13.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.4536, allocations: 0 / 0.5493 GB, free: 13.18 MB / 398.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.00436/0.458, allocations: 1.661 MB / 0.5509 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.458, allocations: 8.031 kB / 0.5509 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002183/0.4602, allocations: 305.8 kB / 0.5512 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000896/0.4611, allocations: 0.5547 MB / 0.5517 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.4612, allocations: 113.2 kB / 0.5519 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.845e-05/0.4614, allocations: 67.67 kB / 0.5519 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.4637, allocations: 1.158 MB / 0.553 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.4638, allocations: 2.5 kB / 0.5531 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-05/0.4639, allocations: 32.7 kB / 0.5531 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-05/0.4639, allocations: 49.23 kB / 0.5531 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.4657, allocations: 0.844 MB / 0.554 GB, free: 8.246 MB / 398.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.006136/0.4718, allocations: 5.5 MB / 0.5593 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.4731, allocations: 0.591 MB / 0.5599 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/0.4735, allocations: 225.6 kB / 0.5601 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09638/0.5699, allocations: 46.2 MB / 0.6052 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.584e-05/0.57, allocations: 42.56 kB / 0.6053 GB, free: 14.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.635e-06/0.57, allocations: 0 / 0.6053 GB, free: 14.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005367/0.5753, allocations: 1.923 MB / 0.6072 GB, free: 12.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.754e-05/0.5755, allocations: 162.2 kB / 0.6073 GB, free: 11.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008043/0.5763, allocations: 0.6248 MB / 0.6079 GB, free: 11.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.5764, allocations: 37.64 kB / 0.608 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.5766, allocations: 401.8 kB / 0.6083 GB, free: 10.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.5768, allocations: 161.7 kB / 0.6085 GB, free: 10.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.577, allocations: 162.5 kB / 0.6086 GB, free: 10.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5772, allocations: 374.8 kB / 0.609 GB, free: 10.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.5776, allocations: 229.8 kB / 0.6092 GB, free: 9.879 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006012/0.5782, allocations: 0.5679 MB / 0.6098 GB, free: 9.152 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.5792, allocations: 0.8368 MB / 0.6106 GB, free: 8.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.5792, allocations: 4 kB / 0.6106 GB, free: 8.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001446/0.5807, allocations: 0.8707 MB / 0.6114 GB, free: 7.273 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.5807, allocations: 8 kB / 0.6115 GB, free: 7.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.5808, allocations: 12 kB / 0.6115 GB, free: 7.254 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003001/0.5811, allocations: 65.58 kB / 0.6115 GB, free: 7.188 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.5823, allocations: 281 kB / 0.6118 GB, free: 6.914 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.5838, allocations: 2.073 MB / 0.6138 GB, free: 4.684 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000522/0.5844, allocations: 35.92 kB / 0.6139 GB, free: 4.648 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.5845, allocations: 44 kB / 0.6139 GB, free: 4.605 MB / 462.1 MB 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.0003801/0.5848, allocations: 277.4 kB / 0.6142 GB, free: 4.324 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.585, allocations: 71.16 kB / 0.6142 GB, free: 4.254 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.5875, allocations: 2.216 MB / 0.6164 GB, free: 2.043 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.889e-05/0.5875, allocations: 31.89 kB / 0.6164 GB, free: 2.012 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.5875, allocations: 7.969 kB / 0.6164 GB, free: 2.004 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.5876, allocations: 7.984 kB / 0.6164 GB, free: 1.996 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.5911, allocations: 3.281 MB / 0.6196 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5912, allocations: 0 / 0.6196 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009646/0.5921, allocations: 195.7 kB / 0.6198 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003477/0.5925, allocations: 84.69 kB / 0.6199 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.5925, allocations: 11.98 kB / 0.6199 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.594, allocations: 2.094 MB / 0.622 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.594, allocations: 4.031 kB / 0.622 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.5963, allocations: 1.978 MB / 0.6239 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003887/0.5967, allocations: 239.8 kB / 0.6241 GB, free: 9.848 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.5969, allocations: 31.69 kB / 0.6242 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.5975, allocations: 31.97 kB / 0.6242 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.5976, allocations: 36.33 kB / 0.6242 GB, free: 9.746 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.5976, allocations: 27.98 kB / 0.6243 GB, free: 9.719 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006607/0.5983, allocations: 0.5107 MB / 0.6248 GB, free: 9.207 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5983, allocations: 0 / 0.6248 GB, free: 9.207 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00313/0.6014, allocations: 1.085 MB / 0.6258 GB, free: 8.121 MB / 478.1 MB 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.004902/0.6064, allocations: 1.218 MB / 0.627 GB, free: 7.004 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.6089, allocations: 1.014 MB / 0.628 GB, free: 5.996 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.6089, allocations: 4.062 kB / 0.628 GB, free: 5.992 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.6102, allocations: 0.6599 MB / 0.6286 GB, free: 5.332 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/0.6124, allocations: 391.4 kB / 0.629 GB, free: 4.969 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.6159, allocations: 2.293 MB / 0.6313 GB, free: 2.645 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006895/0.6166, allocations: 1.114 MB / 0.6323 GB, free: 1.504 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.6168, allocations: 63.44 kB / 0.6324 GB, free: 1.441 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6168, allocations: 0 / 0.6324 GB, free: 1.441 MB / 478.1 MB Notification: Performance of Templates: time 0.05427/0.6711, allocations: 37.88 MB / 0.6694 GB, free: 11.59 MB / 0.5137 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