Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001238, allocations: 116.2 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 75.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3032, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.0422/0.3454, allocations: 39.17 MB / 0.5699 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.3698, allocations: 20.17 MB / 0.5896 GB, free: 6.195 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009403/0.3708, allocations: 23.81 kB / 0.5897 GB, free: 6.172 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.3722, allocations: 449.3 kB / 0.5901 GB, free: 5.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0147/0.3869, allocations: 5.127 MB / 0.5951 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006905/0.3939, allocations: 2.566 MB / 0.5976 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002743/0.3966, allocations: 1.981 MB / 0.5995 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009388/0.3976, allocations: 497.5 kB / 0.6 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008905/0.4065, allocations: 4.172 MB / 0.6041 GB, free: 7.316 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01043/0.417, allocations: 5.448 MB / 0.6094 GB, free: 1.785 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003124/0.4173, allocations: 68 kB / 0.6095 GB, free: 1.719 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0145/0.4318, allocations: 7.391 MB / 0.6167 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005224/0.4324, allocations: 279.2 kB / 0.6169 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007932/0.4332, allocations: 458 kB / 0.6174 GB, free: 9.598 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.4446, allocations: 5.11 MB / 0.6224 GB, free: 4.477 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4447, allocations: 3.984 kB / 0.6224 GB, free: 4.473 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4447, allocations: 0 / 0.6224 GB, free: 4.473 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.4447, allocations: 0 / 0.6224 GB, free: 4.473 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.004621/0.4493, allocations: 1.688 MB / 0.624 GB, free: 2.734 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4494, allocations: 12.03 kB / 0.624 GB, free: 2.723 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002399/0.4518, allocations: 295.7 kB / 0.6243 GB, free: 2.434 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.4529, allocations: 0.5795 MB / 0.6249 GB, free: 1.812 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.453, allocations: 109.3 kB / 0.625 GB, free: 1.691 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.4532, allocations: 68.12 kB / 0.6251 GB, free: 1.625 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002693/0.4559, allocations: 1.193 MB / 0.6262 GB, free: 340 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/0.4559, allocations: 7.938 kB / 0.6262 GB, free: 332 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.963e-05/0.456, allocations: 32 kB / 0.6263 GB, free: 300 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.696e-05/0.4561, allocations: 41.3 kB / 0.6263 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002696/0.4588, allocations: 1.023 MB / 0.6273 GB, free: 15.23 MB / 494.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.006434/0.4652, allocations: 5.623 MB / 0.6328 GB, free: 9.234 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.4676, allocations: 0.7616 MB / 0.6335 GB, free: 8.461 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/0.4682, allocations: 285.6 kB / 0.6338 GB, free: 8.176 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03418/0.5024, allocations: 17.36 MB / 0.6508 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/0.5025, allocations: 42.5 kB / 0.6508 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.756e-06/0.5025, allocations: 0 / 0.6508 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.007157/0.5097, allocations: 2.28 MB / 0.653 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.5098, allocations: 166.7 kB / 0.6532 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007481/0.5106, allocations: 0.6054 MB / 0.6538 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.285e-05/0.5106, allocations: 37.7 kB / 0.6538 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.5109, allocations: 391.3 kB / 0.6542 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.5111, allocations: 173.6 kB / 0.6543 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.5113, allocations: 162.4 kB / 0.6545 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.5115, allocations: 382.8 kB / 0.6549 GB, free: 304 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006257/0.5121, allocations: 277.8 kB / 0.6551 GB, free: 24 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008692/0.513, allocations: 0.6083 MB / 0.6557 GB, free: 15.27 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.5144, allocations: 0.8987 MB / 0.6566 GB, free: 14.22 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.5145, allocations: 0 / 0.6566 GB, free: 14.22 MB / 0.5138 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001946/0.5164, allocations: 0.968 MB / 0.6575 GB, free: 13.24 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.5165, allocations: 8.938 kB / 0.6576 GB, free: 13.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.5165, allocations: 16 kB / 0.6576 GB, free: 13.22 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002994/0.5168, allocations: 68.83 kB / 0.6576 GB, free: 13.15 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.5181, allocations: 299.5 kB / 0.6579 GB, free: 12.86 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.5196, allocations: 2.074 MB / 0.6599 GB, free: 10.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.5203, allocations: 43.97 kB / 0.66 GB, free: 10.57 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-05/0.5203, allocations: 40 kB / 0.66 GB, free: 10.54 MB / 0.5138 GB 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.0004222/0.5208, allocations: 277.3 kB / 0.6603 GB, free: 10.25 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.521, allocations: 75.19 kB / 0.6604 GB, free: 10.18 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003179/0.5241, allocations: 2.539 MB / 0.6628 GB, free: 7.629 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.5242, allocations: 35.94 kB / 0.6629 GB, free: 7.594 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5242, allocations: 0 / 0.6629 GB, free: 7.594 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.5242, allocations: 7.922 kB / 0.6629 GB, free: 7.586 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.5288, allocations: 3.757 MB / 0.6666 GB, free: 3.758 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/0.5288, allocations: 3.984 kB / 0.6666 GB, free: 3.754 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5299, allocations: 231.7 kB / 0.6668 GB, free: 3.527 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003398/0.5303, allocations: 80.69 kB / 0.6669 GB, free: 3.445 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.5304, allocations: 19.98 kB / 0.6669 GB, free: 3.426 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.5318, allocations: 2.094 MB / 0.6689 GB, free: 1.168 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5318, allocations: 0 / 0.6689 GB, free: 1.168 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003099/0.5349, allocations: 2.347 MB / 0.6712 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004002/0.5354, allocations: 259.4 kB / 0.6715 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.5355, allocations: 31.69 kB / 0.6715 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.5361, allocations: 31.97 kB / 0.6715 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.5362, allocations: 52.48 kB / 0.6716 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.5363, allocations: 23.92 kB / 0.6716 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008005/0.5371, allocations: 0.5576 MB / 0.6721 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5371, allocations: 0 / 0.6721 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003082/0.5402, allocations: 1.097 MB / 0.6732 GB, free: 12.73 MB / 0.5294 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: 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.004761/0.545, allocations: 1.206 MB / 0.6744 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002707/0.5477, allocations: 1.096 MB / 0.6755 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5477, allocations: 0 / 0.6755 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.5494, allocations: 0.8171 MB / 0.6763 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.5516, allocations: 399.7 kB / 0.6766 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.556, allocations: 2.518 MB / 0.6791 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007435/0.5567, allocations: 1.153 MB / 0.6802 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.557, allocations: 75.44 kB / 0.6803 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of SimCode: time 6.62e-07/0.557, allocations: 0 / 0.6803 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of Templates: time 0.2672/0.8242, allocations: 39.64 MB / 0.719 GB, free: 172.8 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p