Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005845/0.0005847, allocations: 12 kB / 233.8 MB, free: 3.09 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1102, allocations: 38.78 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.3612/0.4715, allocations: 54.12 MB / 326.7 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.04777/0.5193, allocations: 23.6 MB / 350.3 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00282/0.5222, allocations: 39.62 kB / 350.3 MB, free: 1.094 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003452/0.5257, allocations: 0.6221 MB / 350.9 MB, free: 480 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02664/0.5524, allocations: 5.112 MB / 356.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01646/0.5689, allocations: 3.234 MB / 359.3 MB, free: 8.098 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006907/0.5759, allocations: 2.336 MB / 361.6 MB, free: 5.762 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002446/0.5784, allocations: 0.8746 MB / 362.5 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02823/0.6067, allocations: 9.375 MB / 371.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04403/0.6508, allocations: 15.12 MB / 387 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007178/0.6516, allocations: 76 kB / 387.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02828/0.6799, allocations: 8.444 MB / 395.5 MB, free: 3.832 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001181/0.6811, allocations: 386.8 kB / 395.9 MB, free: 3.453 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009417/0.6821, allocations: 321 kB / 396.2 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01568/0.6977, allocations: 4.713 MB / 400.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.6978, allocations: 0 / 400.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6978, allocations: 0 / 400.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.635e-05/0.6979, allocations: 0 / 400.9 MB, free: 14.41 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.01129/0.7092, allocations: 2.324 MB / 403.2 MB, free: 12.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.7093, allocations: 12.02 kB / 403.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004657/0.7139, allocations: 449.8 kB / 403.7 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.717, allocations: 0.8636 MB / 404.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/0.7173, allocations: 183.4 kB / 404.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003391/0.7176, allocations: 119.9 kB / 404.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006581/0.7242, allocations: 2.004 MB / 406.9 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.75e-05/0.7243, allocations: 11.94 kB / 406.9 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002447/0.7246, allocations: 53.23 kB / 406.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.7248, allocations: 82.08 kB / 407 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006501/0.7313, allocations: 1.776 MB / 408.8 MB, free: 6.289 MB / 330.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.02268/0.754, allocations: 9.316 MB / 418.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005385/0.7595, allocations: 1.515 MB / 419.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.463/1.222, allocations: 64.2 MB / 483.8 MB, free: 103 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003709/1.226, allocations: 1.074 MB / 484.9 MB, free: 101.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.581e-06/1.226, allocations: 0 / 484.9 MB, free: 101.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=121): time 0.02658/1.253, allocations: 6.57 MB / 491.4 MB, free: 95.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/1.253, allocations: 299.9 kB / 491.7 MB, free: 94.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/1.255, allocations: 1.037 MB / 492.8 MB, free: 93.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/1.255, allocations: 52.61 kB / 492.8 MB, free: 93.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004348/1.256, allocations: 0.5659 MB / 493.4 MB, free: 93.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004601/1.256, allocations: 413 kB / 493.8 MB, free: 92.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/1.256, allocations: 28 kB / 493.8 MB, free: 92.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/1.256, allocations: 362.8 kB / 494.2 MB, free: 92.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/1.258, allocations: 0.6441 MB / 494.8 MB, free: 91.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/1.26, allocations: 1.054 MB / 495.9 MB, free: 90.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/1.262, allocations: 0.7325 MB / 496.6 MB, free: 89.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/1.262, allocations: 8 kB / 496.6 MB, free: 89.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.006572/1.269, allocations: 2.115 MB / 498.7 MB, free: 87.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000266/1.269, allocations: 431 kB / 499.2 MB, free: 87.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/1.269, allocations: 12 kB / 499.2 MB, free: 87.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01054/1.28, allocations: 1.016 MB / 0.4885 GB, free: 86.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002408/1.282, allocations: 303.5 kB / 0.4887 GB, free: 85.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004951/1.287, allocations: 4.037 MB / 0.4927 GB, free: 81.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/1.29, allocations: 131.6 kB / 0.4928 GB, free: 81.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002363/1.29, allocations: 75.94 kB / 0.4929 GB, free: 81.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/1.29, allocations: 4 kB / 0.4929 GB, free: 81.44 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005834/1.296, allocations: 1.869 MB / 0.4947 GB, free: 79.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/1.296, allocations: 15.75 kB / 0.4947 GB, free: 79.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009071/1.305, allocations: 0.7489 MB / 0.4955 GB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/1.308, allocations: 319.5 kB / 0.4958 GB, free: 78.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008237/1.316, allocations: 6.734 MB / 0.5023 GB, free: 71.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/1.318, allocations: 115.8 kB / 0.5025 GB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/1.318, allocations: 68.36 kB / 0.5025 GB, free: 71.12 MB / 362.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.00114/1.319, allocations: 466.8 kB / 0.503 GB, free: 70.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003961/1.32, allocations: 138.4 kB / 0.5031 GB, free: 70.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009748/1.329, allocations: 4.929 MB / 0.5079 GB, free: 65.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.54e-05/1.329, allocations: 3.984 kB / 0.5079 GB, free: 65.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/1.329, allocations: 4 kB / 0.5079 GB, free: 65.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/1.331, allocations: 0.5443 MB / 0.5084 GB, free: 64.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004642/1.331, allocations: 35.94 kB / 0.5085 GB, free: 64.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/1.333, allocations: 115.9 kB / 0.5086 GB, free: 64.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/1.334, allocations: 125.1 kB / 0.5087 GB, free: 64.69 MB / 362.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.003227/1.337, allocations: 1.426 MB / 0.5101 GB, free: 63.23 MB / 362.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.