Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: 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_3.2.3_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_3.2.3_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.001351/0.001351, allocations: 118.1 kB / 17.09 MB, free: 6.008 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.001401/0.001401, allocations: 193.3 kB / 18.01 MB, free: 5.094 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.653/1.653, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2129/0.2129, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.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.001511/0.001511, allocations: 71.88 kB / 442.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1151, allocations: 57.79 MB / 0.4886 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04653/0.1617, allocations: 39.04 MB / 0.5267 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2359/0.3976, allocations: 20.15 MB / 0.5463 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008829/0.3985, allocations: 17.78 kB / 0.5464 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.3999, allocations: 447.7 kB / 0.5468 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01545/0.4154, allocations: 5.107 MB / 0.5518 GB, free: 3 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007527/0.423, allocations: 2.561 MB / 0.5543 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.4258, allocations: 1.983 MB / 0.5562 GB, free: 2.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008882/0.4267, allocations: 0.491 MB / 0.5567 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009096/0.4358, allocations: 4.159 MB / 0.5608 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.4469, allocations: 5.441 MB / 0.5661 GB, free: 15 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003388/0.4472, allocations: 71.25 kB / 0.5661 GB, free: 15 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01665/0.4639, allocations: 7.373 MB / 0.5733 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005739/0.4645, allocations: 282.1 kB / 0.5736 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008806/0.4654, allocations: 455.3 kB / 0.574 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01188/0.4773, allocations: 5.099 MB / 0.579 GB, free: 8.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.4773, allocations: 3.938 kB / 0.579 GB, free: 8.254 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4773, allocations: 3.938 kB / 0.579 GB, free: 8.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.485e-05/0.4774, allocations: 0 / 0.579 GB, free: 8.25 MB / 430.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.004796/0.4822, allocations: 1.681 MB / 0.5807 GB, free: 7.086 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.4822, allocations: 10.97 kB / 0.5807 GB, free: 7.086 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002368/0.4846, allocations: 309.7 kB / 0.581 GB, free: 6.934 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.4856, allocations: 0.5785 MB / 0.5815 GB, free: 6.328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.4858, allocations: 121.3 kB / 0.5817 GB, free: 6.199 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.4859, allocations: 59.5 kB / 0.5817 GB, free: 6.145 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.4887, allocations: 1.19 MB / 0.5829 GB, free: 4.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.4887, allocations: 3.938 kB / 0.5829 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.538e-05/0.4888, allocations: 31.98 kB / 0.5829 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-05/0.4889, allocations: 45.3 kB / 0.583 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.4915, allocations: 1.023 MB / 0.584 GB, free: 3.77 MB / 430.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.006541/0.4981, allocations: 5.611 MB / 0.5894 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.5004, allocations: 0.7518 MB / 0.5902 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/0.501, allocations: 294.2 kB / 0.5904 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03353/0.5346, allocations: 15.93 MB / 0.606 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/0.5347, allocations: 42.56 kB / 0.606 GB, free: 10.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=45): time 3.276e-06/0.5347, allocations: 0 / 0.606 GB, free: 10.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=49): time 0.007521/0.5422, allocations: 2.275 MB / 0.6083 GB, free: 8.594 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.953e-05/0.5424, allocations: 162.7 kB / 0.6084 GB, free: 8.398 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008082/0.5432, allocations: 0.6093 MB / 0.609 GB, free: 7.789 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.353e-05/0.5433, allocations: 33.7 kB / 0.6091 GB, free: 7.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/0.5435, allocations: 394 kB / 0.6094 GB, free: 7.363 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.5437, allocations: 172.8 kB / 0.6096 GB, free: 7.195 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/0.544, allocations: 158.5 kB / 0.6097 GB, free: 7.035 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5441, allocations: 378.8 kB / 0.6101 GB, free: 6.656 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006397/0.5448, allocations: 273.8 kB / 0.6104 GB, free: 6.391 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008835/0.5457, allocations: 0.616 MB / 0.611 GB, free: 5.629 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.5472, allocations: 0.8987 MB / 0.6118 GB, free: 4.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.5472, allocations: 0 / 0.6118 GB, free: 4.586 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001968/0.5492, allocations: 0.9602 MB / 0.6128 GB, free: 3.617 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.5493, allocations: 11.98 kB / 0.6128 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.5493, allocations: 12.91 kB / 0.6128 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.5496, allocations: 68.83 kB / 0.6129 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.5509, allocations: 292.5 kB / 0.6132 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.5525, allocations: 2.089 MB / 0.6152 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006813/0.5532, allocations: 43.97 kB / 0.6152 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.5533, allocations: 43.98 kB / 0.6153 GB, free: 0.9062 MB / 462.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.0004353/0.5538, allocations: 281.1 kB / 0.6155 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.554, allocations: 75.97 kB / 0.6156 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.5573, allocations: 2.543 MB / 0.6181 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.169e-05/0.5574, allocations: 35.95 kB / 0.6181 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.5574, allocations: 3.984 kB / 0.6181 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5574, allocations: 0 / 0.6181 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004752/0.5622, allocations: 3.762 MB / 0.6218 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.5622, allocations: 0 / 0.6218 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.5633, allocations: 227.7 kB / 0.622 GB, free: 9.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003523/0.5637, allocations: 84.78 kB / 0.6221 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.5638, allocations: 16 kB / 0.6221 GB, free: 9.812 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.5653, allocations: 2.095 MB / 0.6242 GB, free: 7.547 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5653, allocations: 3.938 kB / 0.6242 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003168/0.5685, allocations: 2.347 MB / 0.6265 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003905/0.5689, allocations: 255.3 kB / 0.6267 GB, free: 4.914 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.5691, allocations: 35.69 kB / 0.6267 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.5696, allocations: 31.97 kB / 0.6268 GB, free: 4.848 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.5697, allocations: 48.5 kB / 0.6268 GB, free: 4.801 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.494e-05/0.5698, allocations: 19.98 kB / 0.6268 GB, free: 4.781 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007782/0.5706, allocations: 0.5615 MB / 0.6274 GB, free: 4.215 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5706, allocations: 0 / 0.6274 GB, free: 4.215 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003444/0.574, allocations: 1.089 MB / 0.6285 GB, free: 3.125 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: 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.005027/0.5791, allocations: 1.212 MB / 0.6296 GB, free: 2.008 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002691/0.5818, allocations: 1.093 MB / 0.6307 GB, free: 0.918 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5818, allocations: 4 kB / 0.6307 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.5835, allocations: 0.809 MB / 0.6315 GB, free: 108 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.5857, allocations: 403 kB / 0.6319 GB, free: 15.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.5898, allocations: 2.517 MB / 0.6343 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007741/0.5906, allocations: 1.153 MB / 0.6355 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.5908, allocations: 75.44 kB / 0.6355 GB, free: 11.91 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5908, allocations: 0 / 0.6355 GB, free: 11.91 MB / 494.1 MB Notification: Performance of Templates: time 0.04998/0.6408, allocations: 39.51 MB / 0.6741 GB, free: 4.383 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches