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: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Source.ports.2..m_flow|Source.ports.2..p|Source.ports.2..h_outflow|Source.ports.3..m_flow|Source.ports.3..p|Source.ports.3..h_outflow|Source.ports.4..m_flow|Source.ports.4..p|Source.ports.4..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Sink.ports.2..m_flow|Sink.ports.2..p|Sink.ports.2..h_outflow|Sink.ports.3..m_flow|Sink.ports.3..p|Sink.ports.3..h_outflow|Sink.ports.4..m_flow|Sink.ports.4..p|Sink.ports.4..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|downstreamPressure.y|pumpPolynomial.port_b.m_flow|pumpPolynomial.port_b.p|pumpPolynomial.port_b.h_outflow|pumpQuadraticLinear.port_b.m_flow|pumpQuadraticLinear.port_b.p|pumpQuadraticLinear.port_b.h_outflow|pumpLinear.port_b.m_flow|pumpLinear.port_b.p|pumpLinear.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.283/2.283, allocations: 234.9 MB / 251.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006162/0.0006163, allocations: 12 kB / 314.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3433, allocations: 54.86 MB / 369.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.672/8.016, allocations: 2.596 GB / 2.957 GB, free: 102.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/8.016, allocations: 91.69 kB / 2.957 GB, free: 102.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.141/12.16, allocations: 0.8159 GB / 3.773 GB, free: 38.28 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.955e-06/12.16, allocations: 3.906 kB / 3.773 GB, free: 38.28 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001562/12.16, allocations: 36.12 kB / 3.773 GB, free: 38.27 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.0133/12.17, allocations: 2.745 MB / 3.775 GB, free: 36.67 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/12.17, allocations: 7.812 kB / 3.775 GB, free: 36.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005142/12.18, allocations: 470.5 kB / 3.776 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00339/12.18, allocations: 1.002 MB / 3.777 GB, free: 35.46 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/12.18, allocations: 106.1 kB / 3.777 GB, free: 35.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003421/12.18, allocations: 120 kB / 3.777 GB, free: 35.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007699/12.19, allocations: 2.001 MB / 3.779 GB, free: 33.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-05/12.19, allocations: 7.938 kB / 3.779 GB, free: 33.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002632/12.19, allocations: 59.42 kB / 3.779 GB, free: 33.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-05/12.19, allocations: 50.3 kB / 3.779 GB, free: 33.39 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00808/12.2, allocations: 1.748 MB / 3.781 GB, free: 31.98 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.01501/12.21, allocations: 9.411 MB / 3.79 GB, free: 22.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005618/12.22, allocations: 1.186 MB / 3.791 GB, free: 21.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01372/12.23, allocations: 5.466 MB / 3.796 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/12.23, allocations: 43.56 kB / 3.796 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 3.817e-06/12.23, allocations: 0 / 3.796 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.06723/12.3, allocations: 8.873 MB / 3.805 GB, free: 6.578 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/12.3, allocations: 116.1 kB / 3.805 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/12.3, allocations: 0.7998 MB / 3.806 GB, free: 5.617 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003634/12.3, allocations: 53.7 kB / 3.806 GB, free: 5.559 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004309/12.3, allocations: 0.6622 MB / 3.807 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/12.3, allocations: 448 kB / 3.807 GB, free: 4.461 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/12.3, allocations: 35.94 kB / 3.807 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001153/12.3, allocations: 370.8 kB / 3.808 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002828/12.3, allocations: 0.6832 MB / 3.808 GB, free: 3.371 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003231/12.31, allocations: 1.127 MB / 3.809 GB, free: 2.062 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003195/12.31, allocations: 0.8028 MB / 3.81 GB, free: 1.258 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/12.31, allocations: 4 kB / 3.81 GB, free: 1.254 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01664/12.33, allocations: 2.87 MB / 3.813 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004245/12.33, allocations: 475.6 kB / 3.813 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/12.33, allocations: 16 kB / 3.813 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01898/12.35, allocations: 1.865 MB / 3.815 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/12.35, allocations: 255.6 kB / 3.815 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/12.36, allocations: 5.871 MB / 3.821 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/12.36, allocations: 191.7 kB / 3.821 GB, free: 5.309 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/12.36, allocations: 91.95 kB / 3.821 GB, free: 5.219 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/12.36, allocations: 4 kB / 3.821 GB, free: 5.215 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01574/12.38, allocations: 2.724 MB / 3.824 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.478e-05/12.38, allocations: 12 kB / 3.824 GB, free: 2.453 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01245/12.39, allocations: 1.357 MB / 3.825 GB, free: 1.086 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/12.4, allocations: 283.6 kB / 3.826 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3954/12.79, allocations: 5.631 MB / 3.831 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002775/12.79, allocations: 181.7 kB / 3.831 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/12.79, allocations: 86.3 kB / 3.831 GB, free: 53.88 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 (131): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 6,2 8,2 6,2 8,2 6,2 8,2 6,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001267/12.79, allocations: 443.7 kB / 3.832 GB, free: 53.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/12.8, allocations: 124.2 kB / 3.832 GB, free: 53.69 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01587/12.81, allocations: 5.377 MB / 3.837 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.04e-05/12.81, allocations: 46.67 kB / 3.837 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/12.81, allocations: 0.6562 kB / 3.837 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/12.81, allocations: 11.88 kB / 3.837 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/12.83, allocations: 8.06 MB / 3.845 GB, free: 52.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.491e-05/12.83, allocations: 5.969 kB / 3.845 GB, free: 52.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/12.83, allocations: 151.6 kB / 3.845 GB, free: 52.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01534/12.85, allocations: 2.354 MB / 3.848 GB, free: 52.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003302/12.85, allocations: 39.81 kB / 3.848 GB, free: 52.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/12.86, allocations: 6.845 MB / 3.854 GB, free: 48.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/12.86, allocations: 0 / 3.854 GB, free: 48.08 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/12.87, allocations: 4.02 MB / 3.858 GB, free: 47.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/12.87, allocations: 438.6 kB / 3.859 GB, free: 47.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003694/12.87, allocations: 25.66 kB / 3.859 GB, free: 47.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/12.88, allocations: 223.3 kB / 3.859 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/12.88, allocations: 119.1 kB / 3.859 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001733/12.88, allocations: 61.8 kB / 3.859 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001137/12.88, allocations: 0.6091 MB / 3.86 GB, free: 47.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.71e-07/12.88, allocations: 0 / 3.86 GB, free: 47.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009381/12.89, allocations: 2.05 MB / 3.862 GB, free: 47.32 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (78): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 6,2 10,2 6,2 6,2 6,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0139/12.9, allocations: 2.326 MB / 3.864 GB, free: 47.15 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01611/12.92, allocations: 3.568 MB / 3.867 GB, free: 47.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/12.92, allocations: 2.906 kB / 3.867 GB, free: 47.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00611/12.92, allocations: 1.651 MB / 3.869 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00469/12.93, allocations: 0.5174 MB / 3.87 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2612/13.19, allocations: 79.88 MB / 3.948 GB, free: 40.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/13.19, allocations: 1.447 MB / 3.949 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005502/13.19, allocations: 104.9 kB / 3.949 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of SimCode: time 9.01e-07/13.19, allocations: 0 / 3.949 GB, free: 39.92 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).