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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 185.1 kB / 17.06 MB, free: 5.074 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.782/1.782, allocations: 223.2 MB / 241 MB, free: 11.89 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.001015/0.001015, allocations: 94.09 kB / 292.1 MB, free: 10.93 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.4078/0.4078, allocations: 44.22 MB / 387.5 MB, free: 38.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003617, allocations: 8 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4468/0.4471, allocations: 61.9 MB / 0.5096 GB, free: 38.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.691/8.138, allocations: 2.77 GB / 3.28 GB, free: 88.91 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/8.139, allocations: 97.31 kB / 3.28 GB, free: 88.83 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.374/11.51, allocations: 0.83 GB / 4.11 GB, free: 43.88 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.635e-06/11.51, allocations: 3.938 kB / 4.11 GB, free: 43.88 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001174/11.51, allocations: 33.16 kB / 4.11 GB, free: 43.87 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.01521/11.53, allocations: 2.759 MB / 4.112 GB, free: 42.28 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/11.53, allocations: 12.03 kB / 4.112 GB, free: 42.28 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006746/11.53, allocations: 192.9 kB / 4.113 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003603/11.53, allocations: 468.5 kB / 4.113 GB, free: 42.06 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/11.53, allocations: 0.9904 MB / 4.114 GB, free: 41.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/11.53, allocations: 107.9 kB / 4.114 GB, free: 41.44 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/11.53, allocations: 120.6 kB / 4.114 GB, free: 41.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004285/11.54, allocations: 2.009 MB / 4.116 GB, free: 40.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/11.54, allocations: 7.906 kB / 4.116 GB, free: 40.51 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/11.54, allocations: 54.88 kB / 4.116 GB, free: 40.47 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-05/11.54, allocations: 53.47 kB / 4.116 GB, free: 40.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004099/11.54, allocations: 1.754 MB / 4.118 GB, free: 40.01 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.009518/11.55, allocations: 9.437 MB / 4.127 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003457/11.56, allocations: 1.198 MB / 4.128 GB, free: 32.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/11.57, allocations: 8.17 MB / 4.136 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.941e-05/11.57, allocations: 43.14 kB / 4.136 GB, free: 26.76 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 2.685e-06/11.57, allocations: 0 / 4.136 GB, free: 26.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01355/11.58, allocations: 3.699 MB / 4.14 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/11.59, allocations: 121.4 kB / 4.14 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/11.59, allocations: 0.7494 MB / 4.141 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/11.59, allocations: 41.67 kB / 4.141 GB, free: 25.13 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/11.59, allocations: 0.6501 MB / 4.142 GB, free: 24.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/11.59, allocations: 303.5 kB / 4.142 GB, free: 24.38 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/11.59, allocations: 23.91 kB / 4.142 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001016/11.59, allocations: 353.4 kB / 4.142 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/11.59, allocations: 445.7 kB / 4.143 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/11.59, allocations: 0.8083 MB / 4.143 GB, free: 23.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/11.59, allocations: 0.5243 MB / 4.144 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/11.59, allocations: 0 / 4.144 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004341/11.59, allocations: 1.791 MB / 4.146 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001179/11.6, allocations: 4.601 MB / 4.15 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/11.6, allocations: 14.88 kB / 4.15 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002618/11.6, allocations: 0.6322 MB / 4.151 GB, free: 17.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007088/11.6, allocations: 219.3 kB / 4.151 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/11.6, allocations: 2.908 MB / 4.154 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/11.61, allocations: 243.5 kB / 4.154 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/11.61, allocations: 77.48 kB / 4.154 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/11.61, allocations: 7.5 kB / 4.154 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004882/11.61, allocations: 1.647 MB / 4.156 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/11.61, allocations: 10.72 kB / 4.156 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00318/11.61, allocations: 0.5893 MB / 4.156 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/11.61, allocations: 236.5 kB / 4.157 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004388/11.62, allocations: 2.779 MB / 4.159 GB, free: 27.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/11.62, allocations: 220.7 kB / 4.16 GB, free: 27.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/11.62, allocations: 69.28 kB / 4.16 GB, free: 27.76 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.001043/11.62, allocations: 413.6 kB / 4.16 GB, free: 27.45 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/11.62, allocations: 113.7 kB / 4.16 GB, free: 27.39 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005867/11.63, allocations: 3.99 MB / 4.164 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.652e-05/11.63, allocations: 38.91 kB / 4.164 GB, free: 25.09 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/11.63, allocations: 0 / 4.164 GB, free: 25.09 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/11.63, allocations: 3.844 kB / 4.164 GB, free: 25.09 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008291/11.64, allocations: 6.129 MB / 4.17 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/11.64, allocations: 5.125 kB / 4.17 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000407/11.64, allocations: 117.4 kB / 4.17 GB, free: 19.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003034/11.64, allocations: 1.288 MB / 4.171 GB, free: 18.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.911e-05/11.64, allocations: 23.66 kB / 4.171 GB, free: 18.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004309/11.64, allocations: 3.833 MB / 4.175 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/11.64, allocations: 3.422 kB / 4.175 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004259/11.65, allocations: 2.806 MB / 4.178 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009453/11.65, allocations: 401.8 kB / 4.178 GB, free: 12 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/11.65, allocations: 22.67 kB / 4.178 GB, free: 11.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/11.65, allocations: 194.5 kB / 4.179 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/11.65, allocations: 85.45 kB / 4.179 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/11.65, allocations: 42.66 kB / 4.179 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001032/11.65, allocations: 0.6729 MB / 4.179 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/11.65, allocations: 0 / 4.179 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009078/11.66, allocations: 1.947 MB / 4.181 GB, free: 9.273 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.01568/11.68, allocations: 4.943 MB / 4.186 GB, free: 5.086 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008232/11.69, allocations: 2.32 MB / 4.188 GB, free: 3.121 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/11.69, allocations: 0 / 4.188 GB, free: 3.121 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002263/11.69, allocations: 1.042 MB / 4.189 GB, free: 2.215 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/11.69, allocations: 0.5822 MB / 4.19 GB, free: 1.797 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.413/12.1, allocations: 17.05 MB / 4.207 GB, free: 48.41 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009957/12.1, allocations: 1.401 MB / 4.208 GB, free: 47.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001926/12.11, allocations: 0.8922 MB / 4.209 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000786/12.11, allocations: 0.6254 MB / 4.209 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of SimCode: time 1.493e-06/12.11, allocations: 2.656 kB / 4.209 GB, free: 47.68 MB / 0.5573 GB [CodegenCFunctions.tpl:7265:24-7265: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).