Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.943/1.943, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005909/0.000591, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.345, allocations: 48.7 MB / 331.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.97/7.315, allocations: 2.485 GB / 2.808 GB, free: 36.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003684/7.315, allocations: 87.52 kB / 2.809 GB, free: 36.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.11/11.43, allocations: 0.7939 GB / 3.602 GB, free: 31.86 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.735e-06/11.43, allocations: 0 / 3.602 GB, free: 31.86 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001247/11.43, allocations: 42.59 kB / 3.602 GB, free: 31.85 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.0113/11.44, allocations: 2.666 MB / 3.605 GB, free: 30.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/11.44, allocations: 11.06 kB / 3.605 GB, free: 30.51 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006878/11.44, allocations: 194.6 kB / 3.605 GB, free: 30.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004859/11.44, allocations: 461 kB / 3.606 GB, free: 30.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/11.45, allocations: 1.001 MB / 3.607 GB, free: 30.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/11.45, allocations: 108 kB / 3.607 GB, free: 30.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003044/11.45, allocations: 118.5 kB / 3.607 GB, free: 30.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007185/11.45, allocations: 1.99 MB / 3.609 GB, free: 29.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.102e-05/11.45, allocations: 7.031 kB / 3.609 GB, free: 29.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002488/11.45, allocations: 59.42 kB / 3.609 GB, free: 29.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.365e-05/11.45, allocations: 61.06 kB / 3.609 GB, free: 29.65 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007771/11.46, allocations: 1.753 MB / 3.611 GB, free: 29.63 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.01432/11.48, allocations: 9.406 MB / 3.62 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005589/11.48, allocations: 1.187 MB / 3.621 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/11.49, allocations: 5.404 MB / 3.626 GB, free: 19.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/11.49, allocations: 56.11 kB / 3.626 GB, free: 19.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 3.196e-06/11.49, allocations: 0 / 3.626 GB, free: 19.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.05975/11.55, allocations: 8.36 MB / 3.634 GB, free: 17.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/11.55, allocations: 118.2 kB / 3.635 GB, free: 17.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/11.56, allocations: 0.6953 MB / 3.635 GB, free: 17.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003622/11.56, allocations: 51.27 kB / 3.635 GB, free: 17.44 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/11.56, allocations: 0.6633 MB / 3.636 GB, free: 17.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000597/11.56, allocations: 452.1 kB / 3.636 GB, free: 16.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/11.56, allocations: 35.78 kB / 3.636 GB, free: 16.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/11.56, allocations: 370.6 kB / 3.637 GB, free: 16.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/11.56, allocations: 0.6624 MB / 3.637 GB, free: 16.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003066/11.56, allocations: 1.084 MB / 3.638 GB, free: 15.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002934/11.57, allocations: 0.773 MB / 3.639 GB, free: 15.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/11.57, allocations: 6.406 kB / 3.639 GB, free: 15.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01269/11.58, allocations: 2.652 MB / 3.642 GB, free: 15.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001692/11.58, allocations: 5.054 MB / 3.647 GB, free: 26.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.483e-05/11.58, allocations: 17.41 kB / 3.647 GB, free: 26.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01145/11.59, allocations: 1.366 MB / 3.648 GB, free: 26.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/11.59, allocations: 281.1 kB / 3.648 GB, free: 26.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/11.61, allocations: 7.271 MB / 3.655 GB, free: 20.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/11.61, allocations: 185 kB / 3.656 GB, free: 20.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003668/11.61, allocations: 92.06 kB / 3.656 GB, free: 20.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/11.61, allocations: 3.812 kB / 3.656 GB, free: 20.93 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0129/11.62, allocations: 2.541 MB / 3.658 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.876e-05/11.62, allocations: 11.38 kB / 3.658 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008646/11.63, allocations: 1.127 MB / 3.659 GB, free: 20.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/11.63, allocations: 301 kB / 3.66 GB, free: 20.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/11.65, allocations: 7.095 MB / 3.667 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/11.65, allocations: 188.6 kB / 3.667 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/11.65, allocations: 91.61 kB / 3.667 GB, free: 15.14 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.00132/11.65, allocations: 433.2 kB / 3.667 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004527/11.65, allocations: 128.8 kB / 3.667 GB, free: 14.87 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/11.67, allocations: 5.275 MB / 3.673 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.685e-05/11.67, allocations: 46.27 kB / 3.673 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/11.67, allocations: 0 / 3.673 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.734e-05/11.67, allocations: 10.03 kB / 3.673 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01986/11.69, allocations: 7.897 MB / 3.68 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/11.69, allocations: 0 / 3.68 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/11.69, allocations: 180.5 kB / 3.68 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/11.7, allocations: 2.062 MB / 3.682 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002844/11.7, allocations: 42.02 kB / 3.683 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/11.71, allocations: 8.275 MB / 3.691 GB, free: 4.113 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/11.71, allocations: 0 / 3.691 GB, free: 4.113 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01236/11.72, allocations: 4.044 MB / 3.695 GB, free: 2.254 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/11.73, allocations: 436.8 kB / 3.695 GB, free: 1.953 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003804/11.73, allocations: 30 kB / 3.695 GB, free: 1.934 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/11.73, allocations: 215.4 kB / 3.695 GB, free: 1.891 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/11.73, allocations: 121.1 kB / 3.695 GB, free: 1.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/11.73, allocations: 55.45 kB / 3.695 GB, free: 1.867 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001195/11.73, allocations: 0.6075 MB / 3.696 GB, free: 1.609 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.71e-07/11.73, allocations: 4 kB / 3.696 GB, free: 1.605 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01025/11.74, allocations: 2.029 MB / 3.698 GB, free: 1.203 MB / 474.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.02564/11.77, allocations: 6.569 MB / 3.704 GB, free: 12.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01788/11.78, allocations: 3.751 MB / 3.708 GB, free: 9.402 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/11.78, allocations: 0 / 3.708 GB, free: 9.402 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006463/11.79, allocations: 1.734 MB / 3.71 GB, free: 7.848 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005055/11.8, allocations: 0.5155 MB / 3.71 GB, free: 7.465 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6387/12.43, allocations: 94.06 MB / 3.802 GB, free: 41.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/12.44, allocations: 1.446 MB / 3.803 GB, free: 40.68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/12.44, allocations: 0.6738 MB / 3.804 GB, free: 40.68 MB / 490.7 MB Notification: Performance of SimCode: time 1.153e-06/12.44, allocations: 4 kB / 3.804 GB, free: 40.68 MB / 490.7 MB [CodegenCppCommonOld.tpl:1170:24-1170: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).