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.002137/0.002136, allocations: 201.5 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.618/1.618, allocations: 226.5 MB / 245.4 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009982/0.0009983, allocations: 96.84 kB / 297.5 MB, free: 6.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4784/0.4784, allocations: 44.82 MB / 394.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002864, allocations: 8 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4241, allocations: 62.96 MB / 0.5184 GB, free: 37.31 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.908/8.332, allocations: 2.771 GB / 3.29 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/8.332, allocations: 95.02 kB / 3.29 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.334/11.67, allocations: 0.7858 GB / 4.076 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.968e-06/11.67, allocations: 0 / 4.076 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002433/11.67, allocations: 36.77 kB / 4.076 GB, free: 38.38 MB / 0.5417 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.01463/11.68, allocations: 2.753 MB / 4.078 GB, free: 36.77 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/11.68, allocations: 15.19 kB / 4.078 GB, free: 36.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004156/11.69, allocations: 468.3 kB / 4.079 GB, free: 36.67 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003862/11.69, allocations: 1.021 MB / 4.08 GB, free: 36.07 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/11.69, allocations: 110.9 kB / 4.08 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006884/11.69, allocations: 122.2 kB / 4.08 GB, free: 35.98 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006248/11.7, allocations: 2.021 MB / 4.082 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/11.7, allocations: 7.75 kB / 4.082 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00027/11.7, allocations: 61.22 kB / 4.082 GB, free: 35.05 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.567e-05/11.7, allocations: 51.08 kB / 4.082 GB, free: 35.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/11.7, allocations: 1.752 MB / 4.084 GB, free: 34.59 MB / 0.5417 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.01171/11.71, allocations: 9.451 MB / 4.093 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003388/11.72, allocations: 1.192 MB / 4.094 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/11.72, allocations: 0.5126 MB / 4.095 GB, free: 25.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01584/11.73, allocations: 8.887 MB / 4.103 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.729e-05/11.73, allocations: 43.56 kB / 4.103 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 3.347e-06/11.73, allocations: 0 / 4.103 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01528/11.75, allocations: 3.882 MB / 4.107 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/11.75, allocations: 115.8 kB / 4.107 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/11.75, allocations: 0.8651 MB / 4.108 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002008/11.75, allocations: 41.7 kB / 4.108 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005073/11.75, allocations: 0.6357 MB / 4.109 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003806/11.75, allocations: 309.6 kB / 4.109 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/11.75, allocations: 24 kB / 4.109 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001046/11.75, allocations: 353.9 kB / 4.109 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/11.75, allocations: 446.3 kB / 4.11 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/11.76, allocations: 0.8117 MB / 4.111 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/11.76, allocations: 1.293 MB / 4.112 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.81e-05/11.76, allocations: 4 kB / 4.112 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004932/11.76, allocations: 1.796 MB / 4.114 GB, free: 6.156 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003994/11.76, allocations: 444.2 kB / 4.114 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.251e-05/11.76, allocations: 15.94 kB / 4.114 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003468/11.77, allocations: 0.7522 MB / 4.115 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/11.77, allocations: 215.6 kB / 4.115 GB, free: 4.574 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/11.77, allocations: 2.914 MB / 4.118 GB, free: 1.559 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/11.77, allocations: 246.5 kB / 4.118 GB, free: 1.316 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/11.77, allocations: 71.97 kB / 4.118 GB, free: 1.246 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/11.77, allocations: 4 kB / 4.118 GB, free: 1.242 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004695/11.78, allocations: 1.643 MB / 4.12 GB, free: 15.59 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/11.78, allocations: 15.94 kB / 4.12 GB, free: 15.57 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003083/11.78, allocations: 0.5798 MB / 4.12 GB, free: 14.99 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/11.78, allocations: 247.6 kB / 4.121 GB, free: 14.75 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004147/11.79, allocations: 2.783 MB / 4.123 GB, free: 11.87 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/11.79, allocations: 226.8 kB / 4.124 GB, free: 11.64 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/11.79, allocations: 67.97 kB / 4.124 GB, free: 11.58 MB / 0.5574 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.00119/11.79, allocations: 416.6 kB / 4.124 GB, free: 11.16 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005113/11.79, allocations: 114.7 kB / 4.124 GB, free: 11.05 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007414/11.8, allocations: 3.989 MB / 4.128 GB, free: 7.031 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.003e-05/11.8, allocations: 39.94 kB / 4.128 GB, free: 6.992 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/11.8, allocations: 0 / 4.128 GB, free: 6.992 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/11.8, allocations: 3.984 kB / 4.128 GB, free: 6.988 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009909/11.81, allocations: 6.114 MB / 4.134 GB, free: 0.7578 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/11.81, allocations: 8 kB / 4.134 GB, free: 0.75 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/11.81, allocations: 119.9 kB / 4.134 GB, free: 0.6328 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4622/12.27, allocations: 1.281 MB / 4.135 GB, free: 60.62 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/12.27, allocations: 25.36 kB / 4.135 GB, free: 60.62 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/12.28, allocations: 3.832 MB / 4.139 GB, free: 58.54 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/12.28, allocations: 2.156 kB / 4.139 GB, free: 58.54 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/12.28, allocations: 2.8 MB / 4.142 GB, free: 58.3 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/12.28, allocations: 404 kB / 4.142 GB, free: 58.17 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/12.28, allocations: 22.7 kB / 4.142 GB, free: 58.17 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/12.28, allocations: 198.1 kB / 4.142 GB, free: 58.16 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/12.28, allocations: 92.06 kB / 4.143 GB, free: 58.16 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.776e-05/12.28, allocations: 38.2 kB / 4.143 GB, free: 58.16 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0009527/12.28, allocations: 0.6715 MB / 4.143 GB, free: 58.05 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.4e-07/12.28, allocations: 0 / 4.143 GB, free: 58.05 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.008477/12.29, allocations: 1.949 MB / 4.145 GB, free: 58.01 MB / 0.5574 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.01183/12.3, allocations: 2.193 MB / 4.147 GB, free: 57.86 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.007298/12.31, allocations: 2.278 MB / 4.15 GB, free: 57.81 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/12.31, allocations: 1.719 kB / 4.15 GB, free: 57.81 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.002344/12.31, allocations: 1.034 MB / 4.151 GB, free: 57.78 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/12.32, allocations: 0.5899 MB / 4.151 GB, free: 57.77 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005924/12.32, allocations: 3.892 MB / 4.155 GB, free: 56.06 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008285/12.32, allocations: 1.363 MB / 4.156 GB, free: 55.34 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.001976/12.33, allocations: 0.9117 MB / 4.157 GB, free: 55.33 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/12.33, allocations: 92.34 kB / 4.157 GB, free: 55.32 MB / 0.5574 GB Notification: Performance of SimCode: time 2.134e-06/12.33, allocations: 0 / 4.157 GB, free: 55.32 MB / 0.5574 GB [CodegenCFunctions.tpl:7294:24-7294: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).