Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") 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.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 176.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006767/0.0006768, allocations: 85.41 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3747/0.3747, allocations: 43.56 MB / 363.8 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004116, allocations: 16 kB / 432.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1161, allocations: 58.85 MB / 491.5 MB, free: 10.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.121/6.237, allocations: 2.765 GB / 3.245 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/6.237, allocations: 88.27 kB / 3.245 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.804/9.042, allocations: 0.7768 GB / 4.022 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.804e-06/9.042, allocations: 6.25 kB / 4.022 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.507e-05/9.042, allocations: 37.72 kB / 4.022 GB, free: 44.4 MB / 0.5261 GB 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.01106/9.053, allocations: 2.736 MB / 4.024 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/9.053, allocations: 13.16 kB / 4.024 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003909/9.057, allocations: 467.4 kB / 4.025 GB, free: 42.99 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/9.059, allocations: 1.032 MB / 4.026 GB, free: 42.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/9.059, allocations: 110.4 kB / 4.026 GB, free: 42.62 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/9.06, allocations: 122.6 kB / 4.026 GB, free: 42.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/9.064, allocations: 2.015 MB / 4.028 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/9.064, allocations: 9.188 kB / 4.028 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/9.064, allocations: 57.44 kB / 4.028 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.721e-05/9.064, allocations: 56.05 kB / 4.028 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004497/9.069, allocations: 1.75 MB / 4.03 GB, free: 42.22 MB / 0.5261 GB 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.009717/9.079, allocations: 9.447 MB / 4.039 GB, free: 35.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003461/9.082, allocations: 1.196 MB / 4.04 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/9.083, allocations: 0.5148 MB / 4.041 GB, free: 35.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/9.098, allocations: 8.168 MB / 4.049 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/9.098, allocations: 50.97 kB / 4.049 GB, free: 30.83 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 2.836e-06/9.098, allocations: 0 / 4.049 GB, free: 30.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.01646/9.115, allocations: 3.882 MB / 4.052 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/9.115, allocations: 114.2 kB / 4.053 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/9.117, allocations: 0.8696 MB / 4.053 GB, free: 30.01 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001878/9.117, allocations: 44.45 kB / 4.053 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005688/9.117, allocations: 0.6359 MB / 4.054 GB, free: 29.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003901/9.118, allocations: 308.8 kB / 4.054 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.021e-05/9.118, allocations: 20.09 kB / 4.054 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001134/9.118, allocations: 357.6 kB / 4.055 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/9.119, allocations: 443.4 kB / 4.055 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/9.121, allocations: 0.8175 MB / 4.056 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/9.123, allocations: 1.291 MB / 4.057 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/9.123, allocations: 3.719 kB / 4.057 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.005308/9.128, allocations: 1.794 MB / 4.059 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002793/9.129, allocations: 448.5 kB / 4.059 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/9.129, allocations: 11.84 kB / 4.059 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003639/9.132, allocations: 0.7448 MB / 4.06 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007843/9.133, allocations: 218.1 kB / 4.06 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/9.137, allocations: 2.924 MB / 4.063 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/9.139, allocations: 245.9 kB / 4.063 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002213/9.139, allocations: 70.61 kB / 4.064 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/9.139, allocations: 3.812 kB / 4.064 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005289/9.145, allocations: 1.638 MB / 4.065 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.769e-05/9.145, allocations: 18.84 kB / 4.065 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003291/9.148, allocations: 0.5746 MB / 4.066 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009741/9.149, allocations: 249.3 kB / 4.066 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004096/9.153, allocations: 2.787 MB / 4.069 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/9.155, allocations: 216.5 kB / 4.069 GB, free: 23.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/9.155, allocations: 68.77 kB / 4.069 GB, free: 23.17 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,2 8,2 8,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001166/9.157, allocations: 421.8 kB / 4.069 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004676/9.157, allocations: 118.3 kB / 4.069 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00676/9.164, allocations: 3.985 MB / 4.073 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-05/9.164, allocations: 47.56 kB / 4.073 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/9.164, allocations: 3.938 kB / 4.073 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/9.164, allocations: 3.469 kB / 4.073 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008804/9.173, allocations: 6.124 MB / 4.079 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/9.173, allocations: 2 kB / 4.079 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/9.173, allocations: 119.3 kB / 4.079 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003354/9.177, allocations: 1.287 MB / 4.081 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.541e-05/9.177, allocations: 20.5 kB / 4.081 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/9.181, allocations: 3.839 MB / 4.085 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/9.181, allocations: 0 / 4.085 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/9.185, allocations: 2.806 MB / 4.087 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009622/9.186, allocations: 406.3 kB / 4.088 GB, free: 18.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/9.187, allocations: 15.97 kB / 4.088 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/9.188, allocations: 200.4 kB / 4.088 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/9.188, allocations: 89.41 kB / 4.088 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.941e-05/9.188, allocations: 33.73 kB / 4.088 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001127/9.19, allocations: 0.6752 MB / 4.089 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/9.19, allocations: 0 / 4.089 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008651/9.198, allocations: 1.935 MB / 4.091 GB, free: 17.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 10,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.009747/9.208, allocations: 2.194 MB / 4.093 GB, free: 17.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007221/9.215, allocations: 2.282 MB / 4.095 GB, free: 16.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/9.215, allocations: 0 / 4.095 GB, free: 16.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002136/9.218, allocations: 1.035 MB / 4.096 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/9.221, allocations: 0.5752 MB / 4.096 GB, free: 16.17 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006237/9.227, allocations: 3.921 MB / 4.1 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/9.228, allocations: 1.357 MB / 4.102 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/9.229, allocations: 91.67 kB / 4.102 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.042e-06/9.229, allocations: 0 / 4.102 GB, free: 13.18 MB / 0.5261 GB [CodegenCppCommon.tpl:1149:24-1149:24:writable] Error: Template error: array reduction unable to generate code for element of unknown dimension sizes; type Real[:]: array(if j > 1 then V_flow_nominal[i] ^ /*Real*/(-1 + j) else 1.0 for j in 1:N).