Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 175.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009169/0.0009169, allocations: 107.5 kB / 292.2 MB, free: 10.7 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3836/0.3836, allocations: 44.21 MB / 387.5 MB, free: 38.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003309, allocations: 8 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3996, allocations: 61.89 MB / 0.5096 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.012/7.411, allocations: 2.77 GB / 3.28 GB, free: 8.988 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/7.412, allocations: 90.27 kB / 3.28 GB, free: 8.941 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.539/10.95, allocations: 0.83 GB / 4.11 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.493e-06/10.95, allocations: 3.938 kB / 4.11 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001588/10.95, allocations: 39.98 kB / 4.11 GB, free: 10.32 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.01311/10.96, allocations: 2.76 MB / 4.112 GB, free: 7.508 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/10.96, allocations: 12.03 kB / 4.112 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003687/10.97, allocations: 469.6 kB / 4.113 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/10.97, allocations: 0.9844 MB / 4.114 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/10.97, allocations: 106.5 kB / 4.114 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000386/10.97, allocations: 132 kB / 4.114 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004778/10.98, allocations: 1.994 MB / 4.116 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/10.98, allocations: 7.938 kB / 4.116 GB, free: 3.625 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002199/10.98, allocations: 59.98 kB / 4.116 GB, free: 3.566 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.697e-05/10.98, allocations: 54.28 kB / 4.116 GB, free: 3.512 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004063/10.98, allocations: 1.761 MB / 4.118 GB, free: 1.742 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.01297/10.99, allocations: 9.441 MB / 4.127 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003783/11, allocations: 1.197 MB / 4.128 GB, free: 6.301 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4301/11.43, allocations: 8.157 MB / 4.136 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/11.43, allocations: 46.86 kB / 4.136 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=91): time 2.534e-06/11.43, allocations: 0 / 4.136 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=91): time 0.01293/11.44, allocations: 3.697 MB / 4.14 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/11.44, allocations: 116.1 kB / 4.14 GB, free: 53.97 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/11.44, allocations: 0.7583 MB / 4.141 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.75e-05/11.44, allocations: 45.48 kB / 4.141 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/11.44, allocations: 0.6295 MB / 4.141 GB, free: 53.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/11.44, allocations: 315.3 kB / 4.142 GB, free: 53.42 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.603e-05/11.44, allocations: 27.06 kB / 4.142 GB, free: 53.42 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.807e-05/11.44, allocations: 346.7 kB / 4.142 GB, free: 53.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009147/11.44, allocations: 440.4 kB / 4.142 GB, free: 53.12 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/11.44, allocations: 0.8212 MB / 4.143 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/11.44, allocations: 0.5195 MB / 4.144 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/11.44, allocations: 4.938 kB / 4.144 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.003935/11.45, allocations: 1.773 MB / 4.146 GB, free: 52.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007841/11.45, allocations: 4.623 MB / 4.15 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/11.45, allocations: 12.09 kB / 4.15 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/11.45, allocations: 0.6335 MB / 4.151 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006355/11.45, allocations: 211.6 kB / 4.151 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/11.46, allocations: 2.904 MB / 4.154 GB, free: 45.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/11.46, allocations: 235.4 kB / 4.154 GB, free: 45.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/11.46, allocations: 77.2 kB / 4.154 GB, free: 45.56 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/11.46, allocations: 8.547 kB / 4.154 GB, free: 45.56 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004638/11.46, allocations: 1.64 MB / 4.156 GB, free: 45.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/11.46, allocations: 10.84 kB / 4.156 GB, free: 45.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00307/11.47, allocations: 0.5876 MB / 4.156 GB, free: 45.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007422/11.47, allocations: 234.4 kB / 4.156 GB, free: 45.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/11.47, allocations: 2.791 MB / 4.159 GB, free: 43.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/11.47, allocations: 220.2 kB / 4.159 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/11.47, allocations: 67.14 kB / 4.159 GB, free: 43.36 MB / 0.5573 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.000921/11.47, allocations: 409.5 kB / 4.16 GB, free: 43.17 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002457/11.47, allocations: 119.8 kB / 4.16 GB, free: 43.11 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005534/11.48, allocations: 3.999 MB / 4.164 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/11.48, allocations: 37.91 kB / 4.164 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/11.48, allocations: 0.5625 kB / 4.164 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/11.48, allocations: 4.625 kB / 4.164 GB, free: 42.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007983/11.49, allocations: 6.12 MB / 4.17 GB, free: 41.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/11.49, allocations: 0 / 4.17 GB, free: 41.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/11.49, allocations: 121.7 kB / 4.17 GB, free: 41.96 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002981/11.49, allocations: 1.286 MB / 4.171 GB, free: 41.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-05/11.49, allocations: 22.38 kB / 4.171 GB, free: 41.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003508/11.49, allocations: 3.836 MB / 4.175 GB, free: 39.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/11.49, allocations: 2.516 kB / 4.175 GB, free: 39.78 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004879/11.5, allocations: 2.806 MB / 4.178 GB, free: 39.42 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/11.5, allocations: 404.8 kB / 4.178 GB, free: 39.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/11.5, allocations: 18.19 kB / 4.178 GB, free: 39.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/11.5, allocations: 199.4 kB / 4.178 GB, free: 39.23 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/11.5, allocations: 88.25 kB / 4.178 GB, free: 39.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/11.5, allocations: 40.88 kB / 4.178 GB, free: 39.23 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001257/11.5, allocations: 0.6704 MB / 4.179 GB, free: 39.12 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/11.5, allocations: 0 / 4.179 GB, free: 39.12 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008898/11.51, allocations: 1.941 MB / 4.181 GB, free: 39 MB / 0.5573 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.01038/11.52, allocations: 2.191 MB / 4.183 GB, free: 38.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008049/11.53, allocations: 2.322 MB / 4.185 GB, free: 38.73 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/11.53, allocations: 0 / 4.185 GB, free: 38.73 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002252/11.53, allocations: 1.036 MB / 4.186 GB, free: 38.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003235/11.54, allocations: 0.5815 MB / 4.187 GB, free: 38.69 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006149/11.54, allocations: 3.906 MB / 4.191 GB, free: 36.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/11.54, allocations: 1.403 MB / 4.192 GB, free: 36.26 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002463/11.55, allocations: 0.8953 MB / 4.193 GB, free: 36.25 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/11.55, allocations: 97.77 kB / 4.193 GB, free: 36.24 MB / 0.5573 GB Notification: Performance of SimCode: time 1.302e-06/11.55, allocations: 0 / 4.193 GB, free: 36.24 MB / 0.5573 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).