Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002602/0.002607, allocations: 348 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.913/3.913, allocations: 341.5 MB / 358.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003515/0.003515, allocations: 230.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6593/0.6593, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004594/0.0004598, allocations: 8 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1308, allocations: 48.7 MB / 0.6067 GB, free: 4.629 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.765/7.896, allocations: 2.485 GB / 3.092 GB, free: 42.76 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/7.896, allocations: 86.58 kB / 3.092 GB, free: 42.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.3/12.2, allocations: 0.7549 GB / 3.847 GB, free: 30.69 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.855e-06/12.2, allocations: 1.031 kB / 3.847 GB, free: 30.69 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001819/12.2, allocations: 38.58 kB / 3.847 GB, free: 30.69 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.01328/12.21, allocations: 2.667 MB / 3.849 GB, free: 29.53 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/12.21, allocations: 10.34 kB / 3.849 GB, free: 29.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005083/12.22, allocations: 465.3 kB / 3.85 GB, free: 29.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/12.22, allocations: 0.9973 MB / 3.851 GB, free: 29.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/12.22, allocations: 105.7 kB / 3.851 GB, free: 29.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/12.22, allocations: 123.4 kB / 3.851 GB, free: 29.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008258/12.23, allocations: 1.99 MB / 3.853 GB, free: 28.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.939e-05/12.23, allocations: 6 kB / 3.853 GB, free: 28.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002972/12.23, allocations: 59.8 kB / 3.853 GB, free: 28.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001073/12.23, allocations: 57.27 kB / 3.853 GB, free: 28.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008418/12.24, allocations: 1.757 MB / 3.855 GB, free: 28.71 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.01561/12.25, allocations: 9.411 MB / 3.864 GB, free: 22.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005964/12.26, allocations: 1.177 MB / 3.865 GB, free: 22.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002026/12.26, allocations: 0.5178 MB / 3.865 GB, free: 22.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01311/12.27, allocations: 5.421 MB / 3.871 GB, free: 18.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.121e-05/12.27, allocations: 42.16 kB / 3.871 GB, free: 18.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=91): time 4.589e-06/12.27, allocations: 1.531 kB / 3.871 GB, free: 18.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.08455/12.36, allocations: 8.882 MB / 3.879 GB, free: 16.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.591e-05/12.36, allocations: 124.9 kB / 3.88 GB, free: 16.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/12.36, allocations: 0.8034 MB / 3.88 GB, free: 16.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005257/12.36, allocations: 47.39 kB / 3.88 GB, free: 16.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008652/12.36, allocations: 0.6501 MB / 3.881 GB, free: 16.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008463/12.36, allocations: 460.1 kB / 3.881 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/12.36, allocations: 31.91 kB / 3.882 GB, free: 15.91 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/12.36, allocations: 364.7 kB / 3.882 GB, free: 15.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004578/12.37, allocations: 0.6873 MB / 3.883 GB, free: 15.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004929/12.37, allocations: 1.124 MB / 3.884 GB, free: 15.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004856/12.38, allocations: 0.7981 MB / 3.884 GB, free: 15.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.537e-05/12.38, allocations: 2.625 kB / 3.884 GB, free: 15.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.02443/12.4, allocations: 2.928 MB / 3.887 GB, free: 14.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004393/12.4, allocations: 476.6 kB / 3.888 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.368e-05/12.4, allocations: 16.75 kB / 3.888 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02775/12.43, allocations: 1.864 MB / 3.89 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002371/12.43, allocations: 253.5 kB / 3.89 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01828/12.45, allocations: 5.875 MB / 3.896 GB, free: 26.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/12.46, allocations: 186.8 kB / 3.896 GB, free: 26.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006179/12.46, allocations: 92.98 kB / 3.896 GB, free: 26.12 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/12.46, allocations: 3.375 kB / 3.896 GB, free: 26.12 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02367/12.48, allocations: 2.726 MB / 3.898 GB, free: 26.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.564e-05/12.48, allocations: 13.28 kB / 3.898 GB, free: 26.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02256/12.5, allocations: 1.535 MB / 3.9 GB, free: 25.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002793/12.51, allocations: 284 kB / 3.9 GB, free: 25.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01732/12.52, allocations: 5.708 MB / 3.906 GB, free: 21.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004598/12.53, allocations: 191.1 kB / 3.906 GB, free: 21.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004974/12.53, allocations: 82.02 kB / 3.906 GB, free: 21.78 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.001804/12.53, allocations: 441.1 kB / 3.907 GB, free: 21.58 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006366/12.53, allocations: 128.4 kB / 3.907 GB, free: 21.52 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02367/12.56, allocations: 5.387 MB / 3.912 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.446e-05/12.56, allocations: 43.89 kB / 3.912 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/12.56, allocations: 3.125 kB / 3.912 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.125e-05/12.56, allocations: 9.25 kB / 3.912 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03211/12.59, allocations: 8.053 MB / 3.92 GB, free: 20.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.261e-05/12.59, allocations: 0.9375 kB / 3.92 GB, free: 20.01 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/12.59, allocations: 156.7 kB / 3.92 GB, free: 20.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02322/12.61, allocations: 2.356 MB / 3.922 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000425/12.61, allocations: 35.8 kB / 3.922 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/12.63, allocations: 6.843 MB / 3.929 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/12.63, allocations: 0 / 3.929 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/12.65, allocations: 4.032 MB / 3.933 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/12.65, allocations: 436.1 kB / 3.933 GB, free: 14.99 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/12.65, allocations: 27.53 kB / 3.933 GB, free: 14.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002966/12.65, allocations: 220.3 kB / 3.934 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004624/12.65, allocations: 123.5 kB / 3.934 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/12.65, allocations: 61.27 kB / 3.934 GB, free: 14.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001796/12.65, allocations: 0.6079 MB / 3.934 GB, free: 14.87 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.935e-06/12.65, allocations: 0 / 3.934 GB, free: 14.87 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01228/12.67, allocations: 2.027 MB / 3.936 GB, free: 14.62 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.01308/12.68, allocations: 2.29 MB / 3.939 GB, free: 14.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01699/12.7, allocations: 3.615 MB / 3.942 GB, free: 13.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/12.7, allocations: 4.062 kB / 3.942 GB, free: 13.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006375/12.7, allocations: 1.649 MB / 3.944 GB, free: 13.91 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005324/12.71, allocations: 0.5381 MB / 3.944 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/12.81, allocations: 42.07 MB / 3.985 GB, free: 14.89 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/12.81, allocations: 1.45 MB / 3.987 GB, free: 13.68 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003212/12.82, allocations: 0.919 MB / 3.988 GB, free: 13.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004725/12.82, allocations: 99.73 kB / 3.988 GB, free: 13.04 MB / 490.7 MB Notification: Performance of SimCode: time 1.062e-06/12.82, allocations: 0 / 3.988 GB, free: 13.04 MB / 490.7 MB [CodegenCFunctions.tpl:7255:24-7255: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).