Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01004/0.01004, allocations: 165.2 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.629/1.629, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001956/0.001956, allocations: 103.4 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4459/0.4459, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006463/0.0006464, allocations: 12 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1215, allocations: 48.7 MB / 411.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.595/7.716, allocations: 2.485 GB / 2.887 GB, free: 50.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/7.717, allocations: 87.2 kB / 2.887 GB, free: 50.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.242/11.96, allocations: 0.7939 GB / 3.681 GB, free: 28.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.545e-06/11.96, allocations: 0 / 3.681 GB, free: 28.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001323/11.96, allocations: 40.48 kB / 3.681 GB, free: 28.05 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.01182/11.97, allocations: 2.673 MB / 3.683 GB, free: 26.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/11.97, allocations: 7.938 kB / 3.683 GB, free: 26.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006659/11.97, allocations: 193.9 kB / 3.684 GB, free: 26.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004937/11.98, allocations: 459.2 kB / 3.684 GB, free: 26.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003133/11.98, allocations: 1.001 MB / 3.685 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/11.98, allocations: 101.9 kB / 3.685 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000258/11.98, allocations: 123.5 kB / 3.685 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007217/11.99, allocations: 1.99 MB / 3.687 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.175e-05/11.99, allocations: 3.656 kB / 3.687 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002385/11.99, allocations: 54.62 kB / 3.687 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.6e-05/11.99, allocations: 59.47 kB / 3.687 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007715/12, allocations: 1.751 MB / 3.689 GB, free: 25.87 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.01415/12.01, allocations: 9.421 MB / 3.698 GB, free: 19.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005584/12.02, allocations: 1.179 MB / 3.699 GB, free: 19.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/12.03, allocations: 5.423 MB / 3.705 GB, free: 15.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/12.03, allocations: 44.16 kB / 3.705 GB, free: 15.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 3.006e-06/12.03, allocations: 0 / 3.705 GB, free: 15.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.06052/12.09, allocations: 8.348 MB / 3.713 GB, free: 14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.785e-05/12.09, allocations: 119.5 kB / 3.713 GB, free: 13.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/12.09, allocations: 0.6968 MB / 3.714 GB, free: 13.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004097/12.09, allocations: 47.95 kB / 3.714 GB, free: 13.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005638/12.09, allocations: 0.6544 MB / 3.714 GB, free: 13.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006704/12.09, allocations: 451 kB / 3.715 GB, free: 13.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/12.09, allocations: 37.38 kB / 3.715 GB, free: 13.05 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/12.09, allocations: 361.8 kB / 3.715 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/12.1, allocations: 0.665 MB / 3.716 GB, free: 12.74 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003081/12.1, allocations: 1.089 MB / 3.717 GB, free: 12.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002944/12.1, allocations: 0.7744 MB / 3.718 GB, free: 12.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/12.1, allocations: 2.969 kB / 3.718 GB, free: 12.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01283/12.11, allocations: 2.701 MB / 3.72 GB, free: 12.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00206/12.12, allocations: 5.052 MB / 3.725 GB, free: 22.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.033e-05/12.12, allocations: 18.45 kB / 3.725 GB, free: 22.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/12.13, allocations: 1.371 MB / 3.727 GB, free: 22.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/12.13, allocations: 279.3 kB / 3.727 GB, free: 22.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/12.14, allocations: 7.279 MB / 3.734 GB, free: 17.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00308/12.15, allocations: 186.1 kB / 3.734 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/12.15, allocations: 97.67 kB / 3.734 GB, free: 17.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/12.15, allocations: 5.281 kB / 3.734 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01252/12.16, allocations: 2.539 MB / 3.737 GB, free: 17.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-05/12.16, allocations: 17.72 kB / 3.737 GB, free: 17.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01008/12.17, allocations: 1.203 MB / 3.738 GB, free: 16.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/12.17, allocations: 302.3 kB / 3.738 GB, free: 16.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/12.18, allocations: 7.129 MB / 3.745 GB, free: 11.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/12.19, allocations: 185.2 kB / 3.745 GB, free: 11.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002074/12.19, allocations: 92.11 kB / 3.745 GB, free: 11.4 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.001243/12.19, allocations: 449.8 kB / 3.746 GB, free: 11.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/12.19, allocations: 122.6 kB / 3.746 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/12.2, allocations: 5.266 MB / 3.751 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-05/12.2, allocations: 42.78 kB / 3.751 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/12.2, allocations: 2.219 kB / 3.751 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.693e-05/12.2, allocations: 11.22 kB / 3.751 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/12.22, allocations: 7.896 MB / 3.759 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/12.22, allocations: 3.703 kB / 3.759 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/12.22, allocations: 174.1 kB / 3.759 GB, free: 8.031 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01139/12.24, allocations: 2.053 MB / 3.761 GB, free: 7.516 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000318/12.24, allocations: 38.11 kB / 3.761 GB, free: 7.496 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/12.25, allocations: 8.283 MB / 3.769 GB, free: 16.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/12.25, allocations: 128 / 3.769 GB, free: 16.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/12.26, allocations: 4.044 MB / 3.773 GB, free: 14.95 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/12.26, allocations: 433.3 kB / 3.774 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/12.26, allocations: 27.47 kB / 3.774 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/12.27, allocations: 216.3 kB / 3.774 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004188/12.27, allocations: 126.8 kB / 3.774 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/12.27, allocations: 60.78 kB / 3.774 GB, free: 14.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00122/12.27, allocations: 0.6065 MB / 3.775 GB, free: 14.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/12.27, allocations: 0 / 3.775 GB, free: 14.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01012/12.28, allocations: 2.029 MB / 3.777 GB, free: 13.89 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.02503/12.3, allocations: 6.563 MB / 3.783 GB, free: 10.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01735/12.32, allocations: 3.751 MB / 3.787 GB, free: 9.145 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/12.32, allocations: 4 kB / 3.787 GB, free: 9.141 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006532/12.33, allocations: 1.734 MB / 3.788 GB, free: 7.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/12.33, allocations: 0.5289 MB / 3.789 GB, free: 7.207 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6519/12.99, allocations: 93.74 MB / 3.88 GB, free: 38.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/12.99, allocations: 1.459 MB / 3.882 GB, free: 38.06 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003002/12.99, allocations: 0.9177 MB / 3.883 GB, free: 38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/12.99, allocations: 0.6757 MB / 3.883 GB, free: 38 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/12.99, allocations: 0 / 3.883 GB, free: 38 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).