Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_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.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001788/0.001788, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.398/1.398, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.1959/0.1959, allocations: 44.19 MB / 337.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 61.03 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09406, allocations: 60.83 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03694/0.131, allocations: 39.03 MB / 0.497 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2047/0.3357, allocations: 20.14 MB / 0.5167 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007432/0.3365, allocations: 21.75 kB / 0.5167 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.3379, allocations: 441.3 kB / 0.5171 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01414/0.3521, allocations: 5.118 MB / 0.5221 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006796/0.3589, allocations: 2.569 MB / 0.5246 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.3614, allocations: 1.979 MB / 0.5266 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006921/0.3621, allocations: 498.8 kB / 0.5271 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009141/0.3713, allocations: 4.161 MB / 0.5311 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0105/0.3818, allocations: 5.433 MB / 0.5364 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000266/0.3821, allocations: 71.78 kB / 0.5365 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01328/0.3954, allocations: 7.228 MB / 0.5436 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003977/0.3958, allocations: 277.7 kB / 0.5438 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006459/0.3965, allocations: 459 kB / 0.5443 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.4067, allocations: 5.1 MB / 0.5492 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4067, allocations: 0 / 0.5492 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4068, allocations: 0 / 0.5492 GB, free: 13.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.4068, allocations: 0 / 0.5492 GB, free: 13.2 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.00419/0.411, allocations: 1.688 MB / 0.5509 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.411, allocations: 8.031 kB / 0.5509 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/0.4132, allocations: 307.1 kB / 0.5512 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008463/0.4141, allocations: 0.5577 MB / 0.5517 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.4142, allocations: 113.3 kB / 0.5518 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.4143, allocations: 63.42 kB / 0.5519 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.4169, allocations: 1.192 MB / 0.5531 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.4169, allocations: 0 / 0.5531 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.573e-05/0.417, allocations: 34.81 kB / 0.5531 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.908e-05/0.4171, allocations: 49.22 kB / 0.5531 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/0.4196, allocations: 1.027 MB / 0.5541 GB, free: 8.023 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.006057/0.4257, allocations: 5.613 MB / 0.5596 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.428, allocations: 0.7639 MB / 0.5604 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005839/0.4286, allocations: 289.6 kB / 0.5606 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03344/0.4621, allocations: 15.86 MB / 0.5761 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/0.4622, allocations: 35.28 kB / 0.5762 GB, free: 15.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 3.096e-06/0.4622, allocations: 4 kB / 0.5762 GB, free: 15.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007248/0.4694, allocations: 2.276 MB / 0.5784 GB, free: 12.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/0.4696, allocations: 170.7 kB / 0.5786 GB, free: 12.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007858/0.4704, allocations: 0.6054 MB / 0.5792 GB, free: 12.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/0.4704, allocations: 41.64 kB / 0.5792 GB, free: 12.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/0.4707, allocations: 385.8 kB / 0.5796 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.4709, allocations: 175.5 kB / 0.5797 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.4711, allocations: 162.4 kB / 0.5799 GB, free: 11.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.4712, allocations: 374.8 kB / 0.5802 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006221/0.4719, allocations: 285.8 kB / 0.5805 GB, free: 10.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008297/0.4727, allocations: 0.6004 MB / 0.5811 GB, free: 9.938 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.4742, allocations: 0.9026 MB / 0.582 GB, free: 8.887 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.4742, allocations: 4 kB / 0.582 GB, free: 8.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001909/0.4761, allocations: 0.965 MB / 0.5829 GB, free: 7.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4761, allocations: 12 kB / 0.5829 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.4762, allocations: 8 kB / 0.5829 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.4764, allocations: 60.83 kB / 0.583 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.4777, allocations: 303.6 kB / 0.5833 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.4793, allocations: 2.082 MB / 0.5853 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006034/0.4799, allocations: 39.98 kB / 0.5854 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.837e-05/0.4801, allocations: 48.14 kB / 0.5854 GB, free: 5.207 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].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.0004231/0.4805, allocations: 273.4 kB / 0.5857 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.4807, allocations: 75.09 kB / 0.5857 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/0.4839, allocations: 2.556 MB / 0.5882 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.302e-05/0.4839, allocations: 39.94 kB / 0.5883 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4839, allocations: 1.25 kB / 0.5883 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.484, allocations: 0 / 0.5883 GB, free: 2.266 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00454/0.4885, allocations: 3.759 MB / 0.5919 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4885, allocations: 0 / 0.5919 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.4897, allocations: 227.7 kB / 0.5922 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/0.4901, allocations: 96.62 kB / 0.5923 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.4901, allocations: 12 kB / 0.5923 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.4916, allocations: 2.091 MB / 0.5943 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4916, allocations: 0 / 0.5943 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003166/0.4948, allocations: 2.35 MB / 0.5966 GB, free: 9.496 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.4953, allocations: 267.2 kB / 0.5969 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.4954, allocations: 31.69 kB / 0.5969 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.4959, allocations: 31.97 kB / 0.5969 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4961, allocations: 48.42 kB / 0.597 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.235e-05/0.4961, allocations: 20 kB / 0.597 GB, free: 9.082 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007325/0.4969, allocations: 0.5654 MB / 0.5975 GB, free: 8.516 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4969, allocations: 0 / 0.5975 GB, free: 8.516 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00313/0.5, allocations: 1.085 MB / 0.5986 GB, free: 7.43 MB / 446.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: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.004919/0.5049, allocations: 1.213 MB / 0.5998 GB, free: 6.312 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003393/0.5084, allocations: 1.198 MB / 0.601 GB, free: 5.121 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.5084, allocations: 4 kB / 0.601 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.51, allocations: 0.801 MB / 0.6017 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/0.5123, allocations: 407.8 kB / 0.6021 GB, free: 3.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.5162, allocations: 2.537 MB / 0.6046 GB, free: 1.367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007833/0.517, allocations: 1.157 MB / 0.6057 GB, free: 188 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5173, allocations: 71.42 kB / 0.6058 GB, free: 116 kB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5173, allocations: 0 / 0.6058 GB, free: 116 kB / 446.1 MB Notification: Performance of Templates: time 0.05354/0.5708, allocations: 39.53 MB / 0.6444 GB, free: 8.629 MB / 494.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches