Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006176/0.0006177, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3486, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.879/8.227, allocations: 2.596 GB / 2.956 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/8.228, allocations: 89.39 kB / 2.956 GB, free: 102.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.113/12.34, allocations: 0.8158 GB / 3.772 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.098e-06/12.34, allocations: 0 / 3.772 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001386/12.34, allocations: 40.22 kB / 3.772 GB, free: 39.34 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.01275/12.35, allocations: 2.741 MB / 3.775 GB, free: 37.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/12.35, allocations: 10.62 kB / 3.775 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006744/12.35, allocations: 190 kB / 3.775 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004939/12.36, allocations: 471.4 kB / 3.776 GB, free: 37.52 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/12.36, allocations: 1.005 MB / 3.776 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/12.36, allocations: 106.9 kB / 3.777 GB, free: 36.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/12.36, allocations: 125 kB / 3.777 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007279/12.37, allocations: 1.982 MB / 3.779 GB, free: 35.36 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/12.37, allocations: 7.938 kB / 3.779 GB, free: 35.35 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/12.37, allocations: 59.94 kB / 3.779 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.03e-05/12.37, allocations: 58.23 kB / 3.779 GB, free: 35.23 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00783/12.38, allocations: 1.747 MB / 3.78 GB, free: 33.82 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.0145/12.39, allocations: 9.419 MB / 3.79 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005688/12.4, allocations: 1.175 MB / 3.791 GB, free: 23.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/12.41, allocations: 5.464 MB / 3.796 GB, free: 17.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/12.41, allocations: 43.56 kB / 3.796 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 3.206e-06/12.41, allocations: 0 / 3.796 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.06128/12.47, allocations: 8.356 MB / 3.804 GB, free: 8.922 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/12.47, allocations: 120.1 kB / 3.804 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/12.48, allocations: 0.6935 MB / 3.805 GB, free: 8.066 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003555/12.48, allocations: 53.64 kB / 3.805 GB, free: 8.008 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004417/12.48, allocations: 0.6639 MB / 3.806 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/12.48, allocations: 450.1 kB / 3.806 GB, free: 6.906 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/12.48, allocations: 28 kB / 3.806 GB, free: 6.879 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001165/12.48, allocations: 374.8 kB / 3.807 GB, free: 6.504 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002618/12.48, allocations: 0.6598 MB / 3.807 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002954/12.48, allocations: 1.088 MB / 3.808 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/12.49, allocations: 0.7754 MB / 3.809 GB, free: 3.793 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.23e-05/12.49, allocations: 7.938 kB / 3.809 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01277/12.5, allocations: 2.656 MB / 3.812 GB, free: 1.102 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002266/12.5, allocations: 5.045 MB / 3.817 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.737e-05/12.5, allocations: 16 kB / 3.817 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01202/12.51, allocations: 1.372 MB / 3.818 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/12.52, allocations: 287.5 kB / 3.818 GB, free: 9.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/12.53, allocations: 7.275 MB / 3.825 GB, free: 2.379 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003176/12.53, allocations: 183.8 kB / 3.826 GB, free: 2.199 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/12.53, allocations: 95.95 kB / 3.826 GB, free: 2.105 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/12.53, allocations: 4 kB / 3.826 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.431/12.96, allocations: 2.523 MB / 3.828 GB, free: 57.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.672e-05/12.96, allocations: 14.2 kB / 3.828 GB, free: 57.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009487/12.97, allocations: 1.129 MB / 3.829 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/12.98, allocations: 304.5 kB / 3.83 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/12.99, allocations: 7.092 MB / 3.836 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/12.99, allocations: 185.8 kB / 3.837 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/12.99, allocations: 83.98 kB / 3.837 GB, free: 52.21 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.001263/12.99, allocations: 447.4 kB / 3.837 GB, free: 52.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/12.99, allocations: 130.1 kB / 3.837 GB, free: 52.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/13.01, allocations: 5.262 MB / 3.842 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-05/13.01, allocations: 47.12 kB / 3.842 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/13.01, allocations: 0 / 3.842 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.195e-05/13.01, allocations: 7.453 kB / 3.842 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02003/13.03, allocations: 7.909 MB / 3.85 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/13.03, allocations: 0 / 3.85 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/13.03, allocations: 173.8 kB / 3.85 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01102/13.04, allocations: 2.058 MB / 3.852 GB, free: 50.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000315/13.04, allocations: 42.5 kB / 3.852 GB, free: 50.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/13.05, allocations: 8.277 MB / 3.86 GB, free: 45.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/13.05, allocations: 3.594 kB / 3.86 GB, free: 45.07 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/13.06, allocations: 4.034 MB / 3.864 GB, free: 44.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001376/13.07, allocations: 434 kB / 3.865 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004093/13.07, allocations: 28.5 kB / 3.865 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002737/13.07, allocations: 216.8 kB / 3.865 GB, free: 44.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/13.07, allocations: 129.5 kB / 3.865 GB, free: 44.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/13.07, allocations: 58.56 kB / 3.865 GB, free: 44.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001194/13.07, allocations: 0.6086 MB / 3.866 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/13.07, allocations: 0 / 3.866 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0099/13.08, allocations: 2.052 MB / 3.868 GB, free: 44.23 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.02432/13.11, allocations: 6.597 MB / 3.874 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01648/13.12, allocations: 3.749 MB / 3.878 GB, free: 42.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/13.12, allocations: 0 / 3.878 GB, free: 42.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005783/13.13, allocations: 1.739 MB / 3.88 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004764/13.13, allocations: 0.5196 MB / 3.88 GB, free: 42.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2628/13.4, allocations: 94.98 MB / 3.973 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/13.4, allocations: 1.448 MB / 3.974 GB, free: 22.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/13.4, allocations: 0.6788 MB / 3.975 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of SimCode: time 1.894e-06/13.4, allocations: 0 / 3.975 GB, free: 22.61 MB / 0.5105 GB [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).