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.001969/0.001969, allocations: 176.5 kB / 17.4 MB, free: 4.418 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.535/1.535, allocations: 205.4 MB / 223.5 MB, free: 8.93 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.0008404/0.0008401, allocations: 84.98 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4904/0.4904, allocations: 48.78 MB / 369 MB, free: 47.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005415/0.0005416, allocations: 12 kB / 439.9 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1649, allocations: 60.25 MB / 0.4884 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.894/7.059, allocations: 2.889 GB / 3.377 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/7.059, allocations: 89.72 kB / 3.378 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.868/8.927, allocations: 498.3 MB / 3.864 GB, free: 41.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.274e-06/8.927, allocations: 0 / 3.864 GB, free: 41.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001106/8.927, allocations: 22.5 kB / 3.864 GB, free: 41.53 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.007845/8.935, allocations: 1.579 MB / 3.866 GB, free: 40.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/8.935, allocations: 7.688 kB / 3.866 GB, free: 40.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00079/8.936, allocations: 137.8 kB / 3.866 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003329/8.939, allocations: 1.552 MB / 3.867 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/8.939, allocations: 138.7 kB / 3.868 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/8.939, allocations: 67.62 kB / 3.868 GB, free: 39.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/8.941, allocations: 0.9147 MB / 3.868 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/8.941, allocations: 3.938 kB / 3.868 GB, free: 39.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.56e-05/8.941, allocations: 31.09 kB / 3.868 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/8.941, allocations: 21.06 kB / 3.869 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/8.942, allocations: 0.5929 MB / 3.869 GB, free: 39.06 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.003295/8.946, allocations: 3.503 MB / 3.873 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/8.947, allocations: 0.5273 MB / 3.873 GB, free: 36 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/8.947, allocations: 223.9 kB / 3.873 GB, free: 35.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05265/9, allocations: 31.99 MB / 3.904 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/9, allocations: 42.34 kB / 3.905 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=53): time 2.915e-06/9, allocations: 0 / 3.905 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53): time 0.0043/9.005, allocations: 1.457 MB / 3.906 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/9.005, allocations: 67.72 kB / 3.906 GB, free: 8.543 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/9.005, allocations: 0.559 MB / 3.907 GB, free: 7.977 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/9.005, allocations: 37.7 kB / 3.907 GB, free: 7.934 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/9.005, allocations: 348.5 kB / 3.907 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/9.006, allocations: 188.8 kB / 3.907 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.371e-05/9.006, allocations: 8 kB / 3.907 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.413e-05/9.006, allocations: 382.8 kB / 3.907 GB, free: 7.016 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/9.006, allocations: 175.7 kB / 3.908 GB, free: 6.844 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/9.006, allocations: 283.2 kB / 3.908 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/9.007, allocations: 467.1 kB / 3.908 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/9.007, allocations: 0 / 3.908 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001553/9.009, allocations: 0.7412 MB / 3.909 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.929e-05/9.009, allocations: 182.1 kB / 3.909 GB, free: 5.082 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/9.009, allocations: 4 kB / 3.909 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/9.01, allocations: 292.5 kB / 3.91 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/9.01, allocations: 99.88 kB / 3.91 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/9.012, allocations: 1.898 MB / 3.911 GB, free: 2.723 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006944/9.012, allocations: 117.8 kB / 3.912 GB, free: 2.613 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/9.012, allocations: 27.98 kB / 3.912 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/9.012, allocations: 5.719 kB / 3.912 GB, free: 2.582 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001208/9.014, allocations: 0.633 MB / 3.912 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/9.014, allocations: 3 kB / 3.912 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/9.014, allocations: 169.2 kB / 3.912 GB, free: 1.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003893/9.014, allocations: 111.8 kB / 3.913 GB, free: 1.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005224/9.02, allocations: 4.915 MB / 3.917 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008112/9.021, allocations: 103.1 kB / 3.917 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/9.021, allocations: 23.94 kB / 3.917 GB, free: 12.29 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.0005409/9.021, allocations: 278.1 kB / 3.918 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/9.021, allocations: 75.06 kB / 3.918 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/9.024, allocations: 1.497 MB / 3.919 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/9.024, allocations: 19.92 kB / 3.919 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/9.024, allocations: 0 / 3.919 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/9.024, allocations: 3.984 kB / 3.919 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/9.025, allocations: 0.8145 MB / 3.92 GB, free: 9.543 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/9.025, allocations: 0 / 3.92 GB, free: 9.543 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000413/9.026, allocations: 83.88 kB / 3.92 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/9.028, allocations: 1.029 MB / 3.921 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.167e-05/9.028, allocations: 12 kB / 3.921 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002811/9.03, allocations: 2.517 MB / 3.924 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/9.03, allocations: 4.062 kB / 3.924 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/9.033, allocations: 1.825 MB / 3.925 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003987/9.034, allocations: 211.7 kB / 3.926 GB, free: 3.734 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.956e-05/9.034, allocations: 8 kB / 3.926 GB, free: 3.727 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004714/9.034, allocations: 75.78 kB / 3.926 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/9.034, allocations: 52.23 kB / 3.926 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/9.034, allocations: 12 kB / 3.926 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005003/9.035, allocations: 391.1 kB / 3.926 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/9.035, allocations: 4 kB / 3.926 GB, free: 3.211 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006211/9.041, allocations: 1.233 MB / 3.927 GB, free: 1.977 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.007085/9.048, allocations: 1.625 MB / 3.929 GB, free: 0.5977 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3227/9.371, allocations: 1.29 MB / 3.93 GB, free: 66.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/9.371, allocations: 0 / 3.93 GB, free: 66.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001218/9.372, allocations: 467 kB / 3.931 GB, free: 66.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/9.375, allocations: 350 kB / 3.931 GB, free: 66.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/9.379, allocations: 2.078 MB / 3.933 GB, free: 65.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/9.38, allocations: 0.9839 MB / 3.934 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001118/9.381, allocations: 208.9 kB / 3.934 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/9.381, allocations: 51.56 kB / 3.934 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of SimCode: time 1.173e-06/9.381, allocations: 0 / 3.934 GB, free: 65.11 MB / 0.5261 GB [CodegenCFunctions.tpl:7294:24-7294: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).