Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.00114/0.00114, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.448/1.448, allocations: 222.9 MB / 243 MB, free: 15.08 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.2044/0.2044, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 64.23 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1242, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03977/0.164, allocations: 39.01 MB / 0.4978 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2529/0.4169, allocations: 20.14 MB / 0.5175 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008304/0.4178, allocations: 25.59 kB / 0.5175 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.419, allocations: 446.3 kB / 0.5179 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01722/0.4362, allocations: 5.122 MB / 0.5229 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01013/0.4464, allocations: 2.575 MB / 0.5254 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003732/0.4501, allocations: 1.993 MB / 0.5274 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009167/0.4511, allocations: 0.4904 MB / 0.5278 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01028/0.4614, allocations: 4.16 MB / 0.5319 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01081/0.4722, allocations: 5.431 MB / 0.5372 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002367/0.4725, allocations: 71.59 kB / 0.5373 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01407/0.4866, allocations: 7.388 MB / 0.5445 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004378/0.487, allocations: 286 kB / 0.5448 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008114/0.4878, allocations: 460.4 kB / 0.5452 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.5012, allocations: 5.113 MB / 0.5502 GB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.5013, allocations: 0 / 0.5502 GB, free: 13.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5013, allocations: 4 kB / 0.5502 GB, free: 13.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.5013, allocations: 0 / 0.5502 GB, free: 13.11 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.004676/0.506, allocations: 1.66 MB / 0.5518 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.506, allocations: 15.97 kB / 0.5518 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/0.5083, allocations: 299.6 kB / 0.5521 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.5095, allocations: 0.5843 MB / 0.5527 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.5097, allocations: 111.8 kB / 0.5528 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.5098, allocations: 52.38 kB / 0.5529 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.5121, allocations: 1.163 MB / 0.554 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.083e-05/0.5122, allocations: 7.938 kB / 0.554 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.057e-05/0.5123, allocations: 27.12 kB / 0.554 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.668e-05/0.5124, allocations: 45.28 kB / 0.5541 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.514, allocations: 0.844 MB / 0.5549 GB, free: 8.16 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.00615/0.5202, allocations: 5.494 MB / 0.5603 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.5214, allocations: 0.5833 MB / 0.5608 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.5218, allocations: 220.3 kB / 0.561 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09196/0.6138, allocations: 46.41 MB / 0.6064 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.921e-05/0.6139, allocations: 42.55 kB / 0.6064 GB, free: 13.76 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 4.759e-06/0.6139, allocations: 0 / 0.6064 GB, free: 13.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005522/0.6194, allocations: 1.919 MB / 0.6083 GB, free: 11.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.916e-05/0.6195, allocations: 166.2 kB / 0.6084 GB, free: 11.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008089/0.6203, allocations: 0.6286 MB / 0.609 GB, free: 10.95 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.153e-05/0.6204, allocations: 37.7 kB / 0.6091 GB, free: 10.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.6207, allocations: 392.6 kB / 0.6095 GB, free: 10.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.6208, allocations: 172.2 kB / 0.6096 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002114/0.6211, allocations: 154.5 kB / 0.6098 GB, free: 10.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.6212, allocations: 378.8 kB / 0.6101 GB, free: 9.824 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.6216, allocations: 233.9 kB / 0.6104 GB, free: 9.598 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006393/0.6223, allocations: 0.564 MB / 0.6109 GB, free: 8.875 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.6233, allocations: 0.8368 MB / 0.6117 GB, free: 7.883 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.6233, allocations: 4 kB / 0.6117 GB, free: 7.879 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001339/0.6247, allocations: 0.8753 MB / 0.6126 GB, free: 6.992 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.6247, allocations: 12 kB / 0.6126 GB, free: 6.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.6247, allocations: 8 kB / 0.6126 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.625, allocations: 60.83 kB / 0.6127 GB, free: 6.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.6262, allocations: 283.6 kB / 0.6129 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/0.628, allocations: 2.073 MB / 0.6149 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.6285, allocations: 35.92 kB / 0.615 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.6286, allocations: 44 kB / 0.615 GB, free: 4.324 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.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.0004067/0.629, allocations: 265.5 kB / 0.6153 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.6292, allocations: 79.31 kB / 0.6154 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002624/0.6318, allocations: 2.201 MB / 0.6175 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.6319, allocations: 31.95 kB / 0.6175 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.6319, allocations: 3.938 kB / 0.6175 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.984e-06/0.6319, allocations: 0 / 0.6175 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004377/0.6363, allocations: 3.287 MB / 0.6207 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.6363, allocations: 0 / 0.6207 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009003/0.6372, allocations: 191.7 kB / 0.6209 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000359/0.6376, allocations: 92.62 kB / 0.621 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.6376, allocations: 12.86 kB / 0.621 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.6394, allocations: 2.091 MB / 0.6231 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6394, allocations: 0 / 0.6231 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.6419, allocations: 1.991 MB / 0.625 GB, free: 9.836 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004224/0.6423, allocations: 235.6 kB / 0.6252 GB, free: 9.586 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/0.6424, allocations: 31.69 kB / 0.6253 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004928/0.6429, allocations: 36.53 kB / 0.6253 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.357e-05/0.643, allocations: 32.39 kB / 0.6253 GB, free: 9.488 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-05/0.643, allocations: 19.98 kB / 0.6254 GB, free: 9.469 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007576/0.6438, allocations: 0.5185 MB / 0.6259 GB, free: 8.949 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6438, allocations: 0 / 0.6259 GB, free: 8.949 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003871/0.6477, allocations: 1.082 MB / 0.6269 GB, free: 7.867 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005365/0.6531, allocations: 1.213 MB / 0.6281 GB, free: 6.758 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.6552, allocations: 0.9395 MB / 0.629 GB, free: 5.824 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.6553, allocations: 4 kB / 0.629 GB, free: 5.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.6565, allocations: 0.6717 MB / 0.6297 GB, free: 5.148 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.6584, allocations: 390.9 kB / 0.6301 GB, free: 4.773 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.6616, allocations: 2.221 MB / 0.6322 GB, free: 2.523 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007252/0.6624, allocations: 1.118 MB / 0.6333 GB, free: 1.379 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008101/0.6632, allocations: 448.2 kB / 0.6337 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.6633, allocations: 63.44 kB / 0.6338 GB, free: 0.875 MB / 478.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6633, allocations: 0 / 0.6338 GB, free: 0.875 MB / 478.1 MB Notification: Performance of Templates: time 0.06776/0.7311, allocations: 45.77 MB / 0.6785 GB, free: 3.27 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches