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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002895/0.002895, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.607/1.607, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 95.7 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4768/0.4768, allocations: 45.24 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003164, allocations: 11.98 kB / 468.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5118/0.5121, allocations: 63.25 MB / 0.5193 GB, free: 43.75 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.748/8.261, allocations: 2.771 GB / 3.29 GB, free: 147.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003943/8.261, allocations: 94.55 kB / 3.29 GB, free: 147.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.6/11.86, allocations: 0.8301 GB / 4.121 GB, free: 4.703 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.805e-06/11.86, allocations: 0 / 4.121 GB, free: 4.703 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002179/11.86, allocations: 47.8 kB / 4.121 GB, free: 4.656 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.01433/11.88, allocations: 2.755 MB / 4.123 GB, free: 1.844 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.725e-05/11.88, allocations: 12.03 kB / 4.123 GB, free: 1.832 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001144/11.88, allocations: 198 kB / 4.123 GB, free: 1.629 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004465/11.88, allocations: 465.7 kB / 4.124 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/11.89, allocations: 0.9893 MB / 4.125 GB, free: 140 kB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/11.89, allocations: 106.5 kB / 4.125 GB, free: 32 kB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007165/11.89, allocations: 124.1 kB / 4.125 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007088/11.89, allocations: 2.006 MB / 4.127 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.208e-05/11.89, allocations: 3.938 kB / 4.127 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000407/11.89, allocations: 60 kB / 4.127 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/11.89, allocations: 58.28 kB / 4.127 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005561/11.9, allocations: 1.749 MB / 4.129 GB, free: 11.88 MB / 0.5573 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.01662/11.92, allocations: 9.445 MB / 4.138 GB, free: 1.645 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004066/11.92, allocations: 1.19 MB / 4.139 GB, free: 456 kB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6076/12.53, allocations: 8.885 MB / 4.148 GB, free: 43.19 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.679e-05/12.53, allocations: 43.69 kB / 4.148 GB, free: 43.15 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=91): time 2.805e-06/12.53, allocations: 0 / 4.148 GB, free: 43.15 MB / 0.5573 GB Notification: Performance of matching and sorting (n=91): time 0.01513/12.54, allocations: 3.701 MB / 4.152 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/12.54, allocations: 114 kB / 4.152 GB, free: 42.55 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/12.55, allocations: 0.7524 MB / 4.152 GB, free: 42.42 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001163/12.55, allocations: 46.83 kB / 4.152 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005038/12.55, allocations: 0.6385 MB / 4.153 GB, free: 42.15 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/12.55, allocations: 308.9 kB / 4.153 GB, free: 42 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/12.55, allocations: 24.31 kB / 4.153 GB, free: 42 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001189/12.55, allocations: 349.2 kB / 4.154 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009995/12.55, allocations: 441.1 kB / 4.154 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/12.55, allocations: 0.8191 MB / 4.155 GB, free: 41.26 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/12.55, allocations: 0.523 MB / 4.155 GB, free: 41.24 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/12.55, allocations: 4.938 kB / 4.155 GB, free: 41.24 MB / 0.5573 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004452/12.55, allocations: 1.77 MB / 4.157 GB, free: 41.1 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001384/12.56, allocations: 4.619 MB / 4.162 GB, free: 36.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/12.56, allocations: 12.88 kB / 4.162 GB, free: 36.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002692/12.56, allocations: 0.6404 MB / 4.162 GB, free: 36.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007986/12.56, allocations: 216.6 kB / 4.163 GB, free: 36.26 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/12.56, allocations: 2.903 MB / 4.165 GB, free: 34.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/12.57, allocations: 243.3 kB / 4.166 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/12.57, allocations: 75.62 kB / 4.166 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/12.57, allocations: 4.375 kB / 4.166 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005466/12.57, allocations: 1.635 MB / 4.167 GB, free: 34.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.342e-05/12.57, allocations: 16.2 kB / 4.167 GB, free: 34.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003613/12.57, allocations: 0.5867 MB / 4.168 GB, free: 34.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/12.58, allocations: 245 kB / 4.168 GB, free: 34.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005182/12.58, allocations: 2.781 MB / 4.171 GB, free: 31.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/12.58, allocations: 227.5 kB / 4.171 GB, free: 31.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003643/12.58, allocations: 67.09 kB / 4.171 GB, free: 31.94 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.001879/12.59, allocations: 416.8 kB / 4.172 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008444/12.59, allocations: 118.7 kB / 4.172 GB, free: 31.69 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009457/12.6, allocations: 3.983 MB / 4.176 GB, free: 31.39 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.664e-05/12.6, allocations: 40.3 kB / 4.176 GB, free: 31.39 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.507e-05/12.6, allocations: 3.125 kB / 4.176 GB, free: 31.39 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-05/12.6, allocations: 15.84 kB / 4.176 GB, free: 31.39 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/12.61, allocations: 6.106 MB / 4.182 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/12.61, allocations: 0 / 4.182 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/12.61, allocations: 124.5 kB / 4.182 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004284/12.61, allocations: 1.29 MB / 4.183 GB, free: 30.48 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/12.62, allocations: 19.97 kB / 4.183 GB, free: 30.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004703/12.62, allocations: 3.821 MB / 4.187 GB, free: 28.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/12.62, allocations: 1.125 kB / 4.187 GB, free: 28.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006605/12.63, allocations: 2.811 MB / 4.189 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/12.63, allocations: 409.6 kB / 4.19 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005045/12.63, allocations: 17.94 kB / 4.19 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/12.63, allocations: 195.2 kB / 4.19 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/12.63, allocations: 83.31 kB / 4.19 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/12.63, allocations: 36.3 kB / 4.19 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00172/12.63, allocations: 0.6801 MB / 4.191 GB, free: 27.71 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.52e-07/12.63, allocations: 0 / 4.191 GB, free: 27.71 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01391/12.65, allocations: 1.957 MB / 4.193 GB, free: 27.59 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.02122/12.67, allocations: 4.964 MB / 4.198 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01007/12.68, allocations: 2.321 MB / 4.2 GB, free: 26.56 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/12.68, allocations: 1.188 kB / 4.2 GB, free: 26.56 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003422/12.68, allocations: 1.032 MB / 4.201 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005011/12.69, allocations: 0.5797 MB / 4.201 GB, free: 26.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04113/12.73, allocations: 17.07 MB / 4.218 GB, free: 31.46 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001481/12.73, allocations: 1.4 MB / 4.219 GB, free: 30.74 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003153/12.73, allocations: 0.8945 MB / 4.22 GB, free: 30.73 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/12.73, allocations: 0.6325 MB / 4.221 GB, free: 30.72 MB / 0.573 GB Notification: Performance of SimCode: time 2.564e-06/12.73, allocations: 0 / 4.221 GB, free: 30.72 MB / 0.573 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).