Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 194.8 MB / 211.7 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.0003402, allocations: 8 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08809, allocations: 44.51 MB / 309.1 MB, free: 392 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.0825/0.1706, allocations: 54.56 MB / 363.6 MB, free: 9.688 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3072/0.4778, allocations: 23.8 MB / 387.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.4799, allocations: 42.5 kB / 387.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.4825, allocations: 0.6262 MB / 388.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02055/0.5031, allocations: 5.166 MB / 393.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01357/0.5167, allocations: 3.289 MB / 396.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00495/0.5217, allocations: 2.38 MB / 398.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.5235, allocations: 0.8649 MB / 399.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02327/0.5468, allocations: 9.491 MB / 409.3 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03439/0.5813, allocations: 15.27 MB / 424.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004462/0.5817, allocations: 78.62 kB / 424.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0247/0.6065, allocations: 8.584 MB / 433.2 MB, free: 6.137 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008145/0.6073, allocations: 385.4 kB / 433.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008017/0.6081, allocations: 320.8 kB / 433.9 MB, free: 5.727 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01275/0.6209, allocations: 4.775 MB / 438.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.6209, allocations: 0 / 438.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.621, allocations: 0 / 438.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.621, allocations: 0 / 438.7 MB, free: 1.648 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.009476/0.6305, allocations: 2.359 MB / 441 MB, free: 15.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.6305, allocations: 8.031 kB / 441 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004537/0.6351, allocations: 494.1 kB / 441.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.6375, allocations: 0.8586 MB / 442.4 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.6378, allocations: 190 kB / 442.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003222/0.6381, allocations: 119.8 kB / 442.7 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005981/0.6441, allocations: 2.007 MB / 444.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.449e-05/0.6442, allocations: 2.719 kB / 444.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.6444, allocations: 53.91 kB / 444.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.6446, allocations: 76.47 kB / 444.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00592/0.6505, allocations: 1.787 MB / 446.6 MB, free: 11.09 MB / 346.7 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.02062/0.6712, allocations: 9.318 MB / 455.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008683/0.6799, allocations: 1.495 MB / 457.4 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3235/1.003, allocations: 64.31 MB / 0.5095 GB, free: 9.922 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003921/1.007, allocations: 1.066 MB / 0.5105 GB, free: 8.836 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.979e-06/1.007, allocations: 0 / 0.5105 GB, free: 8.836 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.02872/1.036, allocations: 6.546 MB / 0.5169 GB, free: 2.168 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/1.036, allocations: 314.6 kB / 0.5172 GB, free: 1.797 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/1.038, allocations: 1.031 MB / 0.5182 GB, free: 0.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/1.039, allocations: 49.7 kB / 0.5183 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006258/1.039, allocations: 0.5703 MB / 0.5188 GB, free: 128 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.245/1.284, allocations: 408.1 kB / 0.5192 GB, free: 169.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/1.284, allocations: 28.25 kB / 0.5193 GB, free: 169.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/1.285, allocations: 364.3 kB / 0.5196 GB, free: 169.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/1.287, allocations: 0.641 MB / 0.5202 GB, free: 169.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/1.289, allocations: 1.047 MB / 0.5213 GB, free: 169 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/1.292, allocations: 0.7444 MB / 0.522 GB, free: 169 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/1.292, allocations: 6.719 kB / 0.522 GB, free: 169 MB / 426.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.00661/1.298, allocations: 2.18 MB / 0.5241 GB, free: 168.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002392/1.298, allocations: 426.3 kB / 0.5245 GB, free: 167.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/1.298, allocations: 11.81 kB / 0.5245 GB, free: 167.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01251/1.311, allocations: 1.023 MB / 0.5255 GB, free: 167.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/1.314, allocations: 301.4 kB / 0.5258 GB, free: 167.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006973/1.321, allocations: 4.035 MB / 0.5298 GB, free: 164.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003307/1.324, allocations: 132.1 kB / 0.5299 GB, free: 164.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/1.325, allocations: 72.98 kB / 0.53 GB, free: 164.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/1.325, allocations: 4.844 kB / 0.53 GB, free: 164.1 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008064/1.333, allocations: 1.869 MB / 0.5318 GB, free: 163.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.714e-05/1.333, allocations: 16.33 kB / 0.5318 GB, free: 163.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01301/1.346, allocations: 0.7636 MB / 0.5325 GB, free: 163.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/1.349, allocations: 319.1 kB / 0.5328 GB, free: 163.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/1.36, allocations: 6.739 MB / 0.5394 GB, free: 157.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/1.362, allocations: 117.2 kB / 0.5395 GB, free: 157.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/1.363, allocations: 73.77 kB / 0.5396 GB, free: 157.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.001331/1.364, allocations: 452.1 kB / 0.54 GB, free: 157 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003984/1.364, allocations: 145 kB / 0.5402 GB, free: 156.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/1.377, allocations: 4.929 MB / 0.545 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.134e-05/1.377, allocations: 14.25 kB / 0.545 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/1.377, allocations: 0 / 0.545 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/1.379, allocations: 0.5389 MB / 0.5455 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000584/1.38, allocations: 25.59 kB / 0.5456 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002517/1.382, allocations: 108.7 kB / 0.5457 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004898/1.383, allocations: 124.8 kB / 0.5458 GB, free: 153.8 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): $cse4 = Modelica.Fluid.Examples.PumpingSystem.pipe.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe.flowModel.dps_fg[1], pipe.flowModel.rhos[1], pipe.flowModel.rhos[2], pipe.flowModel.mus[1], pipe.flowModel.mus[2], pipe.length, pipe.flowModel.diameters[1], pipe.flowModel.g * pipe.height_ab, pipe.crossArea, pipe.roughness, pipe.flowModel.dp_small, 4000.0) 2/2 (1): pipe.flowModel.m_flows[1] = $cse4 * pipe.flowModel.nParallel 3/3 (1): 0.0 = if reservoir.regularFlow[1] then pipe.flowModel.states[2].p - (reservoir.vessel_ps_static[1] + 0.5 / reservoir.portAreas[1] ^ 2.0 * Modelica.Fluid.Utilities.regSquare2(pipe.flowModel.m_flows[1], reservoir.m_flow_small, (reservoir.portsData[1].zeta_in - 1.0 + (reservoir.portAreas[1] / reservoir.vesselArea) ^ 2.0) / reservoir.portInDensities[1] * reservoir.ports_penetration[1], (reservoir.portsData[1].zeta_out + 1.0 - (reservoir.portAreas[1] / reservoir.vesselArea) ^ 2.0) / (reservoir.heatTransfer.states[1].d * reservoir.ports_penetration[1]), false, 1.0)) else if reservoir.inFlow[1] then pipe.flowModel.states[2].p - reservoir.vessel_ps_static[1] else pipe.flowModel.m_flows[1] 4/4 (16): $cse3 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.flowModel.states[2].p, reservoir.heatTransfer.states[1].h, 0, 0) 5/20 (1): pipe.flowModel.rhos[2] = $cse3.rho 6/21 (1): pipe.flowModel.mus[2] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe.flowModel.rhos[2], pipe.flowModel.states[2].T, pipe.flowModel.states[2].p, 0) 7/22 (1): pipe.flowModel.states[2].T = $cse3.T 8/23 (1): 0.0 = if reservoir.regularFlow[1] then reservoir.s[1] - (reservoir.level - reservoir.portsData[1].height) else if reservoir.inFlow[1] then reservoir.s[1] - pipe.flowModel.m_flows[1] else reservoir.s[1] - 9.869232667160129e-06 * (pipe.flowModel.states[2].p - reservoir.vessel_ps_static[1]) * (reservoir.portsData[1].height - reservoir.level) 9/24 (1): reservoir.inFlow[1] = not reservoir.regularFlow[1] and (reservoir.s[1] > 0.0 or reservoir.portsData[1].height >= reservoir.fluidLevel_max) 10/25 (1): pipe.flowModel.Fs_p[1] = pipe.flowModel.nParallel * pipe.crossArea * (pipe.flowModel.states[2].p - pumps.medium.p) 11/26 (1): pipe.flowModel.dps_fg[1] = (-2.0) * pipe.flowModel.Fs_p[1] / (2.0 * pipe.crossArea * pipe.flowModel.nParallel) Variables: 1: pipe.flowModel.dps_fg[1]:VARIABLE(start = pipe.flowModel.p_a_start - pipe.flowModel.p_b_start unit = "Pa" ) "pressure drop between states" type: Real [1] 2: pipe.flowModel.Fs_p[1]:VARIABLE(unit = "N" ) "Pressure forces" type: Real [1] 3: reservoir.inFlow[1]:DISCRETE(flow=false start = false protected = true ) type: Boolean [3] 4: reservoir.s[1]:VARIABLE(start = reservoir.fluidLevel_max ) "curve parameters for port flows vs. port pressures; for further details see, Modelica Tutorial: Ideal switching devices" type: Real [3] 5: pipe.flowModel.states[2].T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 ) "Temperature" type: Real [2] 6: pipe.flowModel.mus[2]:VARIABLE(min = 0.0 max = 100000000.0 start = 0.001 unit = "Pa.s" nominal = 0.001 ) type: Real [2] 7: pipe.flowModel.rhos[2]:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real [2] 8: $cse3.region:DISCRETE(protected = true ) type: Integer unreplaceable 9: $cse3.vp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse3.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse3.rho:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse3.p:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse3.R:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse3.pt:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse3.vt:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse3.pd:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse3.dpT:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse3.h:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse3.cv:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse3.phase:DISCRETE(protected = true ) type: Integer unreplaceable 24: pipe.flowModel.states[2].p:VARIABLE(min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "Pressure" type: Real [2] 25: pipe.flowModel.m_flows[1]:VARIABLE(min = 0.0 max = 100000.0 start = 0.0 unit = "kg/s" ) "mass flow rates between states" type: Real [1] 26: $cse4:VARIABLE(protected = true ) type: Real unreplaceable [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004236/1.387, allocations: 1.437 MB / 0.5472 GB, free: 152.7 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.