Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") 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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 183 kB / 18.09 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.3 MB / 242.1 MB, free: 11.63 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007471/0.0007471, allocations: 93.48 kB / 293.3 MB, free: 10.8 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3732/0.3732, allocations: 44.14 MB / 388.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003655, allocations: 12 kB / 461.1 MB, free: 1.344 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.318, allocations: 61.89 MB / 0.5107 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.857/6.175, allocations: 2.77 GB / 3.281 GB, free: 88.16 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/6.175, allocations: 91.94 kB / 3.281 GB, free: 88.08 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.031/9.207, allocations: 0.7857 GB / 4.067 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.874e-06/9.207, allocations: 3.5 kB / 4.067 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001593/9.207, allocations: 38.09 kB / 4.067 GB, free: 41.88 MB / 0.5417 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.012/9.219, allocations: 2.745 MB / 4.07 GB, free: 40.54 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/9.219, allocations: 7.688 kB / 4.07 GB, free: 40.54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003951/9.223, allocations: 473.6 kB / 4.07 GB, free: 40.46 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002938/9.226, allocations: 1.021 MB / 4.071 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/9.226, allocations: 104.8 kB / 4.071 GB, free: 40.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004235/9.226, allocations: 122.9 kB / 4.071 GB, free: 40.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005149/9.232, allocations: 2.027 MB / 4.073 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.178e-05/9.232, allocations: 4.75 kB / 4.073 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/9.232, allocations: 54.38 kB / 4.073 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/9.232, allocations: 60.39 kB / 4.073 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004363/9.236, allocations: 1.746 MB / 4.075 GB, free: 39.69 MB / 0.5417 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.01146/9.248, allocations: 9.451 MB / 4.084 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003191/9.251, allocations: 1.201 MB / 4.085 GB, free: 33.33 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/9.252, allocations: 0.5076 MB / 4.086 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/9.266, allocations: 8.154 MB / 4.094 GB, free: 28.35 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/9.266, allocations: 51.11 kB / 4.094 GB, free: 28.31 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 3.366e-06/9.266, allocations: 0 / 4.094 GB, free: 28.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01447/9.281, allocations: 3.882 MB / 4.098 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/9.281, allocations: 113.3 kB / 4.098 GB, free: 27.65 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/9.282, allocations: 0.8663 MB / 4.099 GB, free: 27.49 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001318/9.282, allocations: 43.58 kB / 4.099 GB, free: 27.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004731/9.283, allocations: 0.6333 MB / 4.099 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/9.283, allocations: 316.8 kB / 4.1 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/9.283, allocations: 21.88 kB / 4.1 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001111/9.283, allocations: 359.9 kB / 4.1 GB, free: 26.63 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/9.285, allocations: 441.6 kB / 4.1 GB, free: 26.62 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/9.286, allocations: 0.8165 MB / 4.101 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/9.288, allocations: 1.288 MB / 4.102 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/9.288, allocations: 5.125 kB / 4.102 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004613/9.293, allocations: 1.798 MB / 4.104 GB, free: 25.58 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003629/9.293, allocations: 441.9 kB / 4.105 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/9.293, allocations: 11.38 kB / 4.105 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003485/9.297, allocations: 0.7447 MB / 4.105 GB, free: 25.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006886/9.297, allocations: 219 kB / 4.106 GB, free: 25.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003992/9.301, allocations: 2.925 MB / 4.108 GB, free: 22.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/9.303, allocations: 246.1 kB / 4.109 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000213/9.304, allocations: 76.52 kB / 4.109 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/9.304, allocations: 5.094 kB / 4.109 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004993/9.309, allocations: 1.635 MB / 4.11 GB, free: 22.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.049e-05/9.309, allocations: 15.38 kB / 4.11 GB, free: 22.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/9.312, allocations: 0.581 MB / 4.111 GB, free: 22.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007871/9.312, allocations: 247.8 kB / 4.111 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/9.316, allocations: 2.785 MB / 4.114 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/9.318, allocations: 215.5 kB / 4.114 GB, free: 20.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/9.318, allocations: 67.22 kB / 4.114 GB, free: 20.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,2 8,2 8,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009847/9.319, allocations: 416.2 kB / 4.115 GB, free: 20.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000442/9.319, allocations: 120.6 kB / 4.115 GB, free: 20.22 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006239/9.325, allocations: 3.988 MB / 4.119 GB, free: 19.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.942e-05/9.325, allocations: 41.42 kB / 4.119 GB, free: 19.86 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/9.325, allocations: 3.938 kB / 4.119 GB, free: 19.85 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/9.325, allocations: 6.891 kB / 4.119 GB, free: 19.85 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008176/9.334, allocations: 6.13 MB / 4.125 GB, free: 17.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/9.334, allocations: 7.219 kB / 4.125 GB, free: 17.11 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000406/9.334, allocations: 115.9 kB / 4.125 GB, free: 17.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002965/9.337, allocations: 1.281 MB / 4.126 GB, free: 16.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-05/9.337, allocations: 31.17 kB / 4.126 GB, free: 16.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004462/9.342, allocations: 3.836 MB / 4.13 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/9.342, allocations: 0 / 4.13 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004187/9.346, allocations: 2.811 MB / 4.132 GB, free: 28.81 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009382/9.347, allocations: 406.1 kB / 4.133 GB, free: 28.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/9.347, allocations: 19.34 kB / 4.133 GB, free: 28.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/9.348, allocations: 195.5 kB / 4.133 GB, free: 28.47 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/9.349, allocations: 89.83 kB / 4.133 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-05/9.349, allocations: 34.95 kB / 4.133 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0009985/9.35, allocations: 0.6701 MB / 4.134 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.51e-07/9.35, allocations: 0 / 4.134 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00819/9.358, allocations: 1.946 MB / 4.136 GB, free: 27.74 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,$cse14.phase,$cse14.region,$cse16.phase,$cse16.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 (61): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 10,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01043/9.368, allocations: 2.191 MB / 4.138 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006954/9.375, allocations: 2.269 MB / 4.14 GB, free: 26.48 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/9.375, allocations: 0 / 4.14 GB, free: 26.48 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001985/9.377, allocations: 1.037 MB / 4.141 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/9.381, allocations: 0.5882 MB / 4.142 GB, free: 25.95 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005867/9.387, allocations: 3.9 MB / 4.146 GB, free: 23.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/9.388, allocations: 1.361 MB / 4.147 GB, free: 22.99 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00185/9.39, allocations: 0.9002 MB / 4.148 GB, free: 22.92 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/9.39, allocations: 88.53 kB / 4.148 GB, free: 22.91 MB / 0.5573 GB Notification: Performance of SimCode: time 6.22e-07/9.39, allocations: 0 / 4.148 GB, free: 22.91 MB / 0.5573 GB [CodegenCFunctions.tpl:7294:24-7294: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).