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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",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.002809/0.002808, allocations: 181.7 kB / 16.39 MB, free: 5.762 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.095/2.095, 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.001013/0.001013, allocations: 98.61 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5943/0.5943, allocations: 48.77 MB / 367.9 MB, free: 47.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003603, allocations: 12 kB / 438.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1834, allocations: 60.23 MB / 499 MB, free: 14.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.01/8.193, allocations: 2.889 GB / 3.376 GB, free: 82.81 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/8.194, allocations: 89.59 kB / 3.376 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.777/9.97, allocations: 499.6 MB / 3.864 GB, free: 4.613 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.815e-06/9.97, allocations: 4 kB / 3.864 GB, free: 4.609 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.637e-05/9.971, allocations: 23.83 kB / 3.864 GB, free: 4.59 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.007585/9.978, allocations: 1.593 MB / 3.866 GB, free: 2.965 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001154/9.978, allocations: 14.16 kB / 3.866 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002572/9.979, allocations: 119.5 kB / 3.866 GB, free: 2.828 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004854/9.979, allocations: 130.8 kB / 3.866 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/9.981, allocations: 0.7625 MB / 3.867 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/9.982, allocations: 146.6 kB / 3.867 GB, free: 1.758 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/9.982, allocations: 68 kB / 3.867 GB, free: 1.691 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/9.984, allocations: 0.9316 MB / 3.868 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/9.984, allocations: 0 / 3.868 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-05/9.984, allocations: 32 kB / 3.868 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/9.984, allocations: 19.94 kB / 3.868 GB, free: 0.625 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/9.985, allocations: 0.6043 MB / 3.868 GB, free: 24 kB / 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.4151/10.4, allocations: 3.525 MB / 3.872 GB, free: 50.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/10.4, allocations: 0.5374 MB / 3.872 GB, free: 50.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0608/10.46, allocations: 31.98 MB / 3.904 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.877e-05/10.46, allocations: 41.12 kB / 3.904 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=53): time 4.358e-06/10.46, allocations: 2.625 kB / 3.904 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005081/10.47, allocations: 1.418 MB / 3.905 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/10.47, allocations: 59.66 kB / 3.905 GB, free: 30.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/10.47, allocations: 0.4886 MB / 3.905 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/10.47, allocations: 34.05 kB / 3.906 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/10.47, allocations: 350.3 kB / 3.906 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/10.47, allocations: 191.5 kB / 3.906 GB, free: 30.03 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/10.47, allocations: 11.59 kB / 3.906 GB, free: 30.03 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001444/10.47, allocations: 380.1 kB / 3.906 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/10.47, allocations: 172.5 kB / 3.907 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/10.47, allocations: 276.6 kB / 3.907 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/10.47, allocations: 198.3 kB / 3.907 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/10.47, allocations: 3.031 kB / 3.907 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001635/10.47, allocations: 0.7462 MB / 3.908 GB, free: 29.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003328/10.47, allocations: 1.143 MB / 3.909 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/10.47, allocations: 3.875 kB / 3.909 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/10.47, allocations: 290.8 kB / 3.909 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004622/10.47, allocations: 104.6 kB / 3.909 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/10.48, allocations: 1.901 MB / 3.911 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008657/10.48, allocations: 106.1 kB / 3.911 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.172e-05/10.48, allocations: 43.7 kB / 3.911 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/10.48, allocations: 4.406 kB / 3.911 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0018/10.48, allocations: 0.6816 MB / 3.912 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/10.48, allocations: 3.25 kB / 3.912 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007271/10.48, allocations: 212 kB / 3.912 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/10.48, allocations: 116.6 kB / 3.912 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002704/10.48, allocations: 1.803 MB / 3.914 GB, free: 41.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009526/10.48, allocations: 112 kB / 3.914 GB, free: 41.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/10.48, allocations: 27.84 kB / 3.914 GB, free: 41.07 MB / 0.5417 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.0005994/10.48, allocations: 270.9 kB / 3.914 GB, free: 40.88 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/10.48, allocations: 75.72 kB / 3.914 GB, free: 40.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/10.49, allocations: 1.501 MB / 3.916 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.61e-05/10.49, allocations: 16.84 kB / 3.916 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/10.49, allocations: 0 / 3.916 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/10.49, allocations: 11.45 kB / 3.916 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/10.49, allocations: 0.8101 MB / 3.917 GB, free: 40.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/10.49, allocations: 0 / 3.917 GB, free: 40.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000431/10.49, allocations: 80.92 kB / 3.917 GB, free: 40.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/10.49, allocations: 1.035 MB / 3.918 GB, free: 40.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/10.49, allocations: 21.72 kB / 3.918 GB, free: 40.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/10.49, allocations: 2.507 MB / 3.92 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/10.49, allocations: 0 / 3.92 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/10.5, allocations: 1.825 MB / 3.922 GB, free: 38.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005805/10.5, allocations: 214.9 kB / 3.922 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/10.5, allocations: 10.91 kB / 3.922 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007089/10.5, allocations: 66.33 kB / 3.922 GB, free: 38.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/10.5, allocations: 44.33 kB / 3.922 GB, free: 38.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/10.5, allocations: 20.56 kB / 3.922 GB, free: 38.46 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005678/10.5, allocations: 394.1 kB / 3.923 GB, free: 38.37 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.81e-07/10.5, allocations: 0 / 3.923 GB, free: 38.37 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00626/10.51, allocations: 1.192 MB / 3.924 GB, free: 38.36 MB / 0.5417 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.01453/10.52, allocations: 3.524 MB / 3.927 GB, free: 37.54 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002988/10.52, allocations: 0.9509 MB / 3.928 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/10.52, allocations: 0 / 3.928 GB, free: 37.51 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001147/10.52, allocations: 466.8 kB / 3.929 GB, free: 37.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/10.53, allocations: 359.8 kB / 3.929 GB, free: 37.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/10.54, allocations: 6.663 MB / 3.936 GB, free: 34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000827/10.54, allocations: 1 MB / 3.937 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009645/10.54, allocations: 209.8 kB / 3.937 GB, free: 33.26 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/10.54, allocations: 310.6 kB / 3.937 GB, free: 33.25 MB / 0.5417 GB Notification: Performance of SimCode: time 2.455e-06/10.54, allocations: 7.281 kB / 3.937 GB, free: 33.25 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(q_nom[i] ^ /*Real*/(-1 + j) for j in 1:N).