Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 198.4 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 226.5 MB / 244.1 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000871/0.000871, allocations: 102.9 kB / 296.1 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.359/0.359, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3974, allocations: 62.95 MB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.061/6.458, allocations: 2.771 GB / 3.288 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/6.459, allocations: 88.09 kB / 3.288 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.862/9.32, allocations: 0.7858 GB / 4.074 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.875e-06/9.32, allocations: 2.031 kB / 4.074 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002044/9.321, allocations: 35.41 kB / 4.074 GB, free: 38.07 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.01289/9.334, allocations: 2.753 MB / 4.076 GB, free: 36.46 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/9.334, allocations: 6.844 kB / 4.076 GB, free: 36.46 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004122/9.338, allocations: 465.6 kB / 4.077 GB, free: 36.37 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003082/9.341, allocations: 1.022 MB / 4.078 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/9.341, allocations: 108.2 kB / 4.078 GB, free: 35.72 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000511/9.342, allocations: 124.7 kB / 4.078 GB, free: 35.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005889/9.348, allocations: 2.02 MB / 4.08 GB, free: 34.79 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.774e-05/9.348, allocations: 7.875 kB / 4.08 GB, free: 34.79 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/9.348, allocations: 57.59 kB / 4.08 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.867e-05/9.348, allocations: 59.56 kB / 4.08 GB, free: 34.74 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00489/9.353, allocations: 1.75 MB / 4.082 GB, free: 34.29 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.01141/9.364, allocations: 9.449 MB / 4.091 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003527/9.368, allocations: 1.192 MB / 4.092 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/9.369, allocations: 0.5133 MB / 4.093 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01576/9.385, allocations: 8.885 MB / 4.101 GB, free: 16.04 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/9.385, allocations: 53.75 kB / 4.101 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 4.208e-06/9.385, allocations: 0 / 4.101 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01599/9.401, allocations: 3.878 MB / 4.105 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/9.401, allocations: 115.8 kB / 4.105 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/9.403, allocations: 0.8611 MB / 4.106 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002699/9.403, allocations: 41.7 kB / 4.106 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006283/9.404, allocations: 0.6366 MB / 4.107 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005281/9.404, allocations: 310.5 kB / 4.107 GB, free: 10 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/9.405, allocations: 28 kB / 4.107 GB, free: 9.973 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001343/9.405, allocations: 349.9 kB / 4.107 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/9.406, allocations: 442.3 kB / 4.108 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/9.407, allocations: 0.8195 MB / 4.109 GB, free: 8.203 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/9.41, allocations: 1.29 MB / 4.11 GB, free: 6.754 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/9.41, allocations: 7.938 kB / 4.11 GB, free: 6.746 MB / 0.5417 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.00506/9.415, allocations: 1.795 MB / 4.112 GB, free: 4.926 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002591/9.415, allocations: 442.3 kB / 4.112 GB, free: 4.332 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/9.415, allocations: 12 kB / 4.112 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003562/9.419, allocations: 0.7483 MB / 4.113 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007813/9.42, allocations: 219.6 kB / 4.113 GB, free: 3.348 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004114/9.424, allocations: 2.916 MB / 4.116 GB, free: 336 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/9.426, allocations: 250.5 kB / 4.116 GB, free: 84 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002676/9.426, allocations: 71.97 kB / 4.116 GB, free: 12 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/9.426, allocations: 4 kB / 4.116 GB, free: 8 kB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005876/9.432, allocations: 1.645 MB / 4.118 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.553e-05/9.432, allocations: 15.94 kB / 4.118 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003612/9.436, allocations: 0.5722 MB / 4.118 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/9.437, allocations: 247.6 kB / 4.119 GB, free: 13.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/9.442, allocations: 2.784 MB / 4.121 GB, free: 10.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002076/9.444, allocations: 226.8 kB / 4.122 GB, free: 10.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/9.444, allocations: 67.97 kB / 4.122 GB, free: 10.34 MB / 0.5573 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.001374/9.446, allocations: 420.4 kB / 4.122 GB, free: 9.926 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005354/9.446, allocations: 110.7 kB / 4.122 GB, free: 9.816 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007618/9.454, allocations: 3.993 MB / 4.126 GB, free: 5.801 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-05/9.454, allocations: 39.94 kB / 4.126 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/9.454, allocations: 0 / 4.126 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/9.454, allocations: 3.984 kB / 4.126 GB, free: 5.758 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4232/9.877, allocations: 6.121 MB / 4.132 GB, free: 59.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/9.877, allocations: 1.594 kB / 4.132 GB, free: 59.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000636/9.878, allocations: 114.4 kB / 4.132 GB, free: 59.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00375/9.882, allocations: 1.295 MB / 4.133 GB, free: 59.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/9.882, allocations: 24.56 kB / 4.133 GB, free: 59.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004194/9.886, allocations: 3.824 MB / 4.137 GB, free: 57.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/9.886, allocations: 1.203 kB / 4.137 GB, free: 57.57 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/9.891, allocations: 2.806 MB / 4.14 GB, free: 57.33 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/9.892, allocations: 407.3 kB / 4.14 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/9.892, allocations: 19.88 kB / 4.14 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/9.893, allocations: 192.9 kB / 4.141 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/9.894, allocations: 84.44 kB / 4.141 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.001e-05/9.894, allocations: 38.61 kB / 4.141 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001067/9.895, allocations: 0.6717 MB / 4.141 GB, free: 57.09 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/9.895, allocations: 0 / 4.141 GB, free: 57.09 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00961/9.904, allocations: 1.953 MB / 4.143 GB, free: 57.05 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.014/9.918, allocations: 2.194 MB / 4.145 GB, free: 56.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008374/9.927, allocations: 2.281 MB / 4.148 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/9.927, allocations: 0 / 4.148 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002191/9.929, allocations: 1.03 MB / 4.149 GB, free: 56.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/9.933, allocations: 0.5847 MB / 4.149 GB, free: 56.81 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/9.939, allocations: 3.935 MB / 4.153 GB, free: 55.07 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008479/9.939, allocations: 1.356 MB / 4.154 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/9.94, allocations: 96.33 kB / 4.154 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of SimCode: time 9.92e-07/9.94, allocations: 2.844 kB / 4.154 GB, free: 54.34 MB / 0.5573 GB [CodegenCppCommon.tpl:1149:24-1149: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).