Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.115/2.115, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003688, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 44.51 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.09193/0.1994, allocations: 54.55 MB / 363.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3403/0.5398, allocations: 23.8 MB / 387.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00243/0.5423, allocations: 41.34 kB / 387.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003165/0.5455, allocations: 0.6241 MB / 388 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02376/0.5693, allocations: 5.172 MB / 393.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01537/0.5848, allocations: 3.286 MB / 396.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006262/0.591, allocations: 2.377 MB / 398.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00222/0.5933, allocations: 0.8709 MB / 399.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02589/0.6193, allocations: 9.502 MB / 409.2 MB, free: 9.496 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0383/0.6576, allocations: 15.29 MB / 424.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005647/0.6583, allocations: 72 kB / 424.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02779/0.6861, allocations: 8.585 MB / 433.2 MB, free: 5.773 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009833/0.6871, allocations: 388.2 kB / 433.5 MB, free: 5.555 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009623/0.6881, allocations: 323.1 kB / 433.8 MB, free: 5.359 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.7033, allocations: 4.771 MB / 438.6 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.7034, allocations: 0 / 438.6 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.7034, allocations: 4 kB / 438.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.898e-05/0.7034, allocations: 0 / 438.6 MB, free: 1.281 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.01093/0.7144, allocations: 2.364 MB / 441 MB, free: 15.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.7144, allocations: 8.031 kB / 441 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00473/0.7192, allocations: 484.6 kB / 441.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/0.7221, allocations: 0.8694 MB / 442.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.7224, allocations: 184.4 kB / 442.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/0.7227, allocations: 111.8 kB / 442.6 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006392/0.7291, allocations: 2.009 MB / 444.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-05/0.7292, allocations: 6.812 kB / 444.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.7295, allocations: 53.16 kB / 444.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001679/0.7297, allocations: 91.88 kB / 444.8 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006236/0.7359, allocations: 1.775 MB / 446.6 MB, free: 10.73 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.02196/0.7579, allocations: 9.323 MB / 455.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005071/0.7631, allocations: 1.491 MB / 457.4 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2255/0.9886, allocations: 64.31 MB / 0.5095 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004016/0.9927, allocations: 1.07 MB / 0.5105 GB, free: 8.992 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 5.42e-06/0.9927, allocations: 0 / 0.5105 GB, free: 8.992 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.02933/1.022, allocations: 6.567 MB / 0.5169 GB, free: 2.305 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/1.022, allocations: 298.2 kB / 0.5172 GB, free: 1.949 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/1.024, allocations: 1.033 MB / 0.5182 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003351/1.025, allocations: 51.02 kB / 0.5183 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006018/1.025, allocations: 0.5674 MB / 0.5188 GB, free: 284 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3008/1.326, allocations: 411.2 kB / 0.5192 GB, free: 169.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/1.326, allocations: 28.89 kB / 0.5192 GB, free: 169.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/1.327, allocations: 366.9 kB / 0.5196 GB, free: 169.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/1.329, allocations: 0.6357 MB / 0.5202 GB, free: 169.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002634/1.332, allocations: 1.055 MB / 0.5212 GB, free: 168.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/1.334, allocations: 0.7451 MB / 0.522 GB, free: 168.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.695e-05/1.334, allocations: 3.156 kB / 0.522 GB, free: 168.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.007283/1.342, allocations: 2.112 MB / 0.524 GB, free: 168.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000328/1.342, allocations: 433.3 kB / 0.5244 GB, free: 167.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/1.342, allocations: 11.53 kB / 0.5244 GB, free: 167.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01088/1.353, allocations: 1.016 MB / 0.5254 GB, free: 167.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/1.356, allocations: 300.7 kB / 0.5257 GB, free: 167.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005298/1.361, allocations: 4.039 MB / 0.5297 GB, free: 163.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.364, allocations: 127 kB / 0.5298 GB, free: 163.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002596/1.364, allocations: 72.52 kB / 0.5299 GB, free: 163.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/1.364, allocations: 4.344 kB / 0.5299 GB, free: 163.9 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006771/1.371, allocations: 1.87 MB / 0.5317 GB, free: 163.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.033e-05/1.371, allocations: 14.41 kB / 0.5317 GB, free: 163.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009522/1.381, allocations: 0.7522 MB / 0.5324 GB, free: 163 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/1.383, allocations: 319.1 kB / 0.5327 GB, free: 162.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/1.392, allocations: 6.731 MB / 0.5393 GB, free: 157.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/1.394, allocations: 121.5 kB / 0.5394 GB, free: 157.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/1.394, allocations: 65.98 kB / 0.5395 GB, free: 157.2 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.001216/1.395, allocations: 462 kB / 0.5399 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/1.395, allocations: 138 kB / 0.5401 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009889/1.405, allocations: 4.936 MB / 0.5449 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/1.405, allocations: 9.031 kB / 0.5449 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/1.405, allocations: 2.719 kB / 0.5449 GB, free: 154.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/1.407, allocations: 0.5437 MB / 0.5454 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004851/1.407, allocations: 27.59 kB / 0.5455 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001916/1.409, allocations: 105.1 kB / 0.5456 GB, free: 153.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003723/1.41, allocations: 123.2 kB / 0.5457 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.003316/1.413, allocations: 1.438 MB / 0.5471 GB, free: 152.7 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.