Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.94/1.94, allocations: 209.2 MB / 224.8 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004163/0.0004164, allocations: 8 kB / 282.6 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2854, allocations: 48.71 MB / 331.3 MB, free: 6.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.961/6.246, allocations: 2.485 GB / 2.808 GB, free: 61.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/6.247, allocations: 84.14 kB / 2.808 GB, free: 61.92 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.808/10.05, allocations: 0.7939 GB / 3.602 GB, free: 26.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.544e-06/10.05, allocations: 0 / 3.602 GB, free: 26.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001178/10.05, allocations: 45 kB / 3.602 GB, free: 26.88 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.008976/10.06, allocations: 2.667 MB / 3.605 GB, free: 25.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/10.06, allocations: 7.375 kB / 3.605 GB, free: 25.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0043/10.07, allocations: 459.3 kB / 3.605 GB, free: 25.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/10.07, allocations: 0.9984 MB / 3.606 GB, free: 25.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/10.07, allocations: 110.2 kB / 3.606 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002347/10.07, allocations: 122.1 kB / 3.607 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00612/10.08, allocations: 1.985 MB / 3.609 GB, free: 24.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/10.08, allocations: 7.281 kB / 3.609 GB, free: 24.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/10.08, allocations: 54.94 kB / 3.609 GB, free: 24.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.215e-05/10.08, allocations: 58.36 kB / 3.609 GB, free: 24.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006331/10.08, allocations: 1.743 MB / 3.61 GB, free: 24.89 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.0118/10.1, allocations: 9.427 MB / 3.62 GB, free: 18.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004599/10.1, allocations: 1.18 MB / 3.621 GB, free: 18.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/10.11, allocations: 5.416 MB / 3.626 GB, free: 30.58 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/10.11, allocations: 44.88 kB / 3.626 GB, free: 30.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=91): time 3.796e-06/10.11, allocations: 0 / 3.626 GB, free: 30.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=134): time 0.04314/10.15, allocations: 8.355 MB / 3.634 GB, free: 29.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.454e-05/10.15, allocations: 119.6 kB / 3.634 GB, free: 28.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/10.16, allocations: 0.6975 MB / 3.635 GB, free: 28.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002883/10.16, allocations: 50.3 kB / 3.635 GB, free: 28.74 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004317/10.16, allocations: 0.6675 MB / 3.636 GB, free: 28.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000423/10.16, allocations: 453.5 kB / 3.636 GB, free: 28.05 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/10.16, allocations: 35.84 kB / 3.636 GB, free: 28.04 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/10.16, allocations: 368.5 kB / 3.637 GB, free: 27.73 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/10.16, allocations: 0.658 MB / 3.637 GB, free: 27.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/10.16, allocations: 1.094 MB / 3.638 GB, free: 27.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/10.16, allocations: 0.7684 MB / 3.639 GB, free: 27.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/10.16, allocations: 3.312 kB / 3.639 GB, free: 27.22 MB / 474.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01068/10.17, allocations: 2.652 MB / 3.642 GB, free: 27.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002559/10.18, allocations: 5.053 MB / 3.647 GB, free: 21.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.055e-05/10.18, allocations: 11.53 kB / 3.647 GB, free: 21.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008961/10.19, allocations: 1.374 MB / 3.648 GB, free: 21.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/10.19, allocations: 287.1 kB / 3.648 GB, free: 21.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/10.2, allocations: 7.26 MB / 3.655 GB, free: 16.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/10.2, allocations: 190 kB / 3.655 GB, free: 16.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/10.2, allocations: 94.98 kB / 3.656 GB, free: 16.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/10.2, allocations: 4.219 kB / 3.656 GB, free: 16.24 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/10.21, allocations: 2.534 MB / 3.658 GB, free: 16.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-05/10.21, allocations: 13.59 kB / 3.658 GB, free: 16.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006645/10.22, allocations: 1.121 MB / 3.659 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/10.22, allocations: 308 kB / 3.659 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/10.23, allocations: 7.095 MB / 3.666 GB, free: 10.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/10.23, allocations: 183.7 kB / 3.666 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002063/10.23, allocations: 85.66 kB / 3.667 GB, free: 10.59 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.001157/10.23, allocations: 449 kB / 3.667 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003713/10.23, allocations: 123.2 kB / 3.667 GB, free: 10.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/10.24, allocations: 5.268 MB / 3.672 GB, free: 9.895 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.207e-05/10.25, allocations: 42.95 kB / 3.672 GB, free: 9.895 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/10.25, allocations: 3.25 kB / 3.672 GB, free: 9.895 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.332e-05/10.25, allocations: 9.328 kB / 3.672 GB, free: 9.895 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/10.26, allocations: 7.899 MB / 3.68 GB, free: 24.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/10.26, allocations: 5.469 kB / 3.68 GB, free: 24.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009158/10.26, allocations: 172 kB / 3.68 GB, free: 24.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008308/10.27, allocations: 2.061 MB / 3.682 GB, free: 24.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002476/10.27, allocations: 45.84 kB / 3.682 GB, free: 24.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/10.28, allocations: 8.275 MB / 3.69 GB, free: 19.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.674e-06/10.28, allocations: 3.875 kB / 3.69 GB, free: 19.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/10.29, allocations: 4.037 MB / 3.694 GB, free: 18.58 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/10.3, allocations: 443.6 kB / 3.695 GB, free: 18.36 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/10.3, allocations: 25.8 kB / 3.695 GB, free: 18.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/10.3, allocations: 218.3 kB / 3.695 GB, free: 18.35 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/10.3, allocations: 124.9 kB / 3.695 GB, free: 18.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/10.3, allocations: 56.73 kB / 3.695 GB, free: 18.35 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001102/10.3, allocations: 0.6105 MB / 3.696 GB, free: 18.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.79e-07/10.3, allocations: 0 / 3.696 GB, free: 18.24 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008247/10.31, allocations: 2.025 MB / 3.698 GB, free: 18 MB / 490.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.01028/10.32, allocations: 2.298 MB / 3.7 GB, free: 17.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01305/10.33, allocations: 3.748 MB / 3.704 GB, free: 17.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/10.33, allocations: 0 / 3.704 GB, free: 17.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004999/10.34, allocations: 1.735 MB / 3.705 GB, free: 17.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/10.34, allocations: 0.5192 MB / 3.706 GB, free: 16.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5061/10.85, allocations: 78.6 MB / 3.783 GB, free: 52.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/10.85, allocations: 1.45 MB / 3.784 GB, free: 52.24 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004848/10.85, allocations: 110 kB / 3.784 GB, free: 52.24 MB / 490.7 MB Notification: Performance of SimCode: time 1.74e-06/10.85, allocations: 3.391 kB / 3.784 GB, free: 52.24 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).