Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7651/0.7651, allocations: 127.3 MB / 139.8 MB, free: 15.45 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.00105, allocations: 180.9 kB / 169.7 MB, free: 1.715 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.1 MB / 404.5 MB, free: 1.57 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008639/0.000864, allocations: 90.17 kB / 481.8 MB, free: 4.223 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.504e-05/3.505e-05, allocations: 0 / 0.5533 GB, free: 54.73 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1825, allocations: 76.76 MB / 0.6282 GB, free: 9.906 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.449/1.632, allocations: 416.6 MB / 1.035 GB, free: 99.04 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/1.632, allocations: 92.02 kB / 1.035 GB, free: 99 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.207/5.839, allocations: 1.123 GB / 2.158 GB, free: 3.723 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.104e-06/5.839, allocations: 0 / 2.158 GB, free: 3.723 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002541/5.839, allocations: 54.44 kB / 2.158 GB, free: 3.672 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.005361/5.845, allocations: 2.101 MB / 2.16 GB, free: 1.531 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/5.845, allocations: 12.03 kB / 2.16 GB, free: 1.52 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002984/5.845, allocations: 169.3 kB / 2.16 GB, free: 1.344 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/5.848, allocations: 457 kB / 2.161 GB, free: 0.8945 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5408/6.388, allocations: 2.38 MB / 2.163 GB, free: 68.46 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/6.389, allocations: 93.58 kB / 2.163 GB, free: 68.46 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003983/6.389, allocations: 132 kB / 2.163 GB, free: 68.45 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003754/6.393, allocations: 1.308 MB / 2.165 GB, free: 68.13 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/6.393, allocations: 5.875 kB / 2.165 GB, free: 68.13 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/6.393, allocations: 49.88 kB / 2.165 GB, free: 68.13 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.989e-05/6.393, allocations: 34.16 kB / 2.165 GB, free: 68.13 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002687/6.396, allocations: 0.8709 MB / 2.166 GB, free: 68.11 MB / 0.6667 GB Warning: The model contains alias variables with conflicting start and/or 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.01136/6.407, allocations: 7.258 MB / 2.173 GB, free: 63.71 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/6.409, allocations: 1.134 MB / 2.174 GB, free: 63.12 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005238/6.409, allocations: 295.5 kB / 2.174 GB, free: 63.11 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004739/6.414, allocations: 2.713 MB / 2.177 GB, free: 61.39 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000769/6.415, allocations: 393.9 kB / 2.177 GB, free: 61.33 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008553/6.416, allocations: 93.14 kB / 2.177 GB, free: 61.31 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=57): time 3.557e-06/6.416, allocations: 0 / 2.177 GB, free: 61.31 MB / 0.6667 GB Notification: Performance of matching and sorting (n=57): time 0.001778/6.418, allocations: 0.7654 MB / 2.178 GB, free: 61.07 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/6.418, allocations: 191.5 kB / 2.178 GB, free: 60.86 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/6.42, allocations: 1.368 MB / 2.179 GB, free: 60.68 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001177/6.42, allocations: 42.61 kB / 2.179 GB, free: 60.65 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001031/6.421, allocations: 0.9288 MB / 2.18 GB, free: 60.39 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/6.422, allocations: 205.5 kB / 2.181 GB, free: 60.29 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.188e-05/6.422, allocations: 19.19 kB / 2.181 GB, free: 60.29 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001592/6.422, allocations: 347.1 kB / 2.181 GB, free: 59.98 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005843/6.422, allocations: 274.4 kB / 2.181 GB, free: 59.98 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008117/6.423, allocations: 0.7331 MB / 2.182 GB, free: 59.43 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007291/6.424, allocations: 418.9 kB / 2.182 GB, free: 59.39 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/6.424, allocations: 3.188 kB / 2.182 GB, free: 59.39 MB / 0.6667 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002573/6.427, allocations: 1.136 MB / 2.183 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001292/6.428, allocations: 5.01 MB / 2.188 GB, free: 53.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/6.428, allocations: 16.83 kB / 2.188 GB, free: 53.99 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.496e-05/6.428, allocations: 19.62 kB / 2.188 GB, free: 53.99 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/6.429, allocations: 258.1 kB / 2.189 GB, free: 53.99 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.253e-05/6.429, allocations: 26.48 kB / 2.189 GB, free: 53.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/6.431, allocations: 123.8 kB / 2.189 GB, free: 53.98 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/6.431, allocations: 63.45 kB / 2.189 GB, free: 53.98 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/6.431, allocations: 2.938 kB / 2.189 GB, free: 53.98 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002033/6.433, allocations: 0.9489 MB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-05/6.433, allocations: 13.22 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.98e-05/6.433, allocations: 24.58 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/6.434, allocations: 242.9 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.778e-05/6.434, allocations: 28.44 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/6.436, allocations: 107.2 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/6.436, allocations: 56.12 kB / 2.19 GB, free: 53.93 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003513/6.437, allocations: 171.7 kB / 2.19 GB, free: 53.82 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/6.437, allocations: 168.6 kB / 2.19 GB, free: 53.73 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/6.439, allocations: 0.9964 MB / 2.191 GB, free: 53.55 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/6.439, allocations: 8.656 kB / 2.191 GB, free: 53.55 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/6.439, allocations: 5.562 kB / 2.191 GB, free: 53.55 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001184/6.441, allocations: 0.8382 MB / 2.192 GB, free: 53.18 MB / 0.6667 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.004815/6.445, allocations: 2.143 MB / 2.194 GB, free: 52.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/6.446, allocations: 5.578 kB / 2.194 GB, free: 52.73 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/6.446, allocations: 132.4 kB / 2.194 GB, free: 52.73 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001795/6.447, allocations: 20.83 kB / 2.194 GB, free: 52.73 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.186e-05/6.447, allocations: 22.59 kB / 2.194 GB, free: 52.73 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/6.448, allocations: 1.294 MB / 2.196 GB, free: 51.48 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/6.448, allocations: 3.953 kB / 2.196 GB, free: 51.47 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/6.45, allocations: 1.299 MB / 2.197 GB, free: 51.11 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/6.452, allocations: 340.2 kB / 2.197 GB, free: 50.92 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/6.452, allocations: 14.86 kB / 2.197 GB, free: 50.92 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/6.453, allocations: 111.8 kB / 2.197 GB, free: 50.91 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/6.453, allocations: 48.17 kB / 2.198 GB, free: 50.91 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/6.453, allocations: 29.36 kB / 2.198 GB, free: 50.91 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.002273/6.456, allocations: 1.098 MB / 2.199 GB, free: 50.75 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.5e-07/6.456, allocations: 0 / 2.199 GB, free: 50.75 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.004588/6.46, allocations: 1.001 MB / 2.2 GB, free: 50.71 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005385/6.466, allocations: 3.061 MB / 2.203 GB, free: 49.71 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003055/6.469, allocations: 1.444 MB / 2.204 GB, free: 49.5 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/6.469, allocations: 4.531 kB / 2.204 GB, free: 49.5 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008468/6.47, allocations: 437.6 kB / 2.204 GB, free: 49.39 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/6.474, allocations: 0.7428 MB / 2.205 GB, free: 49.38 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0073/6.481, allocations: 2.797 MB / 2.208 GB, free: 48.71 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002296/6.484, allocations: 1.413 MB / 2.209 GB, free: 63.99 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003074/6.487, allocations: 0.6095 MB / 2.21 GB, free: 63.97 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009407/6.488, allocations: 0.7031 MB / 2.211 GB, free: 63.96 MB / 0.6823 GB Notification: Performance of SimCode: time 1.282e-06/6.488, allocations: 3.5 kB / 2.211 GB, free: 63.96 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/6.601, allocations: 58.69 MB / 2.268 GB, free: 61.28 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/6.601, allocations: 213.7 kB / 2.268 GB, free: 61.05 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.302/10.9, allocations: 0 / 2.268 GB, free: 61.05 MB / 0.6823 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)