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.001002/0.001002, allocations: 93.12 kB / 18 MB, free: 5.602 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.0009384/0.0009384, allocations: 178.7 kB / 18.91 MB, free: 4.738 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.339/1.339, allocations: 223.3 MB / 243 MB, free: 8 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1994/0.1994, allocations: 44.25 MB / 338.3 MB, free: 2.629 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003023, allocations: 8 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09667, allocations: 61.92 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03953/0.1362, allocations: 39.41 MB / 0.5003 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.226/0.3623, allocations: 20.91 MB / 0.5207 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.3633, allocations: 25.44 kB / 0.5208 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.3646, allocations: 397.8 kB / 0.5211 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01298/0.3776, allocations: 4.174 MB / 0.5252 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007384/0.385, allocations: 2.247 MB / 0.5274 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003306/0.3883, allocations: 2.852 MB / 0.5302 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000696/0.3891, allocations: 426.1 kB / 0.5306 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008029/0.3971, allocations: 4.045 MB / 0.5346 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008678/0.4058, allocations: 5.459 MB / 0.5399 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.406, allocations: 37.06 kB / 0.5399 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01292/0.419, allocations: 7.265 MB / 0.547 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004296/0.4194, allocations: 250.7 kB / 0.5473 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006257/0.4201, allocations: 448 kB / 0.5477 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005604/0.4257, allocations: 3.52 MB / 0.5511 GB, free: 15.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.4257, allocations: 0 / 0.5511 GB, free: 15.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.4257, allocations: 0 / 0.5511 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.4257, allocations: 7.938 kB / 0.5511 GB, free: 15.34 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.004033/0.4298, allocations: 1.485 MB / 0.5526 GB, free: 13.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4298, allocations: 15.97 kB / 0.5526 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.432, allocations: 315.6 kB / 0.5529 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008396/0.4329, allocations: 0.5584 MB / 0.5534 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.433, allocations: 113 kB / 0.5536 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.4332, allocations: 60.38 kB / 0.5536 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.4357, allocations: 1.177 MB / 0.5548 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.72e-05/0.4358, allocations: 7.922 kB / 0.5548 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-05/0.4359, allocations: 34.11 kB / 0.5548 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.098e-05/0.4359, allocations: 41.3 kB / 0.5548 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.4377, allocations: 0.8479 MB / 0.5557 GB, free: 10.54 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.006365/0.4441, allocations: 5.515 MB / 0.5611 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.4454, allocations: 0.573 MB / 0.5616 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.4458, allocations: 217.6 kB / 0.5618 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09858/0.5443, allocations: 46.63 MB / 0.6074 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.776e-05/0.5444, allocations: 38.56 kB / 0.6074 GB, free: 15.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.324e-06/0.5444, allocations: 0 / 0.6074 GB, free: 15.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005535/0.55, allocations: 1.949 MB / 0.6093 GB, free: 13.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.5501, allocations: 162.2 kB / 0.6095 GB, free: 13.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008151/0.5509, allocations: 0.6287 MB / 0.6101 GB, free: 13.08 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.551, allocations: 37.7 kB / 0.6101 GB, free: 13.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.5513, allocations: 387.1 kB / 0.6105 GB, free: 12.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.5515, allocations: 164.3 kB / 0.6106 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.5516, allocations: 73.69 kB / 0.6107 GB, free: 12.42 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5518, allocations: 378.8 kB / 0.6111 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004107/0.5522, allocations: 225.9 kB / 0.6113 GB, free: 11.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006566/0.5528, allocations: 0.5756 MB / 0.6118 GB, free: 11.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.554, allocations: 0.8329 MB / 0.6126 GB, free: 10.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.554, allocations: 4 kB / 0.6127 GB, free: 10.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001507/0.5555, allocations: 0.8705 MB / 0.6135 GB, free: 9.207 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.5556, allocations: 8.969 kB / 0.6135 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.5556, allocations: 12 kB / 0.6135 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003409/0.5559, allocations: 68.81 kB / 0.6136 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.5572, allocations: 287.5 kB / 0.6139 GB, free: 8.836 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.5589, allocations: 1.975 MB / 0.6158 GB, free: 6.707 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/0.5595, allocations: 56.16 kB / 0.6158 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/0.5596, allocations: 44 kB / 0.6159 GB, free: 6.609 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.000441/0.5601, allocations: 281.9 kB / 0.6162 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.5602, allocations: 71.16 kB / 0.6162 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002656/0.5629, allocations: 2.218 MB / 0.6184 GB, free: 4.035 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/0.5629, allocations: 31.89 kB / 0.6184 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.563, allocations: 0 / 0.6184 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.563, allocations: 4 kB / 0.6184 GB, free: 4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003902/0.5669, allocations: 3.289 MB / 0.6216 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.5669, allocations: 0 / 0.6216 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009655/0.5679, allocations: 191.8 kB / 0.6218 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.5683, allocations: 92.69 kB / 0.6219 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.5683, allocations: 12 kB / 0.6219 GB, free: 360 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.5699, allocations: 2.002 MB / 0.6239 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.57, allocations: 0 / 0.6239 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.5723, allocations: 1.997 MB / 0.6258 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004245/0.5727, allocations: 283.2 kB / 0.6261 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.5729, allocations: 12 kB / 0.6261 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000638/0.5735, allocations: 63.86 kB / 0.6262 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.5736, allocations: 32.39 kB / 0.6262 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.5737, allocations: 23.98 kB / 0.6262 GB, free: 11.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007065/0.5744, allocations: 0.5107 MB / 0.6267 GB, free: 11.24 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5744, allocations: 0 / 0.6267 GB, free: 11.24 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003057/0.5775, allocations: 1.085 MB / 0.6278 GB, free: 10.15 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.005069/0.5826, allocations: 1.213 MB / 0.629 GB, free: 9.031 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.5847, allocations: 0.9279 MB / 0.6299 GB, free: 8.109 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.5847, allocations: 0 / 0.6299 GB, free: 8.109 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.5859, allocations: 0.6638 MB / 0.6305 GB, free: 7.445 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/0.5882, allocations: 377.8 kB / 0.6309 GB, free: 7.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.5921, allocations: 2.828 MB / 0.6336 GB, free: 4.227 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007664/0.5929, allocations: 1.106 MB / 0.6347 GB, free: 3.094 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.5931, allocations: 75.42 kB / 0.6348 GB, free: 3.02 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5931, allocations: 0 / 0.6348 GB, free: 3.02 MB / 478.1 MB Notification: Performance of Templates: time 0.05262/0.6457, allocations: 37.75 MB / 0.6717 GB, free: 13.29 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