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.001479/0.001483, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.958/1.958, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001123/0.001122, allocations: 84.75 kB / 270.9 MB, free: 8.375 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.5086/0.5086, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004572/0.000457, allocations: 16 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1262, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.342/8.468, allocations: 2.764 GB / 3.243 GB, free: 49.76 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/8.468, allocations: 90.36 kB / 3.243 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.013/12.48, allocations: 0.8212 GB / 4.064 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.725e-06/12.48, allocations: 0 / 4.064 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000126/12.48, allocations: 39.98 kB / 4.064 GB, free: 6.777 MB / 0.5105 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.01181/12.49, allocations: 2.747 MB / 4.067 GB, free: 3.973 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/12.49, allocations: 8.031 kB / 4.067 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004866/12.5, allocations: 474.7 kB / 4.068 GB, free: 3.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002909/12.5, allocations: 0.9903 MB / 4.069 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/12.5, allocations: 110.5 kB / 4.069 GB, free: 2.355 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/12.5, allocations: 120 kB / 4.069 GB, free: 2.238 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006996/12.51, allocations: 2.018 MB / 4.071 GB, free: 80 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.107e-05/12.51, allocations: 3.938 kB / 4.071 GB, free: 76 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/12.51, allocations: 56 kB / 4.071 GB, free: 20 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/12.51, allocations: 54.28 kB / 4.071 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007944/12.52, allocations: 1.749 MB / 4.073 GB, free: 14.21 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.01695/12.53, allocations: 9.45 MB / 4.082 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00615/12.54, allocations: 1.193 MB / 4.083 GB, free: 2.758 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.43/12.97, allocations: 8.153 MB / 4.091 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/12.97, allocations: 47.2 kB / 4.091 GB, free: 40.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 3.607e-06/12.97, allocations: 0 / 4.091 GB, free: 40.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.02508/13, allocations: 3.699 MB / 4.095 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/13, allocations: 116.7 kB / 4.095 GB, free: 39.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/13, allocations: 0.7572 MB / 4.095 GB, free: 39.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002072/13, allocations: 41.7 kB / 4.095 GB, free: 39.72 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000433/13, allocations: 0.6453 MB / 4.096 GB, free: 39.43 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/13, allocations: 302.8 kB / 4.096 GB, free: 39.28 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/13, allocations: 24.78 kB / 4.096 GB, free: 39.28 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001024/13, allocations: 358.1 kB / 4.097 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/13, allocations: 443.4 kB / 4.097 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002212/13, allocations: 0.8142 MB / 4.098 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/13, allocations: 0.5269 MB / 4.098 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/13, allocations: 3.125 kB / 4.098 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.007513/13.01, allocations: 1.722 MB / 4.1 GB, free: 38.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000915/13.01, allocations: 4.62 MB / 4.105 GB, free: 33.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-05/13.01, allocations: 13.22 kB / 4.105 GB, free: 33.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00462/13.02, allocations: 0.624 MB / 4.105 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/13.02, allocations: 219.2 kB / 4.106 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006931/13.03, allocations: 2.905 MB / 4.108 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00266/13.03, allocations: 242.4 kB / 4.109 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/13.03, allocations: 77.58 kB / 4.109 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/13.03, allocations: 2.812 kB / 4.109 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009059/13.04, allocations: 1.637 MB / 4.11 GB, free: 31.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/13.04, allocations: 16.42 kB / 4.11 GB, free: 31.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005312/13.04, allocations: 0.5323 MB / 4.111 GB, free: 31.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/13.05, allocations: 240.8 kB / 4.111 GB, free: 31.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006435/13.05, allocations: 2.768 MB / 4.114 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/13.05, allocations: 216.5 kB / 4.114 GB, free: 29.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/13.05, allocations: 64.48 kB / 4.114 GB, free: 29.25 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.001022/13.06, allocations: 420.9 kB / 4.114 GB, free: 29.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003849/13.06, allocations: 117.3 kB / 4.114 GB, free: 29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009626/13.07, allocations: 3.991 MB / 4.118 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.398e-05/13.07, allocations: 42.28 kB / 4.118 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/13.07, allocations: 0 / 4.118 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.358e-05/13.07, allocations: 9.766 kB / 4.118 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/13.08, allocations: 6.114 MB / 4.124 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/13.08, allocations: 0 / 4.124 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008651/13.08, allocations: 126.9 kB / 4.125 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00535/13.08, allocations: 1.289 MB / 4.126 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/13.08, allocations: 25.14 kB / 4.126 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006289/13.09, allocations: 3.829 MB / 4.13 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/13.09, allocations: 0 / 4.13 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007453/13.1, allocations: 2.808 MB / 4.132 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/13.1, allocations: 404.2 kB / 4.133 GB, free: 25.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/13.1, allocations: 18.31 kB / 4.133 GB, free: 25.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/13.1, allocations: 199.9 kB / 4.133 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/13.1, allocations: 83.25 kB / 4.133 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/13.1, allocations: 46.44 kB / 4.133 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001333/13.1, allocations: 0.6677 MB / 4.134 GB, free: 25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.81e-07/13.1, allocations: 0 / 4.134 GB, free: 25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009221/13.11, allocations: 1.941 MB / 4.136 GB, free: 24.88 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.01186/13.13, allocations: 2.19 MB / 4.138 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01306/13.14, allocations: 2.31 MB / 4.14 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/13.14, allocations: 3.312 kB / 4.14 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003878/13.14, allocations: 1.024 MB / 4.141 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005198/13.15, allocations: 0.5623 MB / 4.142 GB, free: 24.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008865/13.16, allocations: 3.933 MB / 4.145 GB, free: 22.83 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/13.16, allocations: 1.391 MB / 4.147 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005908/13.16, allocations: 99.69 kB / 4.147 GB, free: 22.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.994e-06/13.16, allocations: 3.312 kB / 4.147 GB, free: 22.1 MB / 0.5261 GB [CodegenCppCommonOld.tpl:1170:24-1170: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).