Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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: translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002043/0.002043, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.055/2.055, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001072/0.001072, allocations: 84.31 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6539/0.6539, allocations: 48.79 MB / 367.9 MB, free: 47.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004333/0.0004333, allocations: 11.94 kB / 438.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2095, allocations: 60.26 MB / 498.9 MB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.232/8.442, allocations: 2.889 GB / 3.376 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/8.442, allocations: 78.59 kB / 3.376 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.707/10.15, allocations: 499.6 MB / 3.864 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.084e-06/10.15, allocations: 0 / 3.864 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.119e-05/10.15, allocations: 34.33 kB / 3.864 GB, free: 27.62 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.007021/10.16, allocations: 1.583 MB / 3.865 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/10.16, allocations: 7.562 kB / 3.865 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/10.16, allocations: 132.3 kB / 3.866 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001993/10.16, allocations: 0.7695 MB / 3.866 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/10.16, allocations: 151.9 kB / 3.867 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-05/10.16, allocations: 66.19 kB / 3.867 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/10.16, allocations: 0.9249 MB / 3.867 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/10.16, allocations: 2.938 kB / 3.867 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.617e-05/10.16, allocations: 31.78 kB / 3.868 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/10.16, allocations: 19.16 kB / 3.868 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/10.16, allocations: 0.5978 MB / 3.868 GB, free: 24.77 MB / 0.5105 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.003606/10.17, allocations: 3.534 MB / 3.872 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/10.17, allocations: 0.5427 MB / 3.872 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0593/10.23, allocations: 31.98 MB / 3.903 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/10.23, allocations: 35 kB / 3.903 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=53): time 2.686e-06/10.23, allocations: 0 / 3.903 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005964/10.23, allocations: 1.419 MB / 3.905 GB, free: 2.297 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/10.23, allocations: 59.84 kB / 3.905 GB, free: 2.227 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/10.23, allocations: 0.4957 MB / 3.905 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.703e-05/10.23, allocations: 33.7 kB / 3.905 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/10.23, allocations: 348.6 kB / 3.906 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/10.24, allocations: 186.8 kB / 3.906 GB, free: 1.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/10.24, allocations: 12 kB / 3.906 GB, free: 1.148 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003167/10.24, allocations: 386.7 kB / 3.906 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/10.24, allocations: 173 kB / 3.906 GB, free: 0.5898 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/10.24, allocations: 273.2 kB / 3.907 GB, free: 292 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/10.24, allocations: 202 kB / 3.907 GB, free: 88 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/10.24, allocations: 0 / 3.907 GB, free: 88 kB / 0.5261 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.4376/10.67, allocations: 0.7422 MB / 3.908 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003488/10.68, allocations: 1.141 MB / 3.909 GB, free: 64.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/10.68, allocations: 3.375 kB / 3.909 GB, free: 64.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/10.68, allocations: 292.5 kB / 3.909 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/10.68, allocations: 99.44 kB / 3.909 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/10.68, allocations: 1.91 MB / 3.911 GB, free: 62.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009672/10.68, allocations: 103.7 kB / 3.911 GB, free: 62.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.931e-05/10.68, allocations: 44.83 kB / 3.911 GB, free: 62.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/10.68, allocations: 3.375 kB / 3.911 GB, free: 62.73 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002029/10.68, allocations: 0.6844 MB / 3.912 GB, free: 62.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/10.68, allocations: 3.75 kB / 3.912 GB, free: 62.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008332/10.68, allocations: 208.7 kB / 3.912 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/10.68, allocations: 113.3 kB / 3.912 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/10.68, allocations: 1.811 MB / 3.914 GB, free: 61.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009281/10.69, allocations: 104.4 kB / 3.914 GB, free: 61.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.745e-05/10.69, allocations: 31.92 kB / 3.914 GB, free: 61.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (Pump3.int_Np,Pump2.int_Np,Pump1.int_Np,Pump3.inletFluidState.phase,Pump2.inletFluidState.phase,Pump1.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006829/10.69, allocations: 270.8 kB / 3.914 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/10.69, allocations: 77.16 kB / 3.914 GB, free: 60.89 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/10.69, allocations: 1.485 MB / 3.916 GB, free: 60.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-05/10.69, allocations: 17.17 kB / 3.916 GB, free: 60.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/10.69, allocations: 5.922 kB / 3.916 GB, free: 60.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/10.69, allocations: 2.438 kB / 3.916 GB, free: 60.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/10.69, allocations: 0.8149 MB / 3.917 GB, free: 60.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/10.69, allocations: 3.188 kB / 3.917 GB, free: 60.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/10.69, allocations: 79.94 kB / 3.917 GB, free: 60.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/10.69, allocations: 1.034 MB / 3.918 GB, free: 60.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/10.69, allocations: 13 kB / 3.918 GB, free: 60.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/10.7, allocations: 2.506 MB / 3.92 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/10.7, allocations: 7.609 kB / 3.92 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003146/10.7, allocations: 1.822 MB / 3.922 GB, free: 58.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005174/10.7, allocations: 219.7 kB / 3.922 GB, free: 58.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.174e-05/10.7, allocations: 7.062 kB / 3.922 GB, free: 58.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004983/10.7, allocations: 65.53 kB / 3.922 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/10.7, allocations: 44.09 kB / 3.922 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/10.7, allocations: 21.91 kB / 3.922 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000525/10.7, allocations: 388.4 kB / 3.923 GB, free: 58.44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/10.7, allocations: 3 kB / 3.923 GB, free: 58.44 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007555/10.71, allocations: 1.201 MB / 3.924 GB, free: 58.42 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Pump1.h,Pump2.h,Pump3.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.009077/10.72, allocations: 1.629 MB / 3.925 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002751/10.72, allocations: 0.9475 MB / 3.926 GB, free: 58.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/10.72, allocations: 0 / 3.926 GB, free: 58.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009499/10.72, allocations: 460.6 kB / 3.927 GB, free: 58.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/10.72, allocations: 360.1 kB / 3.927 GB, free: 58.26 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00312/10.73, allocations: 2.068 MB / 3.929 GB, free: 57.36 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/10.73, allocations: 0.9975 MB / 3.93 GB, free: 56.65 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006778/10.73, allocations: 206 kB / 3.93 GB, free: 56.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/10.73, allocations: 58.02 kB / 3.93 GB, free: 56.64 MB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/10.73, allocations: 2.625 kB / 3.93 GB, free: 56.64 MB / 0.5261 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(q_nom[i] ^ /*Real*/(-1 + j) for j in 1:N).