Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 1.745/1.745, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004164, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3234, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics): time 0.08819/0.4117, allocations: 61.14 MB / 393 MB, free: 1.262 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03713/0.4488, allocations: 20.02 MB / 413 MB, free: 13.2 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002006/0.4509, allocations: 55.5 kB / 413 MB, free: 13.14 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.4541, allocations: 0.801 MB / 413.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02083/0.475, allocations: 5.162 MB / 419 MB, free: 7.164 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01217/0.4872, allocations: 3.097 MB / 422.1 MB, free: 4.059 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.4926, allocations: 2.433 MB / 424.5 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.4941, allocations: 0.7982 MB / 425.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003218/0.4974, allocations: 1.211 MB / 426.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03217/0.5296, allocations: 12.87 MB / 439.4 MB, free: 2.711 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004494/0.5301, allocations: 68 kB / 439.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02376/0.5538, allocations: 8.081 MB / 447.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006861/0.5546, allocations: 326.7 kB / 447.9 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006799/0.5553, allocations: 345 kB / 448.2 MB, free: 9.891 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.5673, allocations: 4.58 MB / 452.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.5673, allocations: 0 / 452.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5674, allocations: 0 / 452.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.5674, allocations: 0 / 452.8 MB, free: 5.301 MB / 378.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.007595/0.575, allocations: 2.222 MB / 455 MB, free: 3.023 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.575, allocations: 16.03 kB / 455 MB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004117/0.5792, allocations: 453.7 kB / 455.5 MB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.5813, allocations: 0.8962 MB / 456.4 MB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/0.5815, allocations: 106.5 kB / 456.5 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.5817, allocations: 120 kB / 456.6 MB, free: 1.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006814/0.5886, allocations: 1.988 MB / 458.6 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.655e-05/0.5886, allocations: 7.938 kB / 458.6 MB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000209/0.5889, allocations: 59.98 kB / 458.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-05/0.589, allocations: 50.3 kB / 458.7 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007353/0.5963, allocations: 1.769 MB / 460.5 MB, free: 13.39 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.01471/0.6111, allocations: 9.438 MB / 469.9 MB, free: 3.121 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005742/0.6168, allocations: 1.185 MB / 471.1 MB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01371/0.6306, allocations: 5.44 MB / 476.5 MB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.372e-05/0.6307, allocations: 39.56 kB / 476.6 MB, free: 11.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=91): time 3.276e-06/0.6307, allocations: 4 kB / 476.6 MB, free: 11.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.06171/0.6924, allocations: 8.49 MB / 485.1 MB, free: 2.859 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.6925, allocations: 128.1 kB / 485.2 MB, free: 2.711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.6941, allocations: 0.7998 MB / 486 MB, free: 1.887 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000251/0.6944, allocations: 45.7 kB / 486 MB, free: 1.836 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000632/0.695, allocations: 0.6688 MB / 486.7 MB, free: 1.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005975/0.6956, allocations: 449.4 kB / 487.1 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.6958, allocations: 32 kB / 487.2 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.696, allocations: 370.7 kB / 487.5 MB, free: 320 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3033/0.9993, allocations: 0.6788 MB / 488.2 MB, free: 135.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003106/1.003, allocations: 1.115 MB / 489.3 MB, free: 135.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/1.006, allocations: 0.7894 MB / 490.1 MB, free: 134.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/1.006, allocations: 3.969 kB / 490.1 MB, free: 134.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01245/1.018, allocations: 2.682 MB / 492.8 MB, free: 134 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002573/1.018, allocations: 478.3 kB / 493.3 MB, free: 133.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/1.018, allocations: 14.38 kB / 493.3 MB, free: 133.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01547/1.034, allocations: 1.681 MB / 495 MB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/1.035, allocations: 257.6 kB / 495.2 MB, free: 133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/1.046, allocations: 5.829 MB / 0.4893 GB, free: 128.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/1.049, allocations: 178.5 kB / 0.4895 GB, free: 128.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/1.049, allocations: 93.23 kB / 0.4896 GB, free: 128.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/1.05, allocations: 7.047 kB / 0.4896 GB, free: 128.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01047/1.06, allocations: 2.446 MB / 0.4919 GB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/1.06, allocations: 14.16 kB / 0.492 GB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01091/1.071, allocations: 1.29 MB / 0.4932 GB, free: 127.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/1.073, allocations: 272.8 kB / 0.4935 GB, free: 127 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009094/1.082, allocations: 5.605 MB / 0.499 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/1.084, allocations: 175 kB / 0.4991 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/1.084, allocations: 86.73 kB / 0.4992 GB, free: 122 MB / 410.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.001026/1.085, allocations: 439.9 kB / 0.4996 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003437/1.086, allocations: 128.6 kB / 0.4997 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/1.102, allocations: 5.547 MB / 0.5052 GB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/1.102, allocations: 11.14 kB / 0.5052 GB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/1.102, allocations: 1.938 kB / 0.5052 GB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009452/1.103, allocations: 440.3 kB / 0.5056 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003332/1.104, allocations: 26.95 kB / 0.5056 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.106, allocations: 223.9 kB / 0.5058 GB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003492/1.106, allocations: 116.8 kB / 0.5059 GB, free: 118 MB / 410.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.001338/1.108, allocations: 0.6531 MB / 0.5066 GB, free: 117.5 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.