Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002748/0.002753, allocations: 362.8 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.101/4.101, allocations: 388.9 MB / 405.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00357/0.00357, allocations: 233.6 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5653/0.5653, allocations: 80.03 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006301/0.0006304, allocations: 8 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1021, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.069/8.172, allocations: 2.596 GB / 3.276 GB, free: 63.07 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004483/8.172, allocations: 87.45 kB / 3.276 GB, free: 63.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228/12.4, allocations: 0.7709 GB / 4.047 GB, free: 38.28 MB / 0.4949 GB Notification: Performance of FrontEnd: time 4.067e-06/12.4, allocations: 3.703 kB / 4.047 GB, free: 38.28 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.000147/12.4, allocations: 33.38 kB / 4.047 GB, free: 38.28 MB / 0.4949 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.01268/12.41, allocations: 2.738 MB / 4.049 GB, free: 36.69 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/12.41, allocations: 9.531 kB / 4.049 GB, free: 36.69 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/12.42, allocations: 465 kB / 4.05 GB, free: 36.59 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003661/12.42, allocations: 1.007 MB / 4.051 GB, free: 36.02 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000206/12.42, allocations: 105.1 kB / 4.051 GB, free: 35.97 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004639/12.42, allocations: 121.8 kB / 4.051 GB, free: 35.93 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007886/12.43, allocations: 1.997 MB / 4.053 GB, free: 35.05 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/12.43, allocations: 11.3 kB / 4.053 GB, free: 35.05 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002551/12.43, allocations: 59.36 kB / 4.053 GB, free: 35.01 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.79e-05/12.43, allocations: 60.16 kB / 4.053 GB, free: 35 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007942/12.44, allocations: 1.746 MB / 4.055 GB, free: 34.54 MB / 0.4949 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.01524/12.45, allocations: 9.42 MB / 4.064 GB, free: 26.79 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/12.46, allocations: 1.182 MB / 4.065 GB, free: 26.15 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00191/12.46, allocations: 0.5118 MB / 4.066 GB, free: 25.71 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01386/12.48, allocations: 5.467 MB / 4.071 GB, free: 20.07 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/12.48, allocations: 43.56 kB / 4.071 GB, free: 20.02 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=91): time 3.587e-06/12.48, allocations: 7.938 kB / 4.071 GB, free: 20.01 MB / 0.4949 GB Notification: Performance of matching and sorting (n=134): time 0.06602/12.54, allocations: 8.869 MB / 4.08 GB, free: 10.95 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/12.54, allocations: 116.1 kB / 4.08 GB, free: 10.81 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/12.54, allocations: 0.8113 MB / 4.081 GB, free: 9.973 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0003294/12.54, allocations: 53.7 kB / 4.081 GB, free: 9.914 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/12.54, allocations: 0.656 MB / 4.081 GB, free: 9.254 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/12.55, allocations: 447.2 kB / 4.082 GB, free: 8.82 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/12.55, allocations: 28 kB / 4.082 GB, free: 8.793 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001128/12.55, allocations: 365.9 kB / 4.082 GB, free: 8.43 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002637/12.55, allocations: 0.691 MB / 4.083 GB, free: 7.738 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002854/12.55, allocations: 1.124 MB / 4.084 GB, free: 6.43 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/12.55, allocations: 0.795 MB / 4.085 GB, free: 5.637 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/12.55, allocations: 4 kB / 4.085 GB, free: 5.633 MB / 0.4949 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01564/12.57, allocations: 2.926 MB / 4.087 GB, free: 2.676 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002777/12.57, allocations: 487.1 kB / 4.088 GB, free: 2.02 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/12.57, allocations: 12 kB / 4.088 GB, free: 2.008 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01839/12.59, allocations: 1.861 MB / 4.09 GB, free: 136 kB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/12.59, allocations: 247.6 kB / 4.09 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/12.6, allocations: 5.879 MB / 4.096 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/12.61, allocations: 191.6 kB / 4.096 GB, free: 9.625 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003302/12.61, allocations: 91.97 kB / 4.096 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/12.61, allocations: 4 kB / 4.096 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01575/12.62, allocations: 2.718 MB / 4.099 GB, free: 6.789 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.345e-05/12.62, allocations: 16.03 kB / 4.099 GB, free: 6.773 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01502/12.64, allocations: 1.548 MB / 4.1 GB, free: 5.215 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/12.64, allocations: 271.6 kB / 4.1 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4224/13.06, allocations: 5.709 MB / 4.106 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003156/13.07, allocations: 187.5 kB / 4.106 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004762/13.07, allocations: 82.31 kB / 4.106 GB, free: 58.98 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (131): * Single equations (assignments): 123 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 6,2 8,2 6,2 8,2 6,2 8,2 6,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001469/13.07, allocations: 455.5 kB / 4.107 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004946/13.07, allocations: 124.4 kB / 4.107 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01723/13.08, allocations: 5.383 MB / 4.112 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.741e-05/13.08, allocations: 43.42 kB / 4.112 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/13.09, allocations: 1.062 kB / 4.112 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.81e-05/13.09, allocations: 10.59 kB / 4.112 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02199/13.11, allocations: 8.057 MB / 4.12 GB, free: 57.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-05/13.11, allocations: 3.125 kB / 4.12 GB, free: 57.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/13.11, allocations: 148.5 kB / 4.12 GB, free: 57.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01612/13.12, allocations: 2.362 MB / 4.122 GB, free: 57.37 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/13.12, allocations: 39.17 kB / 4.123 GB, free: 57.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/13.14, allocations: 6.827 MB / 4.129 GB, free: 53.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/13.14, allocations: 6.781 kB / 4.129 GB, free: 53.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01371/13.15, allocations: 4.017 MB / 4.133 GB, free: 52.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/13.15, allocations: 438.9 kB / 4.134 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/13.15, allocations: 35.7 kB / 4.134 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/13.16, allocations: 215.4 kB / 4.134 GB, free: 52.58 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005055/13.16, allocations: 127.9 kB / 4.134 GB, free: 52.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002116/13.16, allocations: 59.66 kB / 4.134 GB, free: 52.58 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001394/13.16, allocations: 0.6071 MB / 4.135 GB, free: 52.47 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.693e-06/13.16, allocations: 0 / 4.135 GB, free: 52.47 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01083/13.17, allocations: 2.049 MB / 4.137 GB, free: 52.47 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.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 (78): * Single equations (assignments): 64 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 6,2 10,2 6,2 6,2 6,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01393/13.18, allocations: 2.329 MB / 4.139 GB, free: 52.31 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01795/13.2, allocations: 3.612 MB / 4.142 GB, free: 52.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/13.2, allocations: 0 / 4.142 GB, free: 52.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007748/13.21, allocations: 1.656 MB / 4.144 GB, free: 52.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008492/13.22, allocations: 0.5538 MB / 4.144 GB, free: 52.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09954/13.32, allocations: 42.18 MB / 4.186 GB, free: 50.09 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/13.32, allocations: 1.454 MB / 4.187 GB, free: 49.35 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003125/13.32, allocations: 0.9245 MB / 4.188 GB, free: 49.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/13.32, allocations: 102.8 kB / 4.188 GB, free: 49.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.834e-06/13.32, allocations: 3.812 kB / 4.188 GB, free: 49.27 MB / 0.5105 GB [CodegenCFunctions.tpl:7255:24-7255: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).