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.001837/0.001837, allocations: 108.4 kB / 17.86 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002456/0.002456, allocations: 209.7 kB / 18.79 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.313/2.313, allocations: 227.4 MB / 246.9 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4338/0.4338, allocations: 46.1 MB / 344.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 75.97 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2035, allocations: 62.44 MB / 479.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.5009/0.7045, allocations: 40.4 MB / 0.5081 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04691/0.7515, allocations: 21.25 MB / 0.5289 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.7543, allocations: 29.28 kB / 0.5289 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002754/0.7572, allocations: 395.4 kB / 0.5293 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02986/0.7871, allocations: 4.185 MB / 0.5334 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01527/0.8024, allocations: 2.238 MB / 0.5356 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007473/0.8099, allocations: 2.851 MB / 0.5384 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.8115, allocations: 424.2 kB / 0.5388 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01821/0.8298, allocations: 4.051 MB / 0.5427 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02183/0.8517, allocations: 5.475 MB / 0.5481 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000384/0.8521, allocations: 35.09 kB / 0.5481 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02848/0.8806, allocations: 7.277 MB / 0.5552 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009596/0.8817, allocations: 259.1 kB / 0.5555 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.8831, allocations: 422 kB / 0.5559 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01479/0.8979, allocations: 3.544 MB / 0.5593 GB, free: 7.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.898, allocations: 4 kB / 0.5593 GB, free: 7.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.898, allocations: 0 / 0.5593 GB, free: 7.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.709e-05/0.898, allocations: 0 / 0.5593 GB, free: 7.203 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.009863/0.9079, allocations: 1.695 MB / 0.561 GB, free: 5.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.778e-05/0.908, allocations: 12.03 kB / 0.561 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003957/0.912, allocations: 299.7 kB / 0.5613 GB, free: 5.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.9138, allocations: 0.5521 MB / 0.5618 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.914, allocations: 113.3 kB / 0.5619 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.9142, allocations: 64.36 kB / 0.562 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004573/0.9188, allocations: 1.193 MB / 0.5631 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.093e-05/0.9189, allocations: 11.88 kB / 0.5632 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.9191, allocations: 28 kB / 0.5632 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.9192, allocations: 41.3 kB / 0.5632 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004509/0.9237, allocations: 1.027 MB / 0.5642 GB, free: 1.984 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.01199/0.9358, allocations: 5.608 MB / 0.5697 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004024/0.9398, allocations: 0.7553 MB / 0.5704 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009523/0.9408, allocations: 296.8 kB / 0.5707 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05383/0.9947, allocations: 17.29 MB / 0.5876 GB, free: 7.488 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.307e-05/0.9948, allocations: 38.52 kB / 0.5876 GB, free: 7.441 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 7.223e-06/0.9948, allocations: 4 kB / 0.5877 GB, free: 7.438 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.01203/1.007, allocations: 2.281 MB / 0.5899 GB, free: 5.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/1.007, allocations: 162.7 kB / 0.59 GB, free: 4.898 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/1.009, allocations: 0.6054 MB / 0.5906 GB, free: 4.285 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.009, allocations: 37.7 kB / 0.5907 GB, free: 4.242 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005138/1.009, allocations: 391.3 kB / 0.591 GB, free: 3.852 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/1.009, allocations: 173.6 kB / 0.5912 GB, free: 3.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000403/1.01, allocations: 158.5 kB / 0.5914 GB, free: 3.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002675/1.01, allocations: 378.8 kB / 0.5917 GB, free: 3.141 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/1.011, allocations: 281.8 kB / 0.592 GB, free: 2.867 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/1.013, allocations: 0.6083 MB / 0.5926 GB, free: 2.105 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/1.015, allocations: 0.9025 MB / 0.5935 GB, free: 1.059 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/1.015, allocations: 4 kB / 0.5935 GB, free: 1.055 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003374/1.019, allocations: 0.9564 MB / 0.5944 GB, free: 88 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/1.019, allocations: 8 kB / 0.5944 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/1.019, allocations: 12.88 kB / 0.5944 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004796/1.019, allocations: 64.77 kB / 0.5945 GB, free: 0 / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/1.022, allocations: 299.6 kB / 0.5948 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/1.024, allocations: 1.995 MB / 0.5967 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/1.026, allocations: 76.05 kB / 0.5968 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/1.026, allocations: 51.98 kB / 0.5968 GB, free: 13.43 MB / 446.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.0007679/1.027, allocations: 272.8 kB / 0.5971 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/1.027, allocations: 71.16 kB / 0.5972 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005642/1.033, allocations: 2.555 MB / 0.5997 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.103e-05/1.033, allocations: 39.92 kB / 0.5997 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/1.033, allocations: 0 / 0.5997 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/1.033, allocations: 3.984 kB / 0.5997 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008222/1.041, allocations: 3.754 MB / 0.6034 GB, free: 6.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.041, allocations: 4 kB / 0.6034 GB, free: 6.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/1.043, allocations: 231.7 kB / 0.6036 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005478/1.043, allocations: 84.69 kB / 0.6037 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/1.044, allocations: 16 kB / 0.6037 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002613/1.046, allocations: 1.991 MB / 0.6056 GB, free: 4.172 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.046, allocations: 0 / 0.6056 GB, free: 4.172 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005844/1.052, allocations: 2.342 MB / 0.6079 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009148/1.053, allocations: 259.3 kB / 0.6082 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/1.053, allocations: 31.69 kB / 0.6082 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/1.055, allocations: 59.86 kB / 0.6083 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/1.055, allocations: 44.48 kB / 0.6083 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.951e-05/1.055, allocations: 27.98 kB / 0.6083 GB, free: 1.375 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00152/1.057, allocations: 0.5615 MB / 0.6089 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.057, allocations: 0 / 0.6089 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006354/1.063, allocations: 1.093 MB / 0.6099 GB, free: 15.72 MB / 462.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.009617/1.073, allocations: 1.239 MB / 0.6111 GB, free: 14.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/1.077, allocations: 1.085 MB / 0.6122 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.077, allocations: 0 / 0.6122 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.08, allocations: 0.8049 MB / 0.613 GB, free: 12.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/1.084, allocations: 378.5 kB / 0.6134 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007012/1.091, allocations: 3.035 MB / 0.6163 GB, free: 9.156 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/1.092, allocations: 1.153 MB / 0.6174 GB, free: 7.973 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/1.093, allocations: 71.44 kB / 0.6175 GB, free: 7.902 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/1.093, allocations: 0 / 0.6175 GB, free: 7.902 MB / 462.1 MB Notification: Performance of Templates: time 0.09963/1.192, allocations: 39.59 MB / 0.6562 GB, free: 344 kB / 494.1 MB 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