Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01202/0.01202, allocations: 174.8 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.859/1.859, allocations: 194.5 MB / 210.3 MB, free: 7.535 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001864/0.001864, allocations: 124.6 kB / 255.6 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.214/0.214, allocations: 40.02 MB / 340.8 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004261, allocations: 14.28 kB / 406.2 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1315, allocations: 54.87 MB / 461 MB, free: 3.297 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.356/7.488, allocations: 2.596 GB / 3.046 GB, free: 154.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003874/7.488, allocations: 87.73 kB / 3.046 GB, free: 154.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.368/10.86, allocations: 0.8159 GB / 3.862 GB, free: 43.92 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.216e-06/10.86, allocations: 2.078 kB / 3.862 GB, free: 43.92 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.822e-05/10.86, allocations: 33.59 kB / 3.862 GB, free: 43.91 MB / 0.4948 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.01067/10.87, allocations: 2.736 MB / 3.864 GB, free: 42.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/10.87, allocations: 7.406 kB / 3.864 GB, free: 42.49 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003638/10.87, allocations: 476.5 kB / 3.865 GB, free: 42.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/10.87, allocations: 0.9979 MB / 3.866 GB, free: 42.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/10.87, allocations: 110.6 kB / 3.866 GB, free: 42.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/10.87, allocations: 123.1 kB / 3.866 GB, free: 42.03 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004273/10.88, allocations: 1.984 MB / 3.868 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/10.88, allocations: 7.594 kB / 3.868 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/10.88, allocations: 61.38 kB / 3.868 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.367e-05/10.88, allocations: 54.42 kB / 3.868 GB, free: 41.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004164/10.88, allocations: 1.75 MB / 3.87 GB, free: 41.58 MB / 0.4948 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.009349/10.89, allocations: 9.421 MB / 3.879 GB, free: 35.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/10.9, allocations: 1.18 MB / 3.88 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00913/10.9, allocations: 5.475 MB / 3.886 GB, free: 30.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/10.9, allocations: 42.73 kB / 3.886 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 2.786e-06/10.9, allocations: 0 / 3.886 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.03235/10.94, allocations: 8.347 MB / 3.894 GB, free: 28.13 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/10.94, allocations: 132.8 kB / 3.894 GB, free: 28 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/10.94, allocations: 0.6932 MB / 3.895 GB, free: 27.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001513/10.94, allocations: 48.58 kB / 3.895 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004316/10.94, allocations: 0.6575 MB / 3.895 GB, free: 27.11 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00039/10.94, allocations: 449.8 kB / 3.896 GB, free: 26.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/10.94, allocations: 30.28 kB / 3.896 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001348/10.94, allocations: 366.2 kB / 3.896 GB, free: 26.42 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/10.94, allocations: 0.6613 MB / 3.897 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/10.94, allocations: 1.083 MB / 3.898 GB, free: 25.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/10.94, allocations: 0.7768 MB / 3.898 GB, free: 25.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/10.94, allocations: 3.875 kB / 3.898 GB, free: 25.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00693/10.95, allocations: 2.7 MB / 3.901 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001067/10.95, allocations: 5.059 MB / 3.906 GB, free: 18.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/10.95, allocations: 17.64 kB / 3.906 GB, free: 18.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006146/10.96, allocations: 1.37 MB / 3.907 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/10.96, allocations: 277.9 kB / 3.908 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006907/10.97, allocations: 7.282 MB / 3.915 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/10.97, allocations: 181.1 kB / 3.915 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/10.97, allocations: 89.28 kB / 3.915 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/10.97, allocations: 8.719 kB / 3.915 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006683/10.97, allocations: 2.539 MB / 3.918 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/10.97, allocations: 12.97 kB / 3.918 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005428/10.98, allocations: 1.205 MB / 3.919 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/10.98, allocations: 304.3 kB / 3.919 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/10.99, allocations: 7.13 MB / 3.926 GB, free: 20.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/10.99, allocations: 192 kB / 3.926 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/10.99, allocations: 83.03 kB / 3.926 GB, free: 20.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 7 {2 6,2 8,2 6,2 8,2 8,2 6,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001246/10.99, allocations: 448 kB / 3.927 GB, free: 19.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/10.99, allocations: 126.5 kB / 3.927 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008257/11, allocations: 5.261 MB / 3.932 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/11, allocations: 46.62 kB / 3.932 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/11, allocations: 0 / 3.932 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/11, allocations: 7.219 kB / 3.932 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/11.01, allocations: 7.893 MB / 3.94 GB, free: 7.879 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/11.01, allocations: 8.156 kB / 3.94 GB, free: 7.871 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007062/11.01, allocations: 173.6 kB / 3.94 GB, free: 7.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006655/11.02, allocations: 2.062 MB / 3.942 GB, free: 6.117 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001844/11.02, allocations: 38.94 kB / 3.942 GB, free: 6.086 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3623/11.38, allocations: 8.275 MB / 3.95 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/11.38, allocations: 3.719 kB / 3.95 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008793/11.39, allocations: 4.026 MB / 3.954 GB, free: 56.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/11.39, allocations: 436.4 kB / 3.954 GB, free: 56.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/11.39, allocations: 31.14 kB / 3.954 GB, free: 56.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/11.4, allocations: 219.7 kB / 3.955 GB, free: 56.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/11.4, allocations: 124.8 kB / 3.955 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/11.4, allocations: 57.62 kB / 3.955 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009798/11.4, allocations: 0.6051 MB / 3.955 GB, free: 56.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.01e-07/11.4, allocations: 2.875 kB / 3.955 GB, free: 56.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009414/11.41, allocations: 2.048 MB / 3.957 GB, free: 56.12 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.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 (81): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 7 {2 6,2 10,2 6,2 6,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01155/11.42, allocations: 2.329 MB / 3.96 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01109/11.43, allocations: 3.75 MB / 3.963 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/11.43, allocations: 2.062 kB / 3.963 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003427/11.43, allocations: 1.736 MB / 3.965 GB, free: 55.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002959/11.44, allocations: 0.5222 MB / 3.966 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1396/11.58, allocations: 79.85 MB / 4.043 GB, free: 50.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000879/11.58, allocations: 1.452 MB / 4.045 GB, free: 49.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002018/11.58, allocations: 0.9198 MB / 4.046 GB, free: 49.42 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/11.58, allocations: 103.8 kB / 4.046 GB, free: 49.41 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/11.58, allocations: 0 / 4.046 GB, free: 49.41 MB / 0.5105 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).