Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008885/0.0008886, allocations: 110.2 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2779/0.2779, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 4 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.32, allocations: 63.25 MB / 0.5192 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.968/6.288, allocations: 2.771 GB / 3.29 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/6.289, allocations: 88.14 kB / 3.29 GB, free: 122.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.035/9.324, allocations: 0.8301 GB / 4.12 GB, free: 45.62 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.683e-06/9.324, allocations: 0 / 4.12 GB, free: 45.62 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.28e-05/9.324, allocations: 35.64 kB / 4.12 GB, free: 45.61 MB / 0.5573 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.00886/9.333, allocations: 2.766 MB / 4.123 GB, free: 44.34 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/9.333, allocations: 11.34 kB / 4.123 GB, free: 44.34 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00306/9.336, allocations: 470 kB / 4.124 GB, free: 44.25 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/9.338, allocations: 0.9905 MB / 4.125 GB, free: 43.93 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/9.338, allocations: 109.3 kB / 4.125 GB, free: 43.92 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/9.338, allocations: 120.2 kB / 4.125 GB, free: 43.92 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003953/9.342, allocations: 2.009 MB / 4.127 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/9.342, allocations: 1.312 kB / 4.127 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/9.342, allocations: 62.61 kB / 4.127 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.545e-05/9.342, allocations: 62.06 kB / 4.127 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003827/9.346, allocations: 1.751 MB / 4.129 GB, free: 43.52 MB / 0.5573 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.008118/9.354, allocations: 9.438 MB / 4.138 GB, free: 37.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003208/9.358, allocations: 1.191 MB / 4.139 GB, free: 37.18 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/9.373, allocations: 8.888 MB / 4.148 GB, free: 31.45 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/9.373, allocations: 47.84 kB / 4.148 GB, free: 31.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/9.373, allocations: 0.6562 kB / 4.148 GB, free: 31.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=91): time 0.01312/9.386, allocations: 3.7 MB / 4.151 GB, free: 30.88 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/9.386, allocations: 115.4 kB / 4.151 GB, free: 30.75 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/9.387, allocations: 0.7591 MB / 4.152 GB, free: 30.59 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.535e-05/9.387, allocations: 43.48 kB / 4.152 GB, free: 30.56 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000353/9.387, allocations: 0.6321 MB / 4.153 GB, free: 30.24 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/9.388, allocations: 315.3 kB / 4.153 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/9.388, allocations: 27.47 kB / 4.153 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.036e-05/9.388, allocations: 348.1 kB / 4.153 GB, free: 29.74 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/9.389, allocations: 442.2 kB / 4.154 GB, free: 29.74 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/9.39, allocations: 0.816 MB / 4.155 GB, free: 29.29 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/9.391, allocations: 0.5238 MB / 4.155 GB, free: 29.29 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/9.391, allocations: 6.406 kB / 4.155 GB, free: 29.29 MB / 0.5573 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004073/9.395, allocations: 1.771 MB / 4.157 GB, free: 29.13 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008234/9.396, allocations: 4.618 MB / 4.161 GB, free: 24.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/9.396, allocations: 9.5 kB / 4.161 GB, free: 24.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002522/9.398, allocations: 0.6299 MB / 4.162 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006191/9.399, allocations: 220.7 kB / 4.162 GB, free: 24.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/9.403, allocations: 2.907 MB / 4.165 GB, free: 22.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/9.404, allocations: 244.8 kB / 4.165 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/9.405, allocations: 80.25 kB / 4.165 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/9.405, allocations: 0 / 4.165 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004598/9.409, allocations: 1.64 MB / 4.167 GB, free: 22.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/9.409, allocations: 11.53 kB / 4.167 GB, free: 22.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002991/9.412, allocations: 0.5894 MB / 4.168 GB, free: 22.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006766/9.413, allocations: 243.9 kB / 4.168 GB, free: 22.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004018/9.417, allocations: 2.785 MB / 4.171 GB, free: 35.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/9.418, allocations: 216.4 kB / 4.171 GB, free: 35.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/9.418, allocations: 69.45 kB / 4.171 GB, free: 35.92 MB / 0.573 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.0007948/9.419, allocations: 413.1 kB / 4.171 GB, free: 35.72 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/9.419, allocations: 120.8 kB / 4.171 GB, free: 35.66 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005448/9.425, allocations: 3.99 MB / 4.175 GB, free: 35.31 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/9.425, allocations: 44.91 kB / 4.175 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/9.425, allocations: 0 / 4.175 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/9.425, allocations: 3.188 kB / 4.175 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006983/9.432, allocations: 6.118 MB / 4.181 GB, free: 34.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/9.432, allocations: 0 / 4.181 GB, free: 34.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003884/9.432, allocations: 121 kB / 4.181 GB, free: 34.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002872/9.435, allocations: 1.289 MB / 4.183 GB, free: 34.35 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/9.435, allocations: 19.25 kB / 4.183 GB, free: 34.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003848/9.439, allocations: 3.835 MB / 4.186 GB, free: 32.23 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/9.439, allocations: 0 / 4.186 GB, free: 32.23 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003834/9.443, allocations: 2.808 MB / 4.189 GB, free: 31.86 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007426/9.444, allocations: 409.6 kB / 4.19 GB, free: 31.64 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/9.444, allocations: 21 kB / 4.19 GB, free: 31.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/9.445, allocations: 199.7 kB / 4.19 GB, free: 31.62 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/9.445, allocations: 82.97 kB / 4.19 GB, free: 31.62 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.876e-05/9.446, allocations: 40.83 kB / 4.19 GB, free: 31.62 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0008094/9.446, allocations: 0.6706 MB / 4.191 GB, free: 31.52 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/9.446, allocations: 0.75 kB / 4.191 GB, free: 31.52 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007123/9.453, allocations: 1.951 MB / 4.192 GB, free: 31.22 MB / 0.573 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.007177/9.461, allocations: 2.195 MB / 4.195 GB, free: 30.8 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006977/9.468, allocations: 2.331 MB / 4.197 GB, free: 30.72 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/9.468, allocations: 0 / 4.197 GB, free: 30.72 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001809/9.469, allocations: 1.033 MB / 4.198 GB, free: 30.67 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/9.472, allocations: 0.5827 MB / 4.198 GB, free: 30.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/9.476, allocations: 3.899 MB / 4.202 GB, free: 28.86 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007907/9.477, allocations: 1.401 MB / 4.204 GB, free: 28.11 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001423/9.479, allocations: 0.9057 MB / 4.205 GB, free: 28.05 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/9.479, allocations: 89.95 kB / 4.205 GB, free: 28.04 MB / 0.573 GB Notification: Performance of SimCode: time 5.31e-07/9.479, allocations: 0 / 4.205 GB, free: 28.04 MB / 0.573 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).