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.001273/0.001273, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001165/0.001166, allocations: 194 kB / 18.12 MB, free: 5.383 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.331/1.331, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2041/0.2041, allocations: 44.18 MB / 336.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 64.59 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1478, allocations: 60.81 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.05865/0.2065, allocations: 40.26 MB / 0.4969 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2997/0.5063, allocations: 21.22 MB / 0.5176 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009595/0.5073, allocations: 26.81 kB / 0.5176 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.5086, allocations: 400.1 kB / 0.518 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01513/0.5237, allocations: 4.176 MB / 0.5221 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00776/0.5315, allocations: 2.25 MB / 0.5243 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003456/0.535, allocations: 2.841 MB / 0.527 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007144/0.5357, allocations: 427.9 kB / 0.5274 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009274/0.545, allocations: 4.054 MB / 0.5314 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01072/0.5557, allocations: 5.461 MB / 0.5367 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002816/0.5561, allocations: 36.44 kB / 0.5368 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.015/0.5711, allocations: 7.258 MB / 0.5439 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005121/0.5716, allocations: 260.9 kB / 0.5441 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007282/0.5724, allocations: 424 kB / 0.5445 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.5864, allocations: 5.078 MB / 0.5495 GB, free: 12.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.5865, allocations: 0 / 0.5495 GB, free: 12.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5865, allocations: 4 kB / 0.5495 GB, free: 12.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.5865, allocations: 4 kB / 0.5495 GB, free: 12.9 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.005185/0.5917, allocations: 1.686 MB / 0.5511 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.5918, allocations: 15.97 kB / 0.5511 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/0.5939, allocations: 291.8 kB / 0.5514 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008028/0.5947, allocations: 0.5653 MB / 0.552 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.5948, allocations: 116.2 kB / 0.5521 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.912e-05/0.5949, allocations: 56.38 kB / 0.5521 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.5975, allocations: 1.2 MB / 0.5533 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.5975, allocations: 8 kB / 0.5533 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.58e-05/0.5976, allocations: 24 kB / 0.5533 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.786e-05/0.5977, allocations: 45.23 kB / 0.5534 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.6002, allocations: 1.027 MB / 0.5544 GB, free: 7.727 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.006176/0.6063, allocations: 5.596 MB / 0.5598 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002296/0.6087, allocations: 0.7717 MB / 0.5606 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005664/0.6092, allocations: 285.6 kB / 0.5609 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03042/0.6397, allocations: 15.87 MB / 0.5764 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.6398, allocations: 35.28 kB / 0.5764 GB, free: 14.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.345e-06/0.6398, allocations: 4 kB / 0.5764 GB, free: 14.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007194/0.647, allocations: 2.278 MB / 0.5786 GB, free: 12.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.6471, allocations: 162.7 kB / 0.5788 GB, free: 12.42 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008551/0.648, allocations: 0.6055 MB / 0.5794 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.261e-05/0.648, allocations: 37.7 kB / 0.5794 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.6484, allocations: 388.8 kB / 0.5798 GB, free: 11.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.6485, allocations: 181 kB / 0.58 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.6488, allocations: 162.5 kB / 0.5801 GB, free: 11.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6489, allocations: 374.8 kB / 0.5805 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006236/0.6496, allocations: 281.8 kB / 0.5807 GB, free: 10.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008345/0.6504, allocations: 0.6082 MB / 0.5813 GB, free: 9.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.6519, allocations: 0.8987 MB / 0.5822 GB, free: 8.594 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.652, allocations: 7.938 kB / 0.5822 GB, free: 8.586 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001904/0.6539, allocations: 0.9642 MB / 0.5832 GB, free: 7.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.6539, allocations: 10.34 kB / 0.5832 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.6539, allocations: 12.88 kB / 0.5832 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.6542, allocations: 60.83 kB / 0.5832 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.6555, allocations: 299.6 kB / 0.5835 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.6571, allocations: 1.983 MB / 0.5855 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000684/0.6578, allocations: 80.03 kB / 0.5855 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.156e-05/0.6579, allocations: 44 kB / 0.5856 GB, free: 4.984 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.0003893/0.6583, allocations: 266.1 kB / 0.5858 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.6585, allocations: 75.14 kB / 0.5859 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003279/0.6618, allocations: 2.56 MB / 0.5884 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.443e-05/0.6618, allocations: 39.88 kB / 0.5884 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6618, allocations: 0 / 0.5884 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.6618, allocations: 3.984 kB / 0.5884 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.6664, allocations: 3.765 MB / 0.5921 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.6664, allocations: 0.5625 kB / 0.5921 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.6675, allocations: 223.7 kB / 0.5923 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003363/0.6678, allocations: 80.78 kB / 0.5924 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.6679, allocations: 23.92 kB / 0.5924 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.6693, allocations: 1.995 MB / 0.5944 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6694, allocations: 0 / 0.5944 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.6724, allocations: 2.342 MB / 0.5967 GB, free: 9.387 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.6729, allocations: 255.3 kB / 0.5969 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.6731, allocations: 31.69 kB / 0.5969 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005985/0.6737, allocations: 63.8 kB / 0.597 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.6738, allocations: 48.42 kB / 0.5971 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.6739, allocations: 27.98 kB / 0.5971 GB, free: 8.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007826/0.6747, allocations: 0.5537 MB / 0.5976 GB, free: 8.395 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6747, allocations: 0 / 0.5976 GB, free: 8.395 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003283/0.678, allocations: 1.093 MB / 0.5987 GB, free: 7.301 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.005081/0.6831, allocations: 1.219 MB / 0.5999 GB, free: 6.172 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.6858, allocations: 1.1 MB / 0.601 GB, free: 5.074 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.6858, allocations: 0 / 0.601 GB, free: 5.074 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.6875, allocations: 0.8206 MB / 0.6018 GB, free: 4.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.6898, allocations: 382.2 kB / 0.6021 GB, free: 3.891 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.6941, allocations: 2.979 MB / 0.605 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000839/0.695, allocations: 1.161 MB / 0.6062 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001046/0.696, allocations: 445.3 kB / 0.6066 GB, free: 15.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001984/0.6962, allocations: 71.38 kB / 0.6067 GB, free: 15.19 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6963, allocations: 0 / 0.6067 GB, free: 15.19 MB / 462.1 MB Notification: Performance of Templates: time 0.07013/0.7664, allocations: 46.03 MB / 0.6516 GB, free: 1.332 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins/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