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: 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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.052/2.052, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006335/0.0006333, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.363, allocations: 48.7 MB / 331.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.497/7.86, allocations: 2.485 GB / 2.809 GB, free: 35.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/7.86, allocations: 94.31 kB / 2.809 GB, free: 35.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.323/12.18, allocations: 0.7939 GB / 3.603 GB, free: 31.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.685e-06/12.18, allocations: 0 / 3.603 GB, free: 31.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001669/12.18, allocations: 36.27 kB / 3.603 GB, free: 31.36 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.01293/12.2, allocations: 2.672 MB / 3.605 GB, free: 30 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.859e-05/12.2, allocations: 9.531 kB / 3.605 GB, free: 30 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005063/12.2, allocations: 460.6 kB / 3.606 GB, free: 29.92 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003399/12.2, allocations: 0.9956 MB / 3.607 GB, free: 29.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/12.21, allocations: 105.3 kB / 3.607 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004614/12.21, allocations: 126.4 kB / 3.607 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007813/12.21, allocations: 1.998 MB / 3.609 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.422e-05/12.21, allocations: 7.875 kB / 3.609 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/12.21, allocations: 60.55 kB / 3.609 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.289e-05/12.21, allocations: 55.66 kB / 3.609 GB, free: 29.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008283/12.22, allocations: 1.755 MB / 3.611 GB, free: 29.17 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.01609/12.24, allocations: 9.407 MB / 3.62 GB, free: 22.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005845/12.24, allocations: 1.189 MB / 3.621 GB, free: 22.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01341/12.26, allocations: 5.411 MB / 3.627 GB, free: 18.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/12.26, allocations: 47 kB / 3.627 GB, free: 18.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 3.176e-06/12.26, allocations: 0 / 3.627 GB, free: 18.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.07085/12.33, allocations: 8.874 MB / 3.635 GB, free: 17.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/12.33, allocations: 118.7 kB / 3.635 GB, free: 17.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/12.33, allocations: 0.7998 MB / 3.636 GB, free: 17.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003832/12.33, allocations: 51.98 kB / 3.636 GB, free: 16.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004766/12.33, allocations: 0.666 MB / 3.637 GB, free: 16.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006334/12.33, allocations: 449.9 kB / 3.637 GB, free: 16.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/12.33, allocations: 34.47 kB / 3.637 GB, free: 16.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/12.33, allocations: 383.3 kB / 3.638 GB, free: 15.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002965/12.34, allocations: 0.6814 MB / 3.638 GB, free: 15.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003404/12.34, allocations: 1.122 MB / 3.639 GB, free: 15.47 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003291/12.34, allocations: 0.7998 MB / 3.64 GB, free: 15.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/12.34, allocations: 11.09 kB / 3.64 GB, free: 15.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.0162/12.36, allocations: 2.863 MB / 3.643 GB, free: 15.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003328/12.36, allocations: 480.5 kB / 3.643 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/12.36, allocations: 11.47 kB / 3.643 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01866/12.38, allocations: 1.87 MB / 3.645 GB, free: 14.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/12.38, allocations: 250 kB / 3.646 GB, free: 14.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/12.39, allocations: 5.876 MB / 3.651 GB, free: 26.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/12.39, allocations: 187.3 kB / 3.651 GB, free: 26.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000401/12.39, allocations: 93.2 kB / 3.652 GB, free: 26.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/12.39, allocations: 7.688 kB / 3.652 GB, free: 26.48 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01548/12.41, allocations: 2.717 MB / 3.654 GB, free: 26.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.403e-05/12.41, allocations: 11.78 kB / 3.654 GB, free: 26.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01226/12.42, allocations: 1.366 MB / 3.656 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/12.42, allocations: 274.7 kB / 3.656 GB, free: 26.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/12.44, allocations: 5.633 MB / 3.661 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002814/12.44, allocations: 187.7 kB / 3.662 GB, free: 21.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/12.44, allocations: 85.69 kB / 3.662 GB, free: 21.92 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 (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.001387/12.44, allocations: 440.3 kB / 3.662 GB, free: 21.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/12.44, allocations: 126.4 kB / 3.662 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0156/12.46, allocations: 5.384 MB / 3.667 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.496e-05/12.46, allocations: 43.17 kB / 3.667 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/12.46, allocations: 0 / 3.667 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-05/12.46, allocations: 6.562 kB / 3.667 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02193/12.48, allocations: 8.059 MB / 3.675 GB, free: 17.89 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.613e-05/12.48, allocations: 0 / 3.675 GB, free: 17.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/12.48, allocations: 159.2 kB / 3.675 GB, free: 17.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01571/12.5, allocations: 2.356 MB / 3.678 GB, free: 17.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000343/12.5, allocations: 35.31 kB / 3.678 GB, free: 17.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/12.51, allocations: 6.837 MB / 3.684 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/12.51, allocations: 0 / 3.684 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/12.52, allocations: 4.033 MB / 3.688 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/12.52, allocations: 438.4 kB / 3.689 GB, free: 9.961 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004632/12.52, allocations: 29.39 kB / 3.689 GB, free: 9.945 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003/12.53, allocations: 214 kB / 3.689 GB, free: 9.902 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/12.53, allocations: 124.1 kB / 3.689 GB, free: 9.879 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/12.53, allocations: 64.75 kB / 3.689 GB, free: 9.859 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001184/12.53, allocations: 0.607 MB / 3.69 GB, free: 9.602 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/12.53, allocations: 0 / 3.69 GB, free: 9.602 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009579/12.54, allocations: 2.024 MB / 3.692 GB, free: 9.004 MB / 474.7 MB 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.01298/12.55, allocations: 2.306 MB / 3.694 GB, free: 7.242 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01784/12.57, allocations: 3.569 MB / 3.698 GB, free: 4.156 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/12.57, allocations: 1.25 kB / 3.698 GB, free: 4.156 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007614/12.58, allocations: 1.654 MB / 3.699 GB, free: 2.711 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005075/12.58, allocations: 0.5142 MB / 3.7 GB, free: 2.328 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6322/13.21, allocations: 78.61 MB / 3.776 GB, free: 52.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/13.21, allocations: 1.443 MB / 3.778 GB, free: 52.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005865/13.22, allocations: 114.1 kB / 3.778 GB, free: 52.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.153e-06/13.22, allocations: 0 / 3.778 GB, free: 52.14 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).