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.7198/0.7198, allocations: 141.7 MB / 154.3 MB, free: 15.47 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 182.5 kB / 187.3 MB, free: 11.87 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.23/1.23, allocations: 221.3 MB / 441.4 MB, free: 4.582 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.0007821/0.0007821, allocations: 97.11 kB / 0.5124 GB, free: 24.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001672/0.001672, allocations: 280.4 kB / 0.5939 GB, free: 7.941 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.367e-05/3.378e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3343, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6235/0.9578, allocations: 384.8 MB / 1.14 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.9581, allocations: 93.56 kB / 1.14 GB, free: 5.711 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 3.04/3.998, allocations: 0.9874 GB / 2.128 GB, free: 141.5 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.92e-07/3.998, allocations: 3.094 kB / 2.128 GB, free: 141.5 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003251/3.999, allocations: 80.14 kB / 2.128 GB, free: 141.5 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.005607/4.004, allocations: 2.697 MB / 2.13 GB, free: 139.7 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/4.004, allocations: 11.31 kB / 2.13 GB, free: 139.7 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006787/4.005, allocations: 334.4 kB / 2.131 GB, free: 139.5 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001232/4.006, allocations: 356.2 kB / 2.131 GB, free: 139.3 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005122/4.011, allocations: 3.024 MB / 2.134 GB, free: 137.4 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/4.011, allocations: 177.7 kB / 2.134 GB, free: 137.4 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003891/4.012, allocations: 232.9 kB / 2.134 GB, free: 137.3 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004258/4.016, allocations: 2.991 MB / 2.137 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/4.016, allocations: 11.27 kB / 2.137 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002369/4.016, allocations: 97.56 kB / 2.137 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.416e-05/4.016, allocations: 70.55 kB / 2.137 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003172/4.02, allocations: 2.329 MB / 2.14 GB, free: 134.3 MB / 0.7136 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.01222/4.032, allocations: 12.99 MB / 2.152 GB, free: 123.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/4.034, allocations: 1.623 MB / 2.154 GB, free: 122.4 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/4.035, allocations: 1.113 MB / 2.155 GB, free: 121.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005568/4.035, allocations: 0.7124 MB / 2.156 GB, free: 120.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/4.036, allocations: 58.94 kB / 2.156 GB, free: 120.4 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001245/4.037, allocations: 227.2 kB / 2.156 GB, free: 120.2 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=126): time 4.859e-06/4.037, allocations: 0 / 2.156 GB, free: 120.2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=126): time 0.002584/4.039, allocations: 1.698 MB / 2.158 GB, free: 118.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/4.039, allocations: 141.5 kB / 2.158 GB, free: 118.3 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002634/4.042, allocations: 1.864 MB / 2.16 GB, free: 116.4 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002061/4.042, allocations: 65.14 kB / 2.16 GB, free: 116.4 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001071/4.043, allocations: 1.249 MB / 2.161 GB, free: 115.1 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000378/4.044, allocations: 449.5 kB / 2.161 GB, free: 114.7 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.658e-05/4.044, allocations: 28 kB / 2.161 GB, free: 114.6 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001099/4.044, allocations: 377.9 kB / 2.162 GB, free: 114.3 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009163/4.045, allocations: 0.6872 MB / 2.162 GB, free: 113.6 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/4.046, allocations: 1.216 MB / 2.164 GB, free: 112.1 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/4.047, allocations: 0.9283 MB / 2.164 GB, free: 111.2 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-06/4.047, allocations: 4 kB / 2.164 GB, free: 111.2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003034/4.05, allocations: 2.327 MB / 2.167 GB, free: 108.9 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008394/4.051, allocations: 5.703 MB / 2.172 GB, free: 102.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/4.051, allocations: 19.22 kB / 2.172 GB, free: 102.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/4.053, allocations: 476.3 kB / 2.173 GB, free: 102.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/4.054, allocations: 360.1 kB / 2.173 GB, free: 102 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/4.056, allocations: 3.089 MB / 2.176 GB, free: 98.72 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/4.058, allocations: 226.8 kB / 2.176 GB, free: 98.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/4.058, allocations: 83.97 kB / 2.176 GB, free: 98.43 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.612e-06/4.058, allocations: 4 kB / 2.176 GB, free: 98.43 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00246/4.061, allocations: 2.106 MB / 2.179 GB, free: 96.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/4.061, allocations: 14.84 kB / 2.179 GB, free: 96.32 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004289/4.061, allocations: 236.5 kB / 2.179 GB, free: 96.08 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/4.062, allocations: 374.4 kB / 2.179 GB, free: 95.72 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/4.065, allocations: 4.143 MB / 2.183 GB, free: 91.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/4.067, allocations: 222.5 kB / 2.183 GB, free: 91.12 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/4.067, allocations: 80.08 kB / 2.183 GB, free: 91.04 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 () * 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.0003009/4.067, allocations: 216.4 kB / 2.184 GB, free: 90.82 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/4.067, allocations: 208.3 kB / 2.184 GB, free: 90.62 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/4.07, allocations: 1.98 MB / 2.186 GB, free: 88.64 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/4.07, allocations: 12 kB / 2.186 GB, free: 88.63 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/4.07, allocations: 0 / 2.186 GB, free: 88.63 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001737/4.072, allocations: 1.6 MB / 2.187 GB, free: 87.02 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005666/4.077, allocations: 4.589 MB / 2.192 GB, free: 82.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/4.078, allocations: 0 / 2.192 GB, free: 82.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000801/4.078, allocations: 218.9 kB / 2.192 GB, free: 82.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/4.08, allocations: 437.9 kB / 2.192 GB, free: 81.75 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.868e-05/4.08, allocations: 46 kB / 2.193 GB, free: 81.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/4.082, allocations: 3 MB / 2.195 GB, free: 78.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/4.082, allocations: 0 / 2.195 GB, free: 78.55 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/4.085, allocations: 2.932 MB / 2.198 GB, free: 75.57 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009132/4.086, allocations: 0.5211 MB / 2.199 GB, free: 75.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/4.086, allocations: 39.94 kB / 2.199 GB, free: 74.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/4.087, allocations: 192 kB / 2.199 GB, free: 74.81 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/4.088, allocations: 93.16 kB / 2.199 GB, free: 74.72 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.48e-05/4.088, allocations: 59.95 kB / 2.199 GB, free: 74.66 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001545/4.089, allocations: 1.432 MB / 2.201 GB, free: 73.2 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/4.089, allocations: 0 / 2.201 GB, free: 73.2 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00315/4.092, allocations: 1.526 MB / 2.202 GB, free: 71.67 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) * 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.004006/4.096, allocations: 4.141 MB / 2.206 GB, free: 67.59 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003888/4.1, allocations: 3.303 MB / 2.209 GB, free: 64.25 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/4.1, allocations: 4.062 kB / 2.209 GB, free: 64.25 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/4.101, allocations: 0.9692 MB / 2.21 GB, free: 63.27 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004513/4.106, allocations: 1.13 MB / 2.211 GB, free: 62.18 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007067/4.113, allocations: 5.063 MB / 2.216 GB, free: 57.09 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/4.114, allocations: 2.214 MB / 2.218 GB, free: 54.84 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003271/4.117, allocations: 1.375 MB / 2.22 GB, free: 53.52 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009623/4.118, allocations: 0.9873 MB / 2.221 GB, free: 52.54 MB / 0.7136 GB Notification: Performance of SimCode: time 5.21e-07/4.118, allocations: 0 / 2.221 GB, free: 52.54 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4163/4.535, allocations: 73.41 MB / 2.292 GB, free: 143.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/4.535, allocations: 251.1 kB / 2.293 GB, free: 143.5 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.736/8.271, allocations: 1.719 kB / 2.293 GB, free: 143.5 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)