Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.379/2.379, allocations: 234.9 MB / 250.5 MB, free: 9.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004373, allocations: 12 kB / 314.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.297, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.83/6.127, allocations: 2.596 GB / 2.956 GB, free: 35.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003702/6.128, allocations: 87.95 kB / 2.956 GB, free: 35.29 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.839/9.967, allocations: 0.8158 GB / 3.772 GB, free: 37.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.586e-06/9.967, allocations: 0 / 3.772 GB, free: 37.16 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001348/9.967, allocations: 36.44 kB / 3.772 GB, free: 37.16 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.01001/9.977, allocations: 2.738 MB / 3.775 GB, free: 36.02 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/9.977, allocations: 9.719 kB / 3.775 GB, free: 36.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004496/9.982, allocations: 472 kB / 3.775 GB, free: 35.94 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/9.984, allocations: 1.002 MB / 3.776 GB, free: 35.61 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/9.984, allocations: 110.4 kB / 3.776 GB, free: 35.61 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/9.985, allocations: 127.3 kB / 3.776 GB, free: 35.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006358/9.991, allocations: 1.978 MB / 3.778 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/9.991, allocations: 7.156 kB / 3.778 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/9.991, allocations: 57.75 kB / 3.778 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.679e-05/9.992, allocations: 54.62 kB / 3.779 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006923/9.998, allocations: 1.744 MB / 3.78 GB, free: 35.2 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.01229/10.01, allocations: 9.424 MB / 3.789 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004666/10.02, allocations: 1.179 MB / 3.791 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/10.03, allocations: 5.459 MB / 3.796 GB, free: 24.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/10.03, allocations: 49.38 kB / 3.796 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 4.936e-06/10.03, allocations: 7.016 kB / 3.796 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.04539/10.07, allocations: 8.351 MB / 3.804 GB, free: 23.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/10.07, allocations: 115.7 kB / 3.804 GB, free: 23.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/10.07, allocations: 0.7001 MB / 3.805 GB, free: 23.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002822/10.07, allocations: 46.92 kB / 3.805 GB, free: 23.06 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/10.07, allocations: 0.6639 MB / 3.806 GB, free: 22.65 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004889/10.07, allocations: 452.9 kB / 3.806 GB, free: 22.37 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/10.07, allocations: 31.12 kB / 3.806 GB, free: 22.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001179/10.07, allocations: 374.9 kB / 3.806 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/10.08, allocations: 0.663 MB / 3.807 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/10.08, allocations: 1.09 MB / 3.808 GB, free: 21.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/10.08, allocations: 0.7726 MB / 3.809 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/10.08, allocations: 3.938 kB / 3.809 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.0103/10.09, allocations: 2.652 MB / 3.811 GB, free: 21.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001003/10.09, allocations: 5.055 MB / 3.816 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.893e-05/10.09, allocations: 9.812 kB / 3.816 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009206/10.1, allocations: 1.372 MB / 3.818 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/10.1, allocations: 284.8 kB / 3.818 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/10.11, allocations: 7.267 MB / 3.825 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/10.12, allocations: 194.6 kB / 3.825 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/10.12, allocations: 90.83 kB / 3.825 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/10.12, allocations: 3.281 kB / 3.825 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009765/10.13, allocations: 2.535 MB / 3.828 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-05/10.13, allocations: 12.97 kB / 3.828 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006882/10.13, allocations: 1.117 MB / 3.829 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/10.14, allocations: 304.8 kB / 3.829 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/10.15, allocations: 7.101 MB / 3.836 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/10.15, allocations: 186.8 kB / 3.836 GB, free: 20.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/10.15, allocations: 83.78 kB / 3.836 GB, free: 20.9 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.001207/10.15, allocations: 437.6 kB / 3.837 GB, free: 20.71 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003965/10.15, allocations: 128.8 kB / 3.837 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/10.16, allocations: 5.271 MB / 3.842 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.325e-05/10.16, allocations: 40.14 kB / 3.842 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/10.16, allocations: 4.375 kB / 3.842 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.037e-05/10.16, allocations: 6.984 kB / 3.842 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/10.18, allocations: 7.909 MB / 3.85 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/10.18, allocations: 3.781 kB / 3.85 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/10.18, allocations: 174.7 kB / 3.85 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008825/10.19, allocations: 2.064 MB / 3.852 GB, free: 18.99 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/10.19, allocations: 40.83 kB / 3.852 GB, free: 18.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/10.2, allocations: 8.279 MB / 3.86 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.371e-06/10.2, allocations: 0 / 3.86 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/10.21, allocations: 4.043 MB / 3.864 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/10.21, allocations: 433.8 kB / 3.865 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003603/10.21, allocations: 26.34 kB / 3.865 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/10.21, allocations: 216.3 kB / 3.865 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003412/10.21, allocations: 131.2 kB / 3.865 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/10.21, allocations: 56.67 kB / 3.865 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001091/10.22, allocations: 0.611 MB / 3.866 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.119e-06/10.22, allocations: 3.938 kB / 3.866 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008577/10.22, allocations: 2.052 MB / 3.868 GB, free: 12.31 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.0104/10.23, allocations: 2.323 MB / 3.87 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01288/10.25, allocations: 3.742 MB / 3.874 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/10.25, allocations: 3.781 kB / 3.874 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004954/10.25, allocations: 1.727 MB / 3.875 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003422/10.26, allocations: 0.5229 MB / 3.876 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5345/10.79, allocations: 79.89 MB / 3.954 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/10.79, allocations: 1.447 MB / 3.955 GB, free: 61.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004671/10.79, allocations: 114.6 kB / 3.955 GB, free: 61.19 MB / 0.5261 GB Notification: Performance of SimCode: time 1.979e-06/10.79, allocations: 0 / 3.955 GB, free: 61.19 MB / 0.5261 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).