Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 182.8 kB / 15.76 MB, free: 6.367 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.801/1.801, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001056/0.001056, allocations: 94.84 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.241/0.241, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003474, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1434, allocations: 58.86 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.14/7.284, allocations: 2.764 GB / 3.243 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/7.284, allocations: 88.39 kB / 3.243 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.613/10.9, allocations: 0.8211 GB / 4.064 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.114e-06/10.9, allocations: 0 / 4.064 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001805/10.9, allocations: 45.34 kB / 4.064 GB, free: 45.04 MB / 0.5261 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.01248/10.91, allocations: 2.753 MB / 4.067 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/10.91, allocations: 13.48 kB / 4.067 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009367/10.91, allocations: 200.8 kB / 4.067 GB, free: 43.66 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004026/10.91, allocations: 472.6 kB / 4.068 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/10.92, allocations: 0.987 MB / 4.069 GB, free: 43.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/10.92, allocations: 104.5 kB / 4.069 GB, free: 43.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004765/10.92, allocations: 128.4 kB / 4.069 GB, free: 43.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005783/10.92, allocations: 2.001 MB / 4.071 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.095e-05/10.92, allocations: 7.062 kB / 4.071 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002766/10.92, allocations: 58.89 kB / 4.071 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.072e-05/10.92, allocations: 63.56 kB / 4.071 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004634/10.93, allocations: 1.753 MB / 4.073 GB, free: 42.85 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.01227/10.94, allocations: 9.459 MB / 4.082 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003372/10.95, allocations: 1.188 MB / 4.083 GB, free: 36.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01528/10.96, allocations: 8.166 MB / 4.091 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.398e-05/10.96, allocations: 45.59 kB / 4.091 GB, free: 31.47 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 3.146e-06/10.96, allocations: 0 / 4.091 GB, free: 31.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.01762/10.98, allocations: 3.696 MB / 4.095 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.624e-05/10.98, allocations: 111.6 kB / 4.095 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/10.98, allocations: 0.7647 MB / 4.096 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002269/10.98, allocations: 45.33 kB / 4.096 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007606/10.98, allocations: 0.6331 MB / 4.096 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006286/10.98, allocations: 316.2 kB / 4.097 GB, free: 30.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/10.98, allocations: 25.91 kB / 4.097 GB, free: 30.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001616/10.98, allocations: 349.9 kB / 4.097 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/10.98, allocations: 448.2 kB / 4.097 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/10.99, allocations: 0.8068 MB / 4.098 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/10.99, allocations: 0.5273 MB / 4.099 GB, free: 29.34 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.734e-05/10.99, allocations: 8.516 kB / 4.099 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.005885/10.99, allocations: 1.771 MB / 4.1 GB, free: 29.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001538/11, allocations: 4.614 MB / 4.105 GB, free: 24.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.699e-05/11, allocations: 10.31 kB / 4.105 GB, free: 24.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002841/11, allocations: 0.6317 MB / 4.106 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007919/11, allocations: 216.7 kB / 4.106 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/11, allocations: 2.905 MB / 4.109 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/11.01, allocations: 243.6 kB / 4.109 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/11.01, allocations: 73.91 kB / 4.109 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/11.01, allocations: 2.219 kB / 4.109 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005409/11.01, allocations: 1.646 MB / 4.111 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-05/11.01, allocations: 13.88 kB / 4.111 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003374/11.01, allocations: 0.5798 MB / 4.111 GB, free: 22.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008999/11.02, allocations: 241.5 kB / 4.111 GB, free: 22.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003952/11.02, allocations: 2.787 MB / 4.114 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/11.02, allocations: 214.4 kB / 4.114 GB, free: 19.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/11.02, allocations: 65.59 kB / 4.114 GB, free: 19.92 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.001386/11.02, allocations: 421.3 kB / 4.115 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006013/11.02, allocations: 118.9 kB / 4.115 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006983/11.03, allocations: 3.993 MB / 4.119 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-05/11.03, allocations: 44.45 kB / 4.119 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/11.03, allocations: 6.406 kB / 4.119 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/11.03, allocations: 3.844 kB / 4.119 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00959/11.04, allocations: 6.117 MB / 4.125 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/11.04, allocations: 10.3 kB / 4.125 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/11.04, allocations: 118 kB / 4.125 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003294/11.04, allocations: 1.292 MB / 4.126 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/11.04, allocations: 18.95 kB / 4.126 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/11.05, allocations: 3.83 MB / 4.13 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/11.05, allocations: 0 / 4.13 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/11.05, allocations: 2.803 MB / 4.133 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/11.05, allocations: 412.7 kB / 4.133 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000414/11.05, allocations: 20.38 kB / 4.133 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/11.06, allocations: 199 kB / 4.133 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/11.06, allocations: 82.64 kB / 4.133 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.851e-05/11.06, allocations: 40.28 kB / 4.133 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001296/11.06, allocations: 0.6701 MB / 4.134 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/11.06, allocations: 0 / 4.134 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01005/11.07, allocations: 1.942 MB / 4.136 GB, free: 15.08 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.01625/11.08, allocations: 4.953 MB / 4.141 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008931/11.09, allocations: 2.323 MB / 4.143 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/11.09, allocations: 0 / 4.143 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002623/11.1, allocations: 1.035 MB / 4.144 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003596/11.1, allocations: 0.5775 MB / 4.145 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0281/11.13, allocations: 17.04 MB / 4.161 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/11.13, allocations: 1.399 MB / 4.163 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002533/11.13, allocations: 0.9022 MB / 4.164 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/11.13, allocations: 0.6285 MB / 4.164 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of SimCode: time 2.175e-06/11.13, allocations: 0 / 4.164 GB, free: 13.74 MB / 0.5417 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).