Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Source.ports.2..m_flow|Source.ports.2..p|Source.ports.2..h_outflow|Source.ports.3..m_flow|Source.ports.3..p|Source.ports.3..h_outflow|Source.ports.4..m_flow|Source.ports.4..p|Source.ports.4..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Sink.ports.2..m_flow|Sink.ports.2..p|Sink.ports.2..h_outflow|Sink.ports.3..m_flow|Sink.ports.3..p|Sink.ports.3..h_outflow|Sink.ports.4..m_flow|Sink.ports.4..p|Sink.ports.4..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|downstreamPressure.y|pumpPolynomial.port_b.m_flow|pumpPolynomial.port_b.p|pumpPolynomial.port_b.h_outflow|pumpQuadraticLinear.port_b.m_flow|pumpQuadraticLinear.port_b.p|pumpQuadraticLinear.port_b.h_outflow|pumpLinear.port_b.m_flow|pumpLinear.port_b.p|pumpLinear.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.459/2.459, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006273/0.0006275, allocations: 12 kB / 315 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3863, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics): time 0.09891/0.4852, allocations: 61.62 MB / 431.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04163/0.5269, allocations: 20.23 MB / 451.7 MB, free: 8.688 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/0.5294, allocations: 55.5 kB / 451.7 MB, free: 8.633 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003469/0.5329, allocations: 0.8047 MB / 452.5 MB, free: 7.824 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02372/0.5566, allocations: 5.228 MB / 457.8 MB, free: 2.582 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0138/0.5705, allocations: 3.144 MB / 460.9 MB, free: 15.43 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.006288/0.5768, allocations: 2.462 MB / 463.4 MB, free: 12.96 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/0.5787, allocations: 0.7944 MB / 464.2 MB, free: 12.14 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003721/0.5824, allocations: 1.226 MB / 465.4 MB, free: 10.91 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3911/0.9735, allocations: 13.02 MB / 478.4 MB, free: 19.32 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007192/0.9743, allocations: 71.22 kB / 478.5 MB, free: 19.32 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02498/0.9993, allocations: 8.239 MB / 486.7 MB, free: 19.31 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009031/1, allocations: 324.2 kB / 487 MB, free: 19.31 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007977/1.001, allocations: 345.3 kB / 487.4 MB, free: 19.28 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/1.014, allocations: 4.65 MB / 492 MB, free: 19.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/1.015, allocations: 0 / 492 MB, free: 19.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.016e-06/1.015, allocations: 0 / 492 MB, free: 19.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.287e-05/1.015, allocations: 0 / 492 MB, free: 19.03 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.009951/1.025, allocations: 2.262 MB / 494.3 MB, free: 17.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/1.025, allocations: 8 kB / 494.3 MB, free: 17.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004867/1.029, allocations: 465 kB / 494.7 MB, free: 17.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/1.032, allocations: 0.896 MB / 495.6 MB, free: 17.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/1.032, allocations: 102.5 kB / 495.7 MB, free: 17.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/1.033, allocations: 127.7 kB / 495.9 MB, free: 17.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00666/1.039, allocations: 1.985 MB / 497.8 MB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/1.039, allocations: 6.844 kB / 497.9 MB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/1.04, allocations: 64.44 kB / 497.9 MB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.573e-05/1.04, allocations: 47.86 kB / 498 MB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0072/1.047, allocations: 1.766 MB / 499.7 MB, free: 17.07 MB / 394.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.01362/1.06, allocations: 9.443 MB / 0.4972 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005514/1.066, allocations: 1.192 MB / 0.4984 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/1.079, allocations: 5.49 MB / 0.5038 GB, free: 5.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/1.079, allocations: 49.22 kB / 0.5038 GB, free: 5.727 MB / 394.7 MB Notification: Performance of pre-optimization done (n=91): time 3.807e-06/1.08, allocations: 0 / 0.5038 GB, free: 5.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.05967/1.139, allocations: 8.508 MB / 0.5121 GB, free: 16.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.469e-05/1.139, allocations: 122.4 kB / 0.5122 GB, free: 16.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/1.141, allocations: 0.8053 MB / 0.513 GB, free: 16.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002329/1.141, allocations: 51.39 kB / 0.5131 GB, free: 15.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004927/1.142, allocations: 0.6657 MB / 0.5137 GB, free: 15.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005093/1.142, allocations: 452.1 kB / 0.5142 GB, free: 15.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/1.142, allocations: 38.06 kB / 0.5142 GB, free: 15.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/1.142, allocations: 364.8 kB / 0.5145 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002895/1.145, allocations: 0.6834 MB / 0.5152 GB, free: 14.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/1.149, allocations: 1.114 MB / 0.5163 GB, free: 13.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003031/1.152, allocations: 0.7949 MB / 0.5171 GB, free: 12.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/1.152, allocations: 4 kB / 0.5171 GB, free: 12.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01273/1.164, allocations: 2.67 MB / 0.5197 GB, free: 10.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004181/1.165, allocations: 476 kB / 0.5201 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/1.165, allocations: 12 kB / 0.5201 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01557/1.181, allocations: 1.687 MB / 0.5218 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/1.182, allocations: 248.7 kB / 0.522 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/1.195, allocations: 5.84 MB / 0.5277 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/1.198, allocations: 173.8 kB / 0.5279 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/1.198, allocations: 87.88 kB / 0.528 GB, free: 2.949 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/1.198, allocations: 4 kB / 0.528 GB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01109/1.209, allocations: 2.442 MB / 0.5304 GB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-05/1.209, allocations: 12.94 kB / 0.5304 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/1.22, allocations: 1.31 MB / 0.5317 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/1.222, allocations: 276.5 kB / 0.5319 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.233, allocations: 5.591 MB / 0.5374 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/1.236, allocations: 181.6 kB / 0.5376 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/1.236, allocations: 81.03 kB / 0.5376 GB, free: 10.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 10 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,pumpPolynomial.heatTransfer.states[1].phase,pumpQuadraticLinear.heatTransfer.states[1].phase,pumpLinear.heatTransfer.states[1].phase,pumpLinear.monitoring.state_in.phase,pumpQuadraticLinear.monitoring.state_in.phase,pumpPolynomial.monitoring.state_in.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 123 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 6,2 8,2 6,2 8,2 6,2 8,2 6,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001328/1.237, allocations: 436.3 kB / 0.5381 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004524/1.238, allocations: 130.5 kB / 0.5382 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01879/1.257, allocations: 5.551 MB / 0.5436 GB, free: 6.285 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/1.257, allocations: 11.91 kB / 0.5436 GB, free: 6.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/1.257, allocations: 4 kB / 0.5436 GB, free: 6.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/1.258, allocations: 438.2 kB / 0.544 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/1.258, allocations: 20.81 kB / 0.544 GB, free: 5.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002552/1.261, allocations: 225.5 kB / 0.5443 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/1.261, allocations: 119.5 kB / 0.5444 GB, free: 5.605 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): pumpLinear.heatTransfer.states[1].phase = if pumpLinear.medium.h < $cse5.h or pumpLinear.medium.h > $cse6.h or pumpLinear.medium.p > 22064000.0 then 1 else 2 2/2 (16): $cse13 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pumpLinear.medium.p, pumpLinear.medium.h, pumpLinear.heatTransfer.states[1].phase, 0) 3/18 (1): pumpLinear.rho = $cse13.rho 4/19 (1): pumpLinear.Hb_flow = smooth(0, pumpLinear.m_flow * (if pumpLinear.m_flow > 0.0 then Source.ports[4].h_outflow else pumpLinear.medium.h)) + smooth(0, (-pumpLinear.m_flow) * (if (-pumpLinear.m_flow) > 0.0 then Sink.ports[4].h_outflow else pumpLinear.medium.h)) 5/20 (1): -pumpLinear.Hb_flow = pumpLinear.W_single * /*Real*/(pumpLinear.nParallel) 6/21 (1): pumpLinear.W_single = pumpLinear.dp_pump * pumpLinear.V_flow_single / pumpLinear.eta 7/22 (1): $cse18 = ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.flowCharacteristic(pumpLinear.V_flow_single * pumpLinear.N_nominal / pumpLinear.N, {0.0, 0.0015}, {100.0, 0.0}) 8/23 (1): pumpLinear.head = (pumpLinear.N / pumpLinear.N_nominal) ^ 2.0 * $cse18 9/24 (1): pumpLinear.head = pumpLinear.dp_pump / (pumpLinear.rho * pumpLinear.g) 10/25 (1): pumpLinear.V_flow = pumpLinear.m_flow / pumpLinear.rho 11/26 (1): pumpLinear.eta = ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pumpLinear.efficiencyCharacteristic(pumpLinear.V_flow_single * pumpLinear.N_nominal / pumpLinear.N, 0.8) 12/27 (1): pumpLinear.V_flow_single = pumpLinear.V_flow / /*Real*/(pumpLinear.nParallel) Variables: 1: pumpLinear.V_flow:DUMMY_STATE(unit = "m3/s" stateSelect=StateSelect.never ) "Volume flow rate (total)" type: Real 2: pumpLinear.eta:DUMMY_STATE(stateSelect=StateSelect.never ) "Global Efficiency" type: Real 3: pumpLinear.m_flow:DUMMY_STATE(min = -9.999999999999999e+59 max = 100000.0 start = pumpLinear.m_flow_start unit = "kg/s" stateSelect=StateSelect.never ) "Mass flow rate (total)" type: Real 4: pumpLinear.rho:DUMMY_STATE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 stateSelect=StateSelect.never ) type: Real 5: pumpLinear.head:DUMMY_STATE(min = 0.0 unit = "m" stateSelect=StateSelect.never ) "Pump head" type: Real 6: $cse18:VARIABLE(protected = true ) type: Real unreplaceable 7: pumpLinear.V_flow_single:DUMMY_STATE(start = pumpLinear.m_flow_start / (pumpLinear.rho_nominal * /*Real*/(pumpLinear.nParallel)) unit = "m3/s" stateSelect=StateSelect.never ) "Volume flow rate (single pump)" type: Real 8: pumpLinear.W_single:DUMMY_STATE(unit = "W" stateSelect=StateSelect.never ) "Power Consumption (single pump)" type: Real 9: pumpLinear.Hb_flow:DUMMY_STATE(unit = "W" stateSelect=StateSelect.never ) "Enthalpy flow across boundaries or energy source/sink" type: Real 10: $cse13.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse13.pt:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse13.x:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse13.T:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse13.dpT:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse13.vp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse13.R:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse13.phase:DISCRETE(protected = true ) type: Integer unreplaceable 18: $cse13.p:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse13.h:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse13.rho:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse13.cp:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse13.vt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse13.cv:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse13.region:DISCRETE(protected = true ) type: Integer unreplaceable 25: pumpLinear.medium.h:DUMMY_STATE(flow=false min = -10000000000.0 max = 10000000000.0 start = pumpLinear.h_start unit = "J/kg" nominal = 500000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real 26: $cse13.pd:VARIABLE(protected = true ) type: Real unreplaceable 27: pumpLinear.heatTransfer.states[1].phase:DISCRETE(min = 0 max = 2 final = true ) "Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use" type: Integer [1] [/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.001599/1.263, allocations: 0.6536 MB / 0.545 GB, free: 4.953 MB / 426.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.