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.001331/0.001331, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.001208/0.001208, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.33 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.2376/0.2376, allocations: 44.18 MB / 336.8 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 58.56 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.105, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04297/0.148, allocations: 40.26 MB / 0.4975 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2156/0.3637, allocations: 21.22 MB / 0.5182 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009184/0.3647, allocations: 27.75 kB / 0.5183 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.3659, allocations: 397.7 kB / 0.5186 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01281/0.3787, allocations: 4.175 MB / 0.5227 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006584/0.3853, allocations: 2.249 MB / 0.5249 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0031/0.3884, allocations: 2.847 MB / 0.5277 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006604/0.3891, allocations: 435 kB / 0.5281 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00931/0.3984, allocations: 4.053 MB / 0.5321 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.4093, allocations: 5.456 MB / 0.5374 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.4096, allocations: 41.86 kB / 0.5374 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01291/0.4225, allocations: 7.264 MB / 0.5445 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003979/0.4229, allocations: 256.2 kB / 0.5448 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006004/0.4235, allocations: 428.9 kB / 0.5452 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00599/0.4295, allocations: 3.556 MB / 0.5486 GB, free: 14.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4296, allocations: 4 kB / 0.5487 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4296, allocations: 0 / 0.5487 GB, free: 14.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.4296, allocations: 0 / 0.5487 GB, free: 14.35 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.003724/0.4333, allocations: 1.663 MB / 0.5503 GB, free: 12.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.4334, allocations: 11.97 kB / 0.5503 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002208/0.4356, allocations: 291.8 kB / 0.5506 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007904/0.4364, allocations: 0.5671 MB / 0.5511 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.4365, allocations: 113.3 kB / 0.5512 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.4366, allocations: 56.05 kB / 0.5513 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.439, allocations: 1.163 MB / 0.5524 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.439, allocations: 7.938 kB / 0.5524 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.237e-05/0.4391, allocations: 28 kB / 0.5525 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.468e-05/0.4392, allocations: 41.3 kB / 0.5525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.4408, allocations: 0.8479 MB / 0.5533 GB, free: 9.422 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.005791/0.4466, allocations: 5.494 MB / 0.5587 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.4479, allocations: 0.5769 MB / 0.5592 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.4482, allocations: 225.6 kB / 0.5595 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09128/0.5395, allocations: 46.2 MB / 0.6046 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.5396, allocations: 42.56 kB / 0.6046 GB, free: 15.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.394e-06/0.5396, allocations: 0 / 0.6046 GB, free: 15.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005661/0.5453, allocations: 1.931 MB / 0.6065 GB, free: 13.24 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.949e-05/0.5454, allocations: 162.2 kB / 0.6067 GB, free: 13.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008283/0.5463, allocations: 0.6249 MB / 0.6073 GB, free: 12.42 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.879e-05/0.5464, allocations: 37.7 kB / 0.6073 GB, free: 12.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000289/0.5467, allocations: 390.7 kB / 0.6077 GB, free: 12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.5468, allocations: 167.2 kB / 0.6078 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.547, allocations: 154.5 kB / 0.608 GB, free: 11.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.5472, allocations: 378.8 kB / 0.6083 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003926/0.5476, allocations: 225.9 kB / 0.6086 GB, free: 11.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006432/0.5483, allocations: 0.5756 MB / 0.6091 GB, free: 10.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.5493, allocations: 0.8368 MB / 0.6099 GB, free: 9.352 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.5493, allocations: 7.938 kB / 0.6099 GB, free: 9.344 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001462/0.5508, allocations: 0.8743 MB / 0.6108 GB, free: 8.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.5508, allocations: 9 kB / 0.6108 GB, free: 8.449 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.5509, allocations: 12 kB / 0.6108 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.5512, allocations: 60.83 kB / 0.6109 GB, free: 8.375 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.5524, allocations: 283.5 kB / 0.6112 GB, free: 8.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.554, allocations: 1.972 MB / 0.6131 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006824/0.5547, allocations: 68.06 kB / 0.6131 GB, free: 5.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.809e-05/0.5548, allocations: 39.98 kB / 0.6132 GB, free: 5.867 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.0004368/0.5552, allocations: 285.9 kB / 0.6135 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.5554, allocations: 67.25 kB / 0.6135 GB, free: 5.512 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.5579, allocations: 2.216 MB / 0.6157 GB, free: 3.301 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.5579, allocations: 27.95 kB / 0.6157 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5579, allocations: 0 / 0.6157 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.558, allocations: 7.984 kB / 0.6157 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/0.5619, allocations: 3.294 MB / 0.6189 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.5619, allocations: 48 / 0.6189 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009872/0.5629, allocations: 191.8 kB / 0.6191 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003531/0.5633, allocations: 84.69 kB / 0.6192 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.5633, allocations: 16 kB / 0.6192 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.5648, allocations: 1.995 MB / 0.6212 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5649, allocations: 0 / 0.6212 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.5672, allocations: 1.985 MB / 0.6231 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004106/0.5677, allocations: 243.7 kB / 0.6233 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.5678, allocations: 27.84 kB / 0.6234 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006631/0.5685, allocations: 55.8 kB / 0.6234 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.127e-05/0.5686, allocations: 36.39 kB / 0.6234 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.603e-05/0.5687, allocations: 19.98 kB / 0.6235 GB, free: 11.06 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007194/0.5694, allocations: 0.5107 MB / 0.624 GB, free: 10.55 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5694, allocations: 0 / 0.624 GB, free: 10.55 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003295/0.5727, allocations: 1.089 MB / 0.625 GB, free: 9.461 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.005018/0.5778, allocations: 1.221 MB / 0.6262 GB, free: 8.34 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.5798, allocations: 0.9193 MB / 0.6271 GB, free: 7.426 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5799, allocations: 0 / 0.6271 GB, free: 7.426 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.5812, allocations: 0.6648 MB / 0.6278 GB, free: 6.762 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.5833, allocations: 365.4 kB / 0.6281 GB, free: 6.414 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.5871, allocations: 2.732 MB / 0.6308 GB, free: 3.645 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007006/0.5878, allocations: 1.113 MB / 0.6319 GB, free: 2.504 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.588, allocations: 71.42 kB / 0.6319 GB, free: 2.434 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.588, allocations: 0 / 0.6319 GB, free: 2.434 MB / 478.1 MB Notification: Performance of Templates: time 0.07191/0.6599, allocations: 37.86 MB / 0.6689 GB, free: 12.61 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 -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