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.0008683/0.0008682, allocations: 97.2 kB / 18.01 MB, free: 5.602 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.0009148/0.000915, allocations: 177.6 kB / 18.91 MB, free: 4.738 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.323/1.323, allocations: 223.3 MB / 242.9 MB, free: 12 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1923/0.1923, allocations: 44.25 MB / 338.3 MB, free: 2.609 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003439, allocations: 13.78 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1082, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.0414/0.1496, allocations: 39.41 MB / 0.5003 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.253/0.4026, allocations: 20.9 MB / 0.5207 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.4038, allocations: 25.03 kB / 0.5208 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.4053, allocations: 399.4 kB / 0.5211 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01508/0.4204, allocations: 4.18 MB / 0.5252 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008123/0.4285, allocations: 2.236 MB / 0.5274 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003615/0.4322, allocations: 2.841 MB / 0.5302 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000964/0.4331, allocations: 416.9 kB / 0.5306 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009245/0.4424, allocations: 4.047 MB / 0.5345 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01036/0.4528, allocations: 5.459 MB / 0.5399 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.4531, allocations: 39.59 kB / 0.5399 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01521/0.4683, allocations: 7.267 MB / 0.547 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005968/0.469, allocations: 249.1 kB / 0.5472 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.4701, allocations: 448.3 kB / 0.5477 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006668/0.4768, allocations: 3.51 MB / 0.5511 GB, free: 15.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.4768, allocations: 0 / 0.5511 GB, free: 15.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4768, allocations: 0 / 0.5511 GB, free: 15.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.113e-05/0.4769, allocations: 4 kB / 0.5511 GB, free: 15.38 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.004717/0.4816, allocations: 1.526 MB / 0.5526 GB, free: 13.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4816, allocations: 15.95 kB / 0.5526 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002418/0.4841, allocations: 311.5 kB / 0.5529 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.4852, allocations: 0.5614 MB / 0.5534 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.4854, allocations: 125.2 kB / 0.5536 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.4856, allocations: 56.12 kB / 0.5536 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002914/0.4885, allocations: 1.219 MB / 0.5548 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.4885, allocations: 7.938 kB / 0.5548 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.765e-05/0.4886, allocations: 27.83 kB / 0.5548 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.679e-05/0.4887, allocations: 45.3 kB / 0.5549 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002743/0.4915, allocations: 1.063 MB / 0.5559 GB, free: 10.27 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.006812/0.4983, allocations: 5.627 MB / 0.5614 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.5008, allocations: 0.8031 MB / 0.5622 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006196/0.5014, allocations: 305.3 kB / 0.5625 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03407/0.5355, allocations: 15.98 MB / 0.5781 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/0.5356, allocations: 44.03 kB / 0.5781 GB, free: 1.289 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.766e-06/0.5356, allocations: 0 / 0.5781 GB, free: 1.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.007496/0.5431, allocations: 2.368 MB / 0.5805 GB, free: 14.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.5433, allocations: 162.7 kB / 0.5806 GB, free: 14.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008905/0.5442, allocations: 0.6133 MB / 0.5812 GB, free: 14.06 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.945e-05/0.5442, allocations: 33.7 kB / 0.5812 GB, free: 14.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.5446, allocations: 390.9 kB / 0.5816 GB, free: 13.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.5447, allocations: 170.8 kB / 0.5818 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.5449, allocations: 73.69 kB / 0.5819 GB, free: 13.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.545, allocations: 378.8 kB / 0.5822 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006782/0.5457, allocations: 293.8 kB / 0.5825 GB, free: 12.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008677/0.5466, allocations: 0.6238 MB / 0.5831 GB, free: 11.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.5482, allocations: 0.9259 MB / 0.584 GB, free: 10.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.5482, allocations: 4 kB / 0.584 GB, free: 10.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002003/0.5502, allocations: 0.9845 MB / 0.585 GB, free: 9.879 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.5503, allocations: 14.34 kB / 0.585 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.5503, allocations: 8 kB / 0.585 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003153/0.5506, allocations: 68.81 kB / 0.5851 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.552, allocations: 311.6 kB / 0.5854 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.5536, allocations: 1.982 MB / 0.5873 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.5543, allocations: 87.97 kB / 0.5874 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.5544, allocations: 40 kB / 0.5874 GB, free: 7.227 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.0004243/0.5549, allocations: 273.9 kB / 0.5877 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.555, allocations: 71.16 kB / 0.5877 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003444/0.5585, allocations: 2.592 MB / 0.5903 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.625e-05/0.5585, allocations: 39.88 kB / 0.5903 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.5585, allocations: 4 kB / 0.5903 GB, free: 4.242 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.5586, allocations: 3.984 kB / 0.5903 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004765/0.5633, allocations: 3.795 MB / 0.594 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5634, allocations: 0 / 0.594 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.5645, allocations: 243.7 kB / 0.5943 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004129/0.5649, allocations: 96.77 kB / 0.5944 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.565, allocations: 12 kB / 0.5944 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.5664, allocations: 1.991 MB / 0.5963 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5665, allocations: 4.062 kB / 0.5963 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003183/0.5697, allocations: 2.385 MB / 0.5986 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.5702, allocations: 326.9 kB / 0.599 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.5703, allocations: 12 kB / 0.599 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.5709, allocations: 67.8 kB / 0.599 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.5711, allocations: 48.48 kB / 0.5991 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.5711, allocations: 27.98 kB / 0.5991 GB, free: 10.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007752/0.5719, allocations: 0.5576 MB / 0.5996 GB, free: 10.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5719, allocations: 3.938 kB / 0.5996 GB, free: 10.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003208/0.5751, allocations: 1.089 MB / 0.6007 GB, free: 9.332 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.004972/0.5801, allocations: 1.214 MB / 0.6019 GB, free: 8.211 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.5827, allocations: 1.1 MB / 0.603 GB, free: 7.113 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5827, allocations: 0 / 0.603 GB, free: 7.113 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.5843, allocations: 0.809 MB / 0.6038 GB, free: 6.301 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.5867, allocations: 381 kB / 0.6041 GB, free: 5.938 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.5911, allocations: 3.139 MB / 0.6072 GB, free: 2.766 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007739/0.5918, allocations: 1.153 MB / 0.6083 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.5921, allocations: 67.44 kB / 0.6084 GB, free: 1.52 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5921, allocations: 4 kB / 0.6084 GB, free: 1.516 MB / 446.1 MB Notification: Performance of Templates: time 0.05401/0.6461, allocations: 39.4 MB / 0.6469 GB, free: 10.15 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