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.7402/0.7402, allocations: 127.4 MB / 134.9 MB, free: 3.738 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.001262/0.001262, allocations: 184.8 kB / 164.7 MB, free: 6.535 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.781/1.781, allocations: 205.2 MB / 399.5 MB, free: 5.867 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.0009288/0.0009289, allocations: 83.67 kB / 476.7 MB, free: 8.602 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.055e-05, allocations: 4 kB / 0.5467 GB, free: 60.4 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1796, allocations: 76.76 MB / 0.6216 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.482/1.661, allocations: 416.2 MB / 1.028 GB, free: 105.3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/1.662, allocations: 97.94 kB / 1.028 GB, free: 105.3 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.096/5.758, allocations: 1.117 GB / 2.145 GB, free: 1.672 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.044e-06/5.758, allocations: 0 / 2.145 GB, free: 1.672 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002448/5.758, allocations: 67.3 kB / 2.145 GB, free: 1.609 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.5437/6.302, allocations: 2.09 MB / 2.147 GB, free: 70.11 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 7.335e-05/6.302, allocations: 11.16 kB / 2.147 GB, free: 70.11 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003218/6.305, allocations: 459.2 kB / 2.148 GB, free: 69.99 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00797/6.313, allocations: 2.388 MB / 2.15 GB, free: 69.62 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.63e-05/6.314, allocations: 39.7 kB / 2.15 GB, free: 69.62 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/6.314, allocations: 76.97 kB / 2.15 GB, free: 69.62 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00193/6.316, allocations: 0.7945 MB / 2.151 GB, free: 69.62 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/6.318, allocations: 1.128 MB / 2.152 GB, free: 69.3 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/6.318, allocations: 5.719 kB / 2.152 GB, free: 69.3 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/6.318, allocations: 3.156 kB / 2.152 GB, free: 69.3 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.062e-05/6.318, allocations: 33.25 kB / 2.152 GB, free: 69.3 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.0104/6.329, allocations: 7.05 MB / 2.159 GB, free: 64.95 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/6.33, allocations: 1.119 MB / 2.16 GB, free: 64.36 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/6.331, allocations: 288.6 kB / 2.16 GB, free: 64.35 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004557/6.335, allocations: 2.68 MB / 2.163 GB, free: 62.63 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000574/6.336, allocations: 356.5 kB / 2.163 GB, free: 62.57 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006948/6.337, allocations: 70.36 kB / 2.163 GB, free: 62.55 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=57): time 4.187e-06/6.337, allocations: 0 / 2.163 GB, free: 62.55 MB / 0.6667 GB Notification: Performance of matching and sorting (n=57): time 0.005723/6.342, allocations: 1.378 MB / 2.165 GB, free: 62.32 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/6.343, allocations: 188.2 kB / 2.165 GB, free: 62.1 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/6.345, allocations: 1.266 MB / 2.166 GB, free: 61.93 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.359e-05/6.345, allocations: 30.27 kB / 2.166 GB, free: 61.9 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009095/6.346, allocations: 0.9146 MB / 2.167 GB, free: 61.64 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.000199/6.346, allocations: 195 kB / 2.167 GB, free: 61.54 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/6.346, allocations: 3.719 kB / 2.167 GB, free: 61.54 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001167/6.346, allocations: 350 kB / 2.168 GB, free: 61.23 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/6.347, allocations: 262.5 kB / 2.168 GB, free: 61.23 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006971/6.347, allocations: 0.7226 MB / 2.169 GB, free: 60.67 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004896/6.352, allocations: 1.003 MB / 2.17 GB, free: 60.66 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/6.352, allocations: 4.469 kB / 2.17 GB, free: 60.66 MB / 0.6667 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.006762/6.359, allocations: 1.659 MB / 2.171 GB, free: 60.53 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001041/6.36, allocations: 5.001 MB / 2.176 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.862e-05/6.36, allocations: 14.27 kB / 2.176 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.117e-05/6.36, allocations: 19.84 kB / 2.176 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/6.361, allocations: 253.8 kB / 2.176 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.01e-05/6.361, allocations: 28.38 kB / 2.176 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/6.363, allocations: 103.8 kB / 2.177 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/6.363, allocations: 55.77 kB / 2.177 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/6.363, allocations: 4.25 kB / 2.177 GB, free: 55.3 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005786/6.369, allocations: 1.431 MB / 2.178 GB, free: 55.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.919e-05/6.369, allocations: 14.44 kB / 2.178 GB, free: 55.28 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.541e-05/6.369, allocations: 20 kB / 2.178 GB, free: 55.28 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/6.37, allocations: 248.8 kB / 2.178 GB, free: 55.27 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.354e-05/6.37, allocations: 28 kB / 2.178 GB, free: 55.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/6.372, allocations: 87.03 kB / 2.178 GB, free: 55.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/6.372, allocations: 55.33 kB / 2.178 GB, free: 55.27 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.0003746/6.373, allocations: 145.2 kB / 2.179 GB, free: 55.16 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005632/6.378, allocations: 1.323 MB / 2.18 GB, free: 54.93 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/6.378, allocations: 167.5 kB / 2.18 GB, free: 54.84 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005654/6.384, allocations: 1.548 MB / 2.181 GB, free: 54.66 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/6.384, allocations: 6.688 kB / 2.182 GB, free: 54.66 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/6.384, allocations: 1.094 kB / 2.182 GB, free: 54.66 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004619/6.389, allocations: 1.394 MB / 2.183 GB, free: 54.29 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.007838/6.397, allocations: 2.563 MB / 2.185 GB, free: 53.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/6.397, allocations: 0 / 2.185 GB, free: 53.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007091/6.397, allocations: 131 kB / 2.185 GB, free: 53.9 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/6.398, allocations: 23.7 kB / 2.186 GB, free: 53.89 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.513e-05/6.398, allocations: 21.31 kB / 2.186 GB, free: 53.89 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008324/6.399, allocations: 1.252 MB / 2.187 GB, free: 52.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/6.399, allocations: 6.75 kB / 2.187 GB, free: 52.7 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005897/6.404, allocations: 1.866 MB / 2.189 GB, free: 52.34 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008504/6.405, allocations: 321.2 kB / 2.189 GB, free: 52.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/6.406, allocations: 11.42 kB / 2.189 GB, free: 52.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009169/6.406, allocations: 76.62 kB / 2.189 GB, free: 52.16 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/6.407, allocations: 51.41 kB / 2.189 GB, free: 52.16 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.853e-05/6.407, allocations: 22.55 kB / 2.189 GB, free: 52.16 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001416/6.408, allocations: 0.938 MB / 2.19 GB, free: 52.05 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.1e-07/6.408, allocations: 3.281 kB / 2.19 GB, free: 52.05 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.003863/6.412, allocations: 0.9849 MB / 2.191 GB, free: 52 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.008113/6.42, allocations: 3.557 MB / 2.194 GB, free: 51.02 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002439/6.423, allocations: 1.366 MB / 2.196 GB, free: 50.8 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/6.423, allocations: 2.938 kB / 2.196 GB, free: 50.8 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0007015/6.423, allocations: 418.9 kB / 2.196 GB, free: 50.7 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/6.427, allocations: 0.6393 MB / 2.197 GB, free: 50.68 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/6.433, allocations: 2.723 MB / 2.199 GB, free: 50.01 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/6.436, allocations: 1.416 MB / 2.201 GB, free: 65.29 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002965/6.439, allocations: 0.5821 MB / 2.201 GB, free: 65.27 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008617/6.44, allocations: 0.7059 MB / 2.202 GB, free: 65.26 MB / 0.6823 GB Notification: Performance of SimCode: time 1.673e-06/6.44, allocations: 0 / 2.202 GB, free: 65.26 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09953/6.539, allocations: 48.57 MB / 2.249 GB, free: 62.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/6.539, allocations: 181.7 kB / 2.25 GB, free: 62.61 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.87/10.41, allocations: 144 / 2.25 GB, free: 62.61 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)