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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001614/0.001614, allocations: 182.2 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, 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.001166/0.001165, allocations: 89.3 kB / 270.9 MB, free: 8.367 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.5217/0.5217, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007199/0.00072, allocations: 15.98 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1534, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.064/9.218, allocations: 2.764 GB / 3.243 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/9.218, allocations: 93.62 kB / 3.243 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.278/13.5, allocations: 0.8211 GB / 4.064 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.308e-06/13.5, allocations: 0 / 4.064 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002679/13.5, allocations: 35.98 kB / 4.064 GB, free: 4.668 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.01664/13.51, allocations: 2.755 MB / 4.067 GB, free: 1.855 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/13.51, allocations: 12.02 kB / 4.067 GB, free: 1.844 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001017/13.51, allocations: 195.1 kB / 4.067 GB, free: 1.645 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007747/13.52, allocations: 477.6 kB / 4.068 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004382/13.53, allocations: 0.9865 MB / 4.069 GB, free: 152 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/13.53, allocations: 102.5 kB / 4.069 GB, free: 48 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007606/13.53, allocations: 124 kB / 4.069 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/13.54, allocations: 2.009 MB / 4.071 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.965e-05/13.54, allocations: 7.938 kB / 4.071 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004386/13.54, allocations: 56 kB / 4.071 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/13.54, allocations: 58.28 kB / 4.071 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01248/13.55, allocations: 1.753 MB / 4.073 GB, free: 11.89 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.02771/13.58, allocations: 9.449 MB / 4.082 GB, free: 1.641 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008772/13.59, allocations: 1.205 MB / 4.083 GB, free: 436 kB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4796/14.07, allocations: 8.146 MB / 4.091 GB, free: 38.93 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/14.07, allocations: 44.94 kB / 4.091 GB, free: 38.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 3.576e-06/14.07, allocations: 1.969 kB / 4.091 GB, free: 38.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.02611/14.1, allocations: 3.7 MB / 4.095 GB, free: 38.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/14.1, allocations: 115.6 kB / 4.095 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/14.1, allocations: 0.7521 MB / 4.096 GB, free: 38.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003416/14.1, allocations: 43.61 kB / 4.096 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/14.1, allocations: 0.6464 MB / 4.096 GB, free: 37.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006692/14.1, allocations: 303.7 kB / 4.097 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/14.1, allocations: 23.91 kB / 4.097 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001286/14.1, allocations: 359.3 kB / 4.097 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002163/14.1, allocations: 443.3 kB / 4.097 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/14.1, allocations: 0.8154 MB / 4.098 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/14.11, allocations: 0.5238 MB / 4.099 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-05/14.11, allocations: 3.438 kB / 4.099 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.008478/14.12, allocations: 1.718 MB / 4.1 GB, free: 36.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001096/14.12, allocations: 4.614 MB / 4.105 GB, free: 31.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.202e-05/14.12, allocations: 13.12 kB / 4.105 GB, free: 31.99 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0048/14.12, allocations: 0.6338 MB / 4.106 GB, free: 31.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/14.12, allocations: 218.6 kB / 4.106 GB, free: 31.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007199/14.13, allocations: 2.907 MB / 4.109 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002902/14.13, allocations: 241.7 kB / 4.109 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000367/14.13, allocations: 80.56 kB / 4.109 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/14.13, allocations: 3.781 kB / 4.109 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009534/14.14, allocations: 1.631 MB / 4.11 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-05/14.14, allocations: 23.64 kB / 4.111 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005424/14.15, allocations: 0.5337 MB / 4.111 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/14.15, allocations: 245.1 kB / 4.111 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/14.16, allocations: 2.763 MB / 4.114 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/14.16, allocations: 206.2 kB / 4.114 GB, free: 27.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/14.16, allocations: 72.31 kB / 4.114 GB, free: 27.65 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.001116/14.16, allocations: 411.1 kB / 4.115 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004312/14.16, allocations: 122.4 kB / 4.115 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/14.17, allocations: 3.989 MB / 4.119 GB, free: 27.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-05/14.17, allocations: 42.75 kB / 4.119 GB, free: 27.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/14.17, allocations: 0 / 4.119 GB, free: 27.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/14.17, allocations: 11.48 kB / 4.119 GB, free: 27.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/14.18, allocations: 6.115 MB / 4.125 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/14.18, allocations: 3.906 kB / 4.125 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008554/14.19, allocations: 120.5 kB / 4.125 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005441/14.19, allocations: 1.284 MB / 4.126 GB, free: 26.18 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001916/14.19, allocations: 24.28 kB / 4.126 GB, free: 26.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006394/14.2, allocations: 3.831 MB / 4.13 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/14.2, allocations: 2.422 kB / 4.13 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007602/14.21, allocations: 2.806 MB / 4.133 GB, free: 23.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/14.21, allocations: 405.1 kB / 4.133 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/14.21, allocations: 20.69 kB / 4.133 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/14.21, allocations: 194.9 kB / 4.133 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/14.21, allocations: 88.25 kB / 4.133 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/14.21, allocations: 44.78 kB / 4.133 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001352/14.21, allocations: 0.6702 MB / 4.134 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.453e-06/14.21, allocations: 2.656 kB / 4.134 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009849/14.22, allocations: 1.947 MB / 4.136 GB, free: 23.27 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.01922/14.24, allocations: 4.938 MB / 4.141 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01383/14.25, allocations: 2.31 MB / 4.143 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/14.25, allocations: 3.531 kB / 4.143 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004126/14.26, allocations: 1.031 MB / 4.144 GB, free: 22.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/14.26, allocations: 0.5669 MB / 4.144 GB, free: 22.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03438/14.3, allocations: 17.09 MB / 4.161 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/14.3, allocations: 1.389 MB / 4.162 GB, free: 26.41 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/14.3, allocations: 0.6306 MB / 4.163 GB, free: 26.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.433e-06/14.3, allocations: 0 / 4.163 GB, free: 26.4 MB / 0.5417 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).