Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",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.79/0.79, allocations: 127.4 MB / 134.9 MB, free: 3.734 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001374/0.001374, allocations: 172.9 kB / 164.6 MB, free: 6.527 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.868/1.868, allocations: 205.2 MB / 399.5 MB, free: 5.945 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.001088/0.001088, allocations: 91.67 kB / 476.7 MB, free: 8.672 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.154e-05/2.156e-05, allocations: 4 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1844, allocations: 76.76 MB / 0.6216 GB, free: 15.58 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.464/1.648, allocations: 409.2 MB / 1.021 GB, free: 111.5 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.649, allocations: 95.19 kB / 1.021 GB, free: 111.5 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.171/5.819, allocations: 1.086 GB / 2.107 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.683e-06/5.819, allocations: 4 kB / 2.107 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0002336/5.82, allocations: 55.86 kB / 2.108 GB, free: 10.62 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.004848/5.824, allocations: 2.203 MB / 2.11 GB, free: 8.359 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/5.824, allocations: 8.031 kB / 2.11 GB, free: 8.352 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/5.826, allocations: 384.4 kB / 2.11 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/5.838, allocations: 4.85 MB / 2.115 GB, free: 3.074 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.381e-05/5.838, allocations: 40 kB / 2.115 GB, free: 3.035 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/5.838, allocations: 80 kB / 2.115 GB, free: 2.957 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001624/5.84, allocations: 0.8719 MB / 2.116 GB, free: 2.082 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/5.841, allocations: 1.221 MB / 2.117 GB, free: 0.75 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/5.841, allocations: 4 kB / 2.117 GB, free: 0.7461 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.745e-05/5.841, allocations: 3.938 kB / 2.117 GB, free: 0.7422 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/5.842, allocations: 36 kB / 2.117 GB, free: 0.707 MB / 0.6511 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.01025/5.852, allocations: 7.316 MB / 2.124 GB, free: 8.84 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/5.853, allocations: 1.163 MB / 2.125 GB, free: 7.562 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005563/5.854, allocations: 323.2 kB / 2.126 GB, free: 7.246 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004457/5.859, allocations: 1.97 MB / 2.128 GB, free: 5.078 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006454/5.859, allocations: 396.7 kB / 2.128 GB, free: 4.676 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008027/5.86, allocations: 67.27 kB / 2.128 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=65): time 3.286e-06/5.86, allocations: 0 / 2.128 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65): time 0.002339/5.862, allocations: 0.8854 MB / 2.129 GB, free: 3.691 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/5.862, allocations: 188.5 kB / 2.129 GB, free: 3.465 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/5.864, allocations: 1.211 MB / 2.13 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.213e-05/5.864, allocations: 33.7 kB / 2.13 GB, free: 2.219 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008885/5.865, allocations: 0.9228 MB / 2.131 GB, free: 1.285 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/5.866, allocations: 220.7 kB / 2.131 GB, free: 1.066 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.565e-05/5.866, allocations: 3.938 kB / 2.131 GB, free: 1.062 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001538/5.866, allocations: 349.9 kB / 2.132 GB, free: 0.7148 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/5.866, allocations: 290.5 kB / 2.132 GB, free: 440 kB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5698/6.436, allocations: 0.6834 MB / 2.133 GB, free: 63.75 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/6.438, allocations: 480.2 kB / 2.133 GB, free: 63.75 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-05/6.438, allocations: 7 kB / 2.133 GB, free: 63.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.004308/6.443, allocations: 1.125 MB / 2.134 GB, free: 63.71 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001126/6.444, allocations: 4.276 MB / 2.138 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-05/6.444, allocations: 12.86 kB / 2.138 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.764e-05/6.444, allocations: 17.38 kB / 2.138 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/6.445, allocations: 263.2 kB / 2.139 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-05/6.445, allocations: 23.81 kB / 2.139 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/6.447, allocations: 111.2 kB / 2.139 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002282/6.448, allocations: 54.67 kB / 2.139 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/6.448, allocations: 5.281 kB / 2.139 GB, free: 59.25 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002945/6.451, allocations: 0.8968 MB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-05/6.451, allocations: 11.84 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.511e-05/6.451, allocations: 17.06 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/6.452, allocations: 252.5 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.874e-05/6.452, allocations: 21.3 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/6.454, allocations: 103.4 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/6.454, allocations: 50.28 kB / 2.14 GB, free: 59.23 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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.0004004/6.454, allocations: 154.5 kB / 2.14 GB, free: 59.12 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002604/6.457, allocations: 0.8394 MB / 2.141 GB, free: 58.98 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000546/6.458, allocations: 166.6 kB / 2.141 GB, free: 58.91 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/6.461, allocations: 1.029 MB / 2.142 GB, free: 58.73 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/6.461, allocations: 12.78 kB / 2.142 GB, free: 58.73 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/6.461, allocations: 0 / 2.142 GB, free: 58.73 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001442/6.462, allocations: 0.7465 MB / 2.143 GB, free: 58.54 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.005443/6.468, allocations: 2.101 MB / 2.145 GB, free: 58.14 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/6.468, allocations: 0 / 2.145 GB, free: 58.14 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007433/6.468, allocations: 154.9 kB / 2.145 GB, free: 58.14 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001428/6.469, allocations: 23.27 kB / 2.145 GB, free: 58.14 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-05/6.469, allocations: 12.81 kB / 2.145 GB, free: 58.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008044/6.469, allocations: 1.251 MB / 2.146 GB, free: 56.95 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/6.469, allocations: 3.125 kB / 2.146 GB, free: 56.95 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/6.472, allocations: 1.378 MB / 2.148 GB, free: 56.59 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/6.473, allocations: 340.9 kB / 2.148 GB, free: 56.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005446/6.474, allocations: 3.031 kB / 2.148 GB, free: 56.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/6.475, allocations: 101.6 kB / 2.148 GB, free: 56.41 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/6.475, allocations: 50.08 kB / 2.148 GB, free: 56.41 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-05/6.475, allocations: 39.23 kB / 2.148 GB, free: 56.4 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.002052/6.477, allocations: 0.9088 MB / 2.149 GB, free: 56.29 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.61e-07/6.477, allocations: 0 / 2.149 GB, free: 56.29 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.005211/6.482, allocations: 1.06 MB / 2.15 GB, free: 56.23 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.vol.dynBal.U) * 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 (72): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.006392/6.489, allocations: 2.964 MB / 2.153 GB, free: 55.27 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003676/6.493, allocations: 1.426 MB / 2.155 GB, free: 55.06 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/6.493, allocations: 1.312 kB / 2.155 GB, free: 55.06 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0009613/6.494, allocations: 445.1 kB / 2.155 GB, free: 54.96 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0054/6.499, allocations: 0.7606 MB / 2.156 GB, free: 54.94 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/6.509, allocations: 2.781 MB / 2.158 GB, free: 54.23 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/6.512, allocations: 1.453 MB / 2.16 GB, free: 53.5 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.004135/6.516, allocations: 0.5495 MB / 2.16 GB, free: 53.48 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/6.517, allocations: 0.7318 MB / 2.161 GB, free: 53.48 MB / 0.6667 GB Notification: Performance of SimCode: time 1.172e-06/6.517, allocations: 1.375 kB / 2.161 GB, free: 53.48 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/6.63, allocations: 51.51 MB / 2.211 GB, free: 51.23 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/6.63, allocations: 172.3 kB / 2.212 GB, free: 51.04 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.922/10.55, allocations: 0 / 2.212 GB, free: 51.04 MB / 0.6667 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)