Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0111/0.0111, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.604/1.604, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001794/0.001794, allocations: 122.5 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3962/0.3962, allocations: 38.06 MB / 303.7 MB, free: 42.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12 kB / 362.9 MB, free: 5.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 48.7 MB / 411.6 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.544/7.677, allocations: 2.485 GB / 2.887 GB, free: 48.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/7.677, allocations: 85.45 kB / 2.887 GB, free: 48.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.943/11.62, allocations: 0.7939 GB / 3.681 GB, free: 28.76 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.055e-06/11.62, allocations: 0 / 3.681 GB, free: 28.76 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001441/11.62, allocations: 39.78 kB / 3.681 GB, free: 28.75 MB / 458.7 MB 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.01265/11.63, allocations: 2.67 MB / 3.683 GB, free: 27.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/11.63, allocations: 16.8 kB / 3.683 GB, free: 27.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00391/11.64, allocations: 454 kB / 3.684 GB, free: 27.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002792/11.64, allocations: 1 MB / 3.685 GB, free: 27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/11.64, allocations: 112 kB / 3.685 GB, free: 27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/11.64, allocations: 120.6 kB / 3.685 GB, free: 27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00457/11.64, allocations: 1.984 MB / 3.687 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/11.64, allocations: 7.688 kB / 3.687 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/11.64, allocations: 60.88 kB / 3.687 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.596e-05/11.64, allocations: 54.81 kB / 3.687 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004235/11.65, allocations: 1.755 MB / 3.689 GB, free: 26.59 MB / 458.7 MB 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.01023/11.66, allocations: 9.41 MB / 3.698 GB, free: 20.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003281/11.66, allocations: 1.18 MB / 3.699 GB, free: 20.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008793/11.67, allocations: 5.42 MB / 3.704 GB, free: 16.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/11.67, allocations: 45.95 kB / 3.704 GB, free: 16.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 3.196e-06/11.67, allocations: 3.344 kB / 3.704 GB, free: 16.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.03431/11.71, allocations: 8.352 MB / 3.713 GB, free: 14.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/11.71, allocations: 119.3 kB / 3.713 GB, free: 14.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/11.71, allocations: 0.7002 MB / 3.713 GB, free: 14.45 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002509/11.71, allocations: 47.3 kB / 3.713 GB, free: 14.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005672/11.71, allocations: 0.6545 MB / 3.714 GB, free: 14.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006052/11.71, allocations: 458.2 kB / 3.715 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/11.71, allocations: 30.84 kB / 3.715 GB, free: 13.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/11.71, allocations: 365.9 kB / 3.715 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/11.71, allocations: 0.6589 MB / 3.716 GB, free: 13.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/11.71, allocations: 1.089 MB / 3.717 GB, free: 12.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/11.71, allocations: 0.7792 MB / 3.717 GB, free: 12.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/11.71, allocations: 3.875 kB / 3.717 GB, free: 12.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007422/11.72, allocations: 2.708 MB / 3.72 GB, free: 12.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002703/11.72, allocations: 5.048 MB / 3.725 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/11.72, allocations: 14.56 kB / 3.725 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006567/11.73, allocations: 1.371 MB / 3.726 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/11.73, allocations: 282 kB / 3.727 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009235/11.74, allocations: 7.272 MB / 3.734 GB, free: 17.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/11.74, allocations: 181.6 kB / 3.734 GB, free: 17.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/11.74, allocations: 94.44 kB / 3.734 GB, free: 17.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/11.74, allocations: 5.781 kB / 3.734 GB, free: 17.95 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007224/11.75, allocations: 2.543 MB / 3.736 GB, free: 17.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-05/11.75, allocations: 13.91 kB / 3.736 GB, free: 17.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005817/11.76, allocations: 1.218 MB / 3.738 GB, free: 17.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/11.76, allocations: 299.8 kB / 3.738 GB, free: 17.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008933/11.77, allocations: 7.125 MB / 3.745 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/11.77, allocations: 181.2 kB / 3.745 GB, free: 12.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00041/11.77, allocations: 89.88 kB / 3.745 GB, free: 12.1 MB / 474.7 MB 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.001364/11.77, allocations: 446.9 kB / 3.746 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/11.77, allocations: 125.2 kB / 3.746 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00884/11.78, allocations: 5.266 MB / 3.751 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.823e-05/11.78, allocations: 50.17 kB / 3.751 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/11.78, allocations: 0 / 3.751 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/11.78, allocations: 6.75 kB / 3.751 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0141/11.8, allocations: 7.892 MB / 3.759 GB, free: 8.379 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/11.8, allocations: 3.375 kB / 3.759 GB, free: 8.379 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/11.8, allocations: 182.5 kB / 3.759 GB, free: 8.363 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006797/11.8, allocations: 2.064 MB / 3.761 GB, free: 7.836 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002413/11.8, allocations: 29.17 kB / 3.761 GB, free: 7.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009892/11.81, allocations: 8.284 MB / 3.769 GB, free: 17.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/11.81, allocations: 0 / 3.769 GB, free: 17.13 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008719/11.82, allocations: 4.038 MB / 3.773 GB, free: 15.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/11.82, allocations: 435.4 kB / 3.773 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004136/11.82, allocations: 28.53 kB / 3.773 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/11.83, allocations: 219.5 kB / 3.774 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/11.83, allocations: 125.8 kB / 3.774 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/11.83, allocations: 54.97 kB / 3.774 GB, free: 14.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009945/11.83, allocations: 0.6067 MB / 3.774 GB, free: 14.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/11.83, allocations: 0 / 3.774 GB, free: 14.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01196/11.84, allocations: 2.033 MB / 3.776 GB, free: 14.22 MB / 490.7 MB 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.01407/11.85, allocations: 2.297 MB / 3.779 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/11.86, allocations: 3.754 MB / 3.782 GB, free: 12.22 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-05/11.86, allocations: 0 / 3.782 GB, free: 12.22 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004363/11.87, allocations: 1.739 MB / 3.784 GB, free: 10.85 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003196/11.87, allocations: 0.5187 MB / 3.784 GB, free: 10.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4971/12.37, allocations: 78.56 MB / 3.861 GB, free: 50.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009661/12.37, allocations: 1.463 MB / 3.863 GB, free: 49.29 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002172/12.37, allocations: 0.9182 MB / 3.863 GB, free: 49.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/12.37, allocations: 102.7 kB / 3.864 GB, free: 49.23 MB / 490.7 MB Notification: Performance of SimCode: time 2.194e-06/12.37, allocations: 0 / 3.864 GB, free: 49.23 MB / 490.7 MB [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).