Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001933/0.001933, allocations: 181.9 kB / 15.76 MB, free: 6.363 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.845/1.845, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0009321/0.0009321, allocations: 94.78 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.236/0.236, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 8 kB / 431.4 MB, free: 19.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1372, allocations: 58.85 MB / 490.2 MB, free: 8.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.191/7.328, allocations: 2.764 GB / 3.243 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004326/7.329, allocations: 88.58 kB / 3.243 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.698/11.03, allocations: 0.8211 GB / 4.064 GB, free: 45.03 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.715e-06/11.03, allocations: 0 / 4.064 GB, free: 45.03 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001416/11.03, allocations: 39.84 kB / 4.064 GB, free: 45.03 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.01051/11.04, allocations: 2.757 MB / 4.067 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/11.04, allocations: 8.156 kB / 4.067 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003773/11.04, allocations: 471.3 kB / 4.068 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/11.04, allocations: 0.9906 MB / 4.069 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/11.04, allocations: 102.8 kB / 4.069 GB, free: 43.29 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004909/11.04, allocations: 125.4 kB / 4.069 GB, free: 43.29 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005465/11.05, allocations: 2.004 MB / 4.071 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/11.05, allocations: 8.438 kB / 4.071 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/11.05, allocations: 62.08 kB / 4.071 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.139e-05/11.05, allocations: 59.98 kB / 4.071 GB, free: 42.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004369/11.05, allocations: 1.75 MB / 4.073 GB, free: 42.89 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.009995/11.06, allocations: 9.46 MB / 4.082 GB, free: 36.56 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003259/11.07, allocations: 1.193 MB / 4.083 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02608/11.09, allocations: 8.161 MB / 4.091 GB, free: 31.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.352e-05/11.09, allocations: 48.45 kB / 4.091 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 4.909e-06/11.09, allocations: 0 / 4.091 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.02406/11.12, allocations: 3.695 MB / 4.095 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/11.12, allocations: 117.3 kB / 4.095 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/11.12, allocations: 0.7563 MB / 4.095 GB, free: 30.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002203/11.12, allocations: 39.52 kB / 4.095 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006872/11.12, allocations: 0.6432 MB / 4.096 GB, free: 30.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005108/11.12, allocations: 306.6 kB / 4.096 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/11.12, allocations: 24.44 kB / 4.096 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000147/11.12, allocations: 352 kB / 4.097 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/11.12, allocations: 447.2 kB / 4.097 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/11.13, allocations: 0.809 MB / 4.098 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/11.13, allocations: 0.5263 MB / 4.098 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.675e-05/11.13, allocations: 3.344 kB / 4.098 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.007884/11.14, allocations: 1.784 MB / 4.1 GB, free: 29.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001148/11.14, allocations: 4.608 MB / 4.105 GB, free: 24.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/11.14, allocations: 12.19 kB / 4.105 GB, free: 24.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004369/11.14, allocations: 0.636 MB / 4.105 GB, free: 24.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/11.14, allocations: 219.2 kB / 4.106 GB, free: 24.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006768/11.15, allocations: 2.897 MB / 4.108 GB, free: 22.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/11.15, allocations: 250.6 kB / 4.109 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003478/11.15, allocations: 74.08 kB / 4.109 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/11.15, allocations: 3.844 kB / 4.109 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009173/11.16, allocations: 1.64 MB / 4.11 GB, free: 22.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-05/11.16, allocations: 13.44 kB / 4.11 GB, free: 22.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003455/11.17, allocations: 0.5837 MB / 4.111 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009045/11.17, allocations: 239.6 kB / 4.111 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/11.17, allocations: 2.786 MB / 4.114 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/11.17, allocations: 220.5 kB / 4.114 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/11.17, allocations: 63.91 kB / 4.114 GB, free: 19.97 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.0009588/11.17, allocations: 421.6 kB / 4.115 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003674/11.17, allocations: 120.3 kB / 4.115 GB, free: 19.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005839/11.18, allocations: 3.984 MB / 4.119 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.303e-05/11.18, allocations: 47.58 kB / 4.119 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/11.18, allocations: 0 / 4.119 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/11.18, allocations: 3.047 kB / 4.119 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008962/11.19, allocations: 6.133 MB / 4.125 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/11.19, allocations: 0 / 4.125 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/11.19, allocations: 120.8 kB / 4.125 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003039/11.19, allocations: 1.286 MB / 4.126 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.244e-05/11.19, allocations: 24.55 kB / 4.126 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/11.2, allocations: 3.831 MB / 4.13 GB, free: 16.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/11.2, allocations: 0 / 4.13 GB, free: 16.19 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004137/11.2, allocations: 2.81 MB / 4.132 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009325/11.2, allocations: 404.9 kB / 4.133 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/11.2, allocations: 17.34 kB / 4.133 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/11.2, allocations: 196.6 kB / 4.133 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/11.2, allocations: 90.31 kB / 4.133 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.734e-05/11.2, allocations: 39.55 kB / 4.133 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001687/11.21, allocations: 0.673 MB / 4.134 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.41e-07/11.21, allocations: 0 / 4.134 GB, free: 31.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007962/11.21, allocations: 1.946 MB / 4.136 GB, free: 31.07 MB / 0.5417 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.009697/11.22, allocations: 2.182 MB / 4.138 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008666/11.23, allocations: 2.318 MB / 4.14 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/11.23, allocations: 7.156 kB / 4.14 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002739/11.24, allocations: 1.035 MB / 4.141 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/11.24, allocations: 0.5693 MB / 4.142 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006267/11.25, allocations: 3.896 MB / 4.145 GB, free: 27.08 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/11.25, allocations: 1.4 MB / 4.147 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001905/11.25, allocations: 0.8913 MB / 4.148 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/11.25, allocations: 92.78 kB / 4.148 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of SimCode: time 1.022e-06/11.25, allocations: 0 / 4.148 GB, free: 26.23 MB / 0.5417 GB [CodegenCFunctions.tpl:7265:24-7265: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).