Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.696/1.696, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003365, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.0788, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.3517/0.4306, allocations: 54.13 MB / 326.8 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.04563/0.4762, allocations: 23.6 MB / 350.3 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00193/0.4782, allocations: 39.69 kB / 350.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00265/0.4809, allocations: 0.626 MB / 351 MB, free: 15.95 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02796/0.5089, allocations: 5.101 MB / 356.1 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02087/0.5298, allocations: 3.234 MB / 359.3 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007573/0.5374, allocations: 2.345 MB / 361.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002744/0.5402, allocations: 0.8697 MB / 362.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03648/0.5767, allocations: 9.36 MB / 371.9 MB, free: 11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04049/0.6173, allocations: 15.1 MB / 387 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004881/0.6178, allocations: 76 kB / 387.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02452/0.6423, allocations: 8.447 MB / 395.5 MB, free: 3.352 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008612/0.6433, allocations: 386.8 kB / 395.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006787/0.644, allocations: 321 kB / 396.2 MB, free: 2.652 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.6565, allocations: 4.716 MB / 401 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.6566, allocations: 3.938 kB / 401 MB, free: 13.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.6566, allocations: 3.938 kB / 401 MB, free: 13.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.25e-05/0.6566, allocations: 0 / 401 MB, free: 13.92 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.009848/0.6665, allocations: 2.324 MB / 403.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.6665, allocations: 8.031 kB / 403.3 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004658/0.6712, allocations: 445.8 kB / 403.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.674, allocations: 0.8675 MB / 404.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.6743, allocations: 180.3 kB / 404.8 MB, free: 9.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.6746, allocations: 119.9 kB / 404.9 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006229/0.6809, allocations: 2 MB / 406.9 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/0.681, allocations: 11.94 kB / 406.9 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.6812, allocations: 44 kB / 406.9 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.6814, allocations: 86.08 kB / 407 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006111/0.6875, allocations: 1.772 MB / 408.8 MB, free: 5.816 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.02108/0.7086, allocations: 9.323 MB / 418.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005256/0.7139, allocations: 1.511 MB / 419.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4274/1.141, allocations: 64.2 MB / 483.8 MB, free: 102.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003388/1.145, allocations: 1.061 MB / 484.9 MB, free: 101.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 3.968e-06/1.145, allocations: 4 kB / 484.9 MB, free: 101.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=121): time 0.02532/1.17, allocations: 6.561 MB / 491.5 MB, free: 94.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/1.17, allocations: 299.5 kB / 491.8 MB, free: 94.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/1.172, allocations: 1.033 MB / 492.8 MB, free: 93.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/1.172, allocations: 53.64 kB / 492.8 MB, free: 93.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004432/1.172, allocations: 0.574 MB / 493.4 MB, free: 92.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003869/1.173, allocations: 417.2 kB / 493.8 MB, free: 92.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/1.173, allocations: 28 kB / 493.9 MB, free: 92.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/1.173, allocations: 361.9 kB / 494.2 MB, free: 92.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/1.175, allocations: 0.6363 MB / 494.8 MB, free: 91.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/1.177, allocations: 1.042 MB / 495.9 MB, free: 90.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/1.179, allocations: 0.7441 MB / 496.6 MB, free: 89.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/1.179, allocations: 4 kB / 496.6 MB, free: 89.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.005779/1.185, allocations: 2.184 MB / 498.8 MB, free: 87.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000198/1.185, allocations: 439.7 kB / 499.2 MB, free: 86.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/1.185, allocations: 12 kB / 499.3 MB, free: 86.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.011/1.196, allocations: 1.02 MB / 0.4885 GB, free: 85.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002361/1.198, allocations: 299.5 kB / 0.4888 GB, free: 85.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00452/1.203, allocations: 4.04 MB / 0.4928 GB, free: 81.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/1.205, allocations: 127.8 kB / 0.4929 GB, free: 81.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/1.205, allocations: 71.98 kB / 0.493 GB, free: 80.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/1.205, allocations: 4 kB / 0.493 GB, free: 80.98 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005309/1.211, allocations: 1.866 MB / 0.4948 GB, free: 79.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/1.211, allocations: 19.91 kB / 0.4948 GB, free: 79.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009487/1.22, allocations: 0.7616 MB / 0.4956 GB, free: 78.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/1.223, allocations: 319.5 kB / 0.4959 GB, free: 78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007679/1.23, allocations: 6.743 MB / 0.5024 GB, free: 70.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/1.232, allocations: 119.9 kB / 0.5026 GB, free: 70.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/1.232, allocations: 67.98 kB / 0.5026 GB, free: 70.64 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.0009647/1.233, allocations: 462.8 kB / 0.5031 GB, free: 70.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/1.234, allocations: 138.4 kB / 0.5032 GB, free: 70.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009002/1.243, allocations: 4.93 MB / 0.508 GB, free: 65.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-05/1.243, allocations: 7.969 kB / 0.508 GB, free: 65.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/1.243, allocations: 4 kB / 0.508 GB, free: 65.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/1.244, allocations: 0.5443 MB / 0.5086 GB, free: 64.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004456/1.245, allocations: 27.95 kB / 0.5086 GB, free: 64.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/1.247, allocations: 108 kB / 0.5087 GB, free: 64.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/1.247, allocations: 125.1 kB / 0.5088 GB, free: 64.22 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.003062/1.25, allocations: 1.431 MB / 0.5102 GB, free: 62.75 MB / 362.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.