Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.898/0.898, allocations: 143.3 MB / 158.3 MB, free: 5.785 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 181 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.79/1.79, allocations: 223.2 MB / 447.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 92.31 kB / 0.5187 GB, free: 1.152 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002177/0.002177, allocations: 265.7 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.0005128, allocations: 11.25 kB / 0.6929 GB, free: 59.63 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2257, allocations: 82.79 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.392/1.618, allocations: 384.9 MB / 1.15 GB, free: 252.5 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003523/1.618, allocations: 95.88 kB / 1.15 GB, free: 252.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.678/5.297, allocations: 0.9899 GB / 2.14 GB, free: 97.16 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.893e-06/5.297, allocations: 0 / 2.14 GB, free: 97.16 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.000344/5.297, allocations: 83.36 kB / 2.14 GB, free: 97.09 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.008745/5.306, allocations: 3.166 MB / 2.143 GB, free: 93.88 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/5.306, allocations: 16.02 kB / 2.143 GB, free: 93.87 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/5.307, allocations: 335.8 kB / 2.143 GB, free: 93.53 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/5.308, allocations: 360 kB / 2.143 GB, free: 93.18 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006527/5.315, allocations: 3.058 MB / 2.146 GB, free: 90.11 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/5.315, allocations: 176.6 kB / 2.147 GB, free: 89.93 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003696/5.315, allocations: 239.9 kB / 2.147 GB, free: 89.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004735/5.32, allocations: 3.035 MB / 2.15 GB, free: 86.52 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.08e-05/5.32, allocations: 0 / 2.15 GB, free: 86.52 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/5.32, allocations: 96 kB / 2.15 GB, free: 86.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.416e-05/5.32, allocations: 71.92 kB / 2.15 GB, free: 86.36 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/5.324, allocations: 2.383 MB / 2.152 GB, free: 83.96 MB / 0.7136 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.01545/5.339, allocations: 12.98 MB / 2.165 GB, free: 70.11 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/5.342, allocations: 1.647 MB / 2.167 GB, free: 68.45 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006086/5.342, allocations: 0.7127 MB / 2.167 GB, free: 67.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/5.342, allocations: 47.56 kB / 2.167 GB, free: 67.53 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00179/5.344, allocations: 235 kB / 2.168 GB, free: 67.3 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 4.849e-06/5.344, allocations: 0 / 2.168 GB, free: 67.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.008866/5.353, allocations: 3.454 MB / 2.171 GB, free: 63.8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/5.353, allocations: 145.5 kB / 2.171 GB, free: 63.62 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/5.356, allocations: 1.882 MB / 2.173 GB, free: 61.71 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002018/5.356, allocations: 57.7 kB / 2.173 GB, free: 61.64 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/5.357, allocations: 1.246 MB / 2.174 GB, free: 60.38 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003777/5.357, allocations: 437.8 kB / 2.175 GB, free: 59.95 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.007e-05/5.357, allocations: 36 kB / 2.175 GB, free: 59.91 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001119/5.357, allocations: 369.9 kB / 2.175 GB, free: 59.55 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009238/5.358, allocations: 0.7105 MB / 2.176 GB, free: 58.84 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/5.36, allocations: 1.233 MB / 2.177 GB, free: 57.38 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/5.361, allocations: 0.9353 MB / 2.178 GB, free: 56.44 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/5.361, allocations: 4 kB / 2.178 GB, free: 56.44 MB / 0.7136 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003483/5.364, allocations: 2.359 MB / 2.18 GB, free: 54.06 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001628/5.366, allocations: 5.709 MB / 2.186 GB, free: 47.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/5.366, allocations: 12 kB / 2.186 GB, free: 47.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/5.368, allocations: 493.4 kB / 2.186 GB, free: 47.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/5.369, allocations: 343.5 kB / 2.186 GB, free: 47.06 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/5.372, allocations: 3.14 MB / 2.19 GB, free: 43.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/5.374, allocations: 227.5 kB / 2.19 GB, free: 43.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/5.375, allocations: 87.97 kB / 2.19 GB, free: 43.44 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/5.375, allocations: 4.781 kB / 2.19 GB, free: 43.43 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002975/5.378, allocations: 2.133 MB / 2.192 GB, free: 41.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/5.378, allocations: 16 kB / 2.192 GB, free: 41.28 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000549/5.378, allocations: 233.6 kB / 2.192 GB, free: 41.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/5.38, allocations: 374.9 kB / 2.193 GB, free: 40.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003662/5.383, allocations: 4.215 MB / 2.197 GB, free: 36.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/5.386, allocations: 223.5 kB / 2.197 GB, free: 35.99 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/5.386, allocations: 79.97 kB / 2.197 GB, free: 35.91 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.002164/5.388, allocations: 1.008 MB / 2.198 GB, free: 34.89 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006316/5.389, allocations: 205.5 kB / 2.198 GB, free: 34.69 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/5.392, allocations: 2.007 MB / 2.2 GB, free: 32.66 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/5.392, allocations: 15.98 kB / 2.2 GB, free: 32.65 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/5.392, allocations: 4 kB / 2.2 GB, free: 32.64 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001993/5.394, allocations: 1.621 MB / 2.202 GB, free: 31 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008246/5.402, allocations: 4.574 MB / 2.206 GB, free: 26.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/5.402, allocations: 4 kB / 2.206 GB, free: 26.34 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008872/5.403, allocations: 211.7 kB / 2.206 GB, free: 26.13 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/5.405, allocations: 434.6 kB / 2.207 GB, free: 25.7 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.365e-05/5.405, allocations: 35.86 kB / 2.207 GB, free: 25.67 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/5.407, allocations: 3.055 MB / 2.21 GB, free: 22.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/5.407, allocations: 0 / 2.21 GB, free: 22.46 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/5.411, allocations: 2.961 MB / 2.213 GB, free: 19.43 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/5.413, allocations: 0.5295 MB / 2.213 GB, free: 18.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003334/5.413, allocations: 28 kB / 2.213 GB, free: 18.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/5.415, allocations: 195.6 kB / 2.213 GB, free: 18.66 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/5.415, allocations: 101.1 kB / 2.214 GB, free: 18.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/5.415, allocations: 51.97 kB / 2.214 GB, free: 18.51 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002043/5.417, allocations: 1.463 MB / 2.215 GB, free: 17.03 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.8e-07/5.417, allocations: 0 / 2.215 GB, free: 17.03 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004691/5.422, allocations: 1.515 MB / 2.216 GB, free: 15.51 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.004909/5.427, allocations: 4.192 MB / 2.221 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.005017/5.432, allocations: 3.307 MB / 2.224 GB, free: 7.953 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/5.432, allocations: 0 / 2.224 GB, free: 7.953 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/5.433, allocations: 0.981 MB / 2.225 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005584/5.439, allocations: 1.136 MB / 2.226 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4694/5.908, allocations: 17.21 MB / 2.243 GB, free: 116.2 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002107/5.91, allocations: 2.211 MB / 2.245 GB, free: 115.4 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003784/5.914, allocations: 0.928 MB / 2.246 GB, free: 115.4 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/5.916, allocations: 1.024 MB / 2.247 GB, free: 115.4 MB / 0.7136 GB Notification: Performance of SimCode: time 1.523e-06/5.916, allocations: 0 / 2.247 GB, free: 115.4 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.129/6.045, allocations: 69.16 MB / 2.314 GB, free: 113.1 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/6.045, allocations: 282.9 kB / 2.315 GB, free: 112.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.729/10.77, allocations: 0 / 2.315 GB, free: 112.7 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)