Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01099/0.01099, allocations: 177.6 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.996/1.996, allocations: 194.5 MB / 210.3 MB, free: 8.789 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002/0.002, allocations: 112.7 kB / 255.6 MB, free: 11.41 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2467/0.2467, allocations: 40.01 MB / 340.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006973/0.0006972, allocations: 11.88 kB / 406.3 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1178, allocations: 54.87 MB / 461.1 MB, free: 3.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.774/7.892, allocations: 2.596 GB / 3.046 GB, free: 73.39 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/7.892, allocations: 85.58 kB / 3.046 GB, free: 73.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.149/12.04, allocations: 0.8158 GB / 3.862 GB, free: 21.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.484e-06/12.04, allocations: 0 / 3.862 GB, free: 21.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001328/12.04, allocations: 36 kB / 3.862 GB, free: 21.93 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.01208/12.05, allocations: 2.743 MB / 3.865 GB, free: 19.13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/12.05, allocations: 11.97 kB / 3.865 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006348/12.05, allocations: 194.1 kB / 3.865 GB, free: 18.92 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004957/12.06, allocations: 466.8 kB / 3.865 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/12.06, allocations: 1.004 MB / 3.866 GB, free: 17.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/12.06, allocations: 110.5 kB / 3.866 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/12.06, allocations: 123.9 kB / 3.866 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007386/12.07, allocations: 1.986 MB / 3.868 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.332e-05/12.07, allocations: 3.938 kB / 3.868 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002504/12.07, allocations: 56 kB / 3.868 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-05/12.07, allocations: 54.28 kB / 3.868 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007677/12.08, allocations: 1.745 MB / 3.87 GB, free: 13.18 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.01486/12.09, allocations: 9.414 MB / 3.879 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005597/12.1, allocations: 1.182 MB / 3.88 GB, free: 1.758 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0147/12.11, allocations: 5.467 MB / 3.886 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/12.11, allocations: 43.55 kB / 3.886 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=91): time 3.356e-06/12.11, allocations: 0 / 3.886 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=134): time 0.06327/12.18, allocations: 8.348 MB / 3.894 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.534e-05/12.18, allocations: 120.1 kB / 3.894 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/12.18, allocations: 0.7011 MB / 3.895 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003704/12.18, allocations: 53.7 kB / 3.895 GB, free: 1.973 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006359/12.18, allocations: 0.6546 MB / 3.895 GB, free: 1.309 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006168/12.18, allocations: 457.4 kB / 3.896 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/12.18, allocations: 28 kB / 3.896 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001814/12.18, allocations: 366.3 kB / 3.896 GB, free: 476 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4137/12.59, allocations: 0.657 MB / 3.897 GB, free: 53.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/12.6, allocations: 1.095 MB / 3.898 GB, free: 53.15 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/12.6, allocations: 0.769 MB / 3.899 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/12.6, allocations: 5.906 kB / 3.899 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01403/12.62, allocations: 2.701 MB / 3.901 GB, free: 53.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001206/12.62, allocations: 5.05 MB / 3.906 GB, free: 47.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-05/12.62, allocations: 13.41 kB / 3.906 GB, free: 47.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/12.63, allocations: 1.374 MB / 3.908 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/12.63, allocations: 280.8 kB / 3.908 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/12.64, allocations: 7.274 MB / 3.915 GB, free: 42.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003163/12.65, allocations: 180.6 kB / 3.915 GB, free: 42.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003267/12.65, allocations: 90.36 kB / 3.915 GB, free: 42.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/12.65, allocations: 7.141 kB / 3.915 GB, free: 42.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01382/12.66, allocations: 2.543 MB / 3.918 GB, free: 42.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.914e-05/12.66, allocations: 13.03 kB / 3.918 GB, free: 42.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01071/12.67, allocations: 1.213 MB / 3.919 GB, free: 42.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002245/12.67, allocations: 301.3 kB / 3.919 GB, free: 42.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01265/12.69, allocations: 7.128 MB / 3.926 GB, free: 36.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/12.69, allocations: 186.8 kB / 3.926 GB, free: 36.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003406/12.69, allocations: 84.73 kB / 3.927 GB, free: 36.62 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.001308/12.69, allocations: 443.8 kB / 3.927 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/12.69, allocations: 124.6 kB / 3.927 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01459/12.71, allocations: 5.266 MB / 3.932 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.764e-05/12.71, allocations: 49.42 kB / 3.932 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/12.71, allocations: 3.781 kB / 3.932 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.335e-05/12.71, allocations: 11.59 kB / 3.932 GB, free: 36.06 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0201/12.73, allocations: 7.897 MB / 3.94 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/12.73, allocations: 0 / 3.94 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/12.73, allocations: 178.5 kB / 3.94 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01121/12.74, allocations: 2.065 MB / 3.942 GB, free: 34.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003024/12.74, allocations: 34.69 kB / 3.942 GB, free: 34.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/12.75, allocations: 8.28 MB / 3.95 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/12.75, allocations: 6.375 kB / 3.95 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/12.77, allocations: 4.031 MB / 3.954 GB, free: 28.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/12.77, allocations: 437.5 kB / 3.955 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003593/12.77, allocations: 30.3 kB / 3.955 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/12.77, allocations: 214.4 kB / 3.955 GB, free: 28.63 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/12.77, allocations: 128.5 kB / 3.955 GB, free: 28.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001747/12.77, allocations: 55.95 kB / 3.955 GB, free: 28.63 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00124/12.77, allocations: 0.6078 MB / 3.956 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/12.77, allocations: 3.219 kB / 3.956 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009737/12.78, allocations: 2.045 MB / 3.958 GB, free: 28.52 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.02423/12.81, allocations: 6.58 MB / 3.964 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01704/12.82, allocations: 3.758 MB / 3.968 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/12.82, allocations: 0 / 3.968 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005907/12.83, allocations: 1.735 MB / 3.969 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004918/12.83, allocations: 0.524 MB / 3.97 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2761/13.11, allocations: 94.95 MB / 4.063 GB, free: 21.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/13.11, allocations: 1.452 MB / 4.064 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003115/13.11, allocations: 0.9279 MB / 4.065 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/13.12, allocations: 0.6711 MB / 4.066 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of SimCode: time 1.563e-06/13.12, allocations: 4 kB / 4.066 GB, free: 19.65 MB / 0.5261 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).