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.8137/0.8137, allocations: 141.8 MB / 149.3 MB, free: 9.23 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.001368/0.001369, allocations: 183.9 kB / 182.2 MB, free: 9.445 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.488/1.488, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.001064/0.001064, allocations: 84.11 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001806/0.001806, allocations: 271.9 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.706e-05/2.7e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4505/0.4506, allocations: 82.78 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7881/1.239, allocations: 384.1 MB / 1.133 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/1.239, allocations: 92.12 kB / 1.133 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.559/4.798, allocations: 0.9826 GB / 2.115 GB, free: 124.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.994e-06/4.798, allocations: 0 / 2.115 GB, free: 124.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003163/4.798, allocations: 73.3 kB / 2.115 GB, free: 124.2 MB / 0.698 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.006251/4.805, allocations: 2.694 MB / 2.118 GB, free: 122.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/4.805, allocations: 11.81 kB / 2.118 GB, free: 122.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/4.806, allocations: 351.4 kB / 2.118 GB, free: 122.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005774/4.812, allocations: 3.028 MB / 2.121 GB, free: 120.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/4.812, allocations: 73.97 kB / 2.121 GB, free: 120.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003543/4.812, allocations: 140.3 kB / 2.121 GB, free: 120.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003581/4.816, allocations: 2.204 MB / 2.124 GB, free: 119.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004025/4.82, allocations: 2.661 MB / 2.126 GB, free: 117 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.019e-05/4.82, allocations: 6.812 kB / 2.126 GB, free: 116.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/4.82, allocations: 6.719 kB / 2.126 GB, free: 116.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.08e-05/4.82, allocations: 67.94 kB / 2.126 GB, free: 116.9 MB / 0.698 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.01408/4.834, allocations: 12.56 MB / 2.139 GB, free: 103.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/4.836, allocations: 1.568 MB / 2.14 GB, free: 102.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/4.838, allocations: 1.099 MB / 2.141 GB, free: 101 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006159/4.838, allocations: 0.7129 MB / 2.142 GB, free: 100.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/4.838, allocations: 51.88 kB / 2.142 GB, free: 100.1 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001536/4.84, allocations: 198.5 kB / 2.142 GB, free: 99.87 MB / 0.698 GB Notification: Performance of pre-optimization done (n=126): time 4.599e-06/4.84, allocations: 0 / 2.142 GB, free: 99.87 MB / 0.698 GB Notification: Performance of matching and sorting (n=126): time 0.002586/4.842, allocations: 1.641 MB / 2.144 GB, free: 98.21 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/4.843, allocations: 143.9 kB / 2.144 GB, free: 98.04 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/4.845, allocations: 1.732 MB / 2.146 GB, free: 96.27 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001724/4.845, allocations: 29.7 kB / 2.146 GB, free: 96.24 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009279/4.846, allocations: 1.26 MB / 2.147 GB, free: 94.96 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/4.846, allocations: 423.6 kB / 2.147 GB, free: 94.55 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.603e-05/4.846, allocations: 4 kB / 2.147 GB, free: 94.54 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.693e-05/4.846, allocations: 369.9 kB / 2.148 GB, free: 94.18 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007862/4.847, allocations: 0.6559 MB / 2.148 GB, free: 93.52 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009752/4.848, allocations: 1.176 MB / 2.149 GB, free: 92.14 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/4.849, allocations: 0.9126 MB / 2.15 GB, free: 91.25 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/4.849, allocations: 4 kB / 2.15 GB, free: 91.24 MB / 0.698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003092/4.852, allocations: 2.16 MB / 2.152 GB, free: 89.08 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009739/4.853, allocations: 5.697 MB / 2.158 GB, free: 82.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/4.853, allocations: 12 kB / 2.158 GB, free: 82.94 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/4.855, allocations: 423.6 kB / 2.158 GB, free: 82.53 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/4.856, allocations: 362.9 kB / 2.159 GB, free: 82.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/4.859, allocations: 2.99 MB / 2.162 GB, free: 79.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/4.861, allocations: 197.1 kB / 2.162 GB, free: 78.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/4.861, allocations: 83.78 kB / 2.162 GB, free: 78.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/4.861, allocations: 9.547 kB / 2.162 GB, free: 78.79 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002875/4.864, allocations: 1.912 MB / 2.164 GB, free: 76.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/4.864, allocations: 12 kB / 2.164 GB, free: 76.87 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005329/4.865, allocations: 213.7 kB / 2.164 GB, free: 76.67 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/4.866, allocations: 379.5 kB / 2.164 GB, free: 76.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/4.869, allocations: 3.759 MB / 2.168 GB, free: 72.32 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/4.871, allocations: 179.6 kB / 2.168 GB, free: 72.15 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/4.872, allocations: 87.98 kB / 2.168 GB, free: 72.06 MB / 0.698 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 (182): * Single equations (assignments): 180 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.000446/4.872, allocations: 152.4 kB / 2.168 GB, free: 71.91 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002582/4.875, allocations: 1.624 MB / 2.17 GB, free: 70.27 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/4.875, allocations: 197.6 kB / 2.17 GB, free: 70.07 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003074/4.878, allocations: 1.87 MB / 2.172 GB, free: 68.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/4.878, allocations: 19.95 kB / 2.172 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/4.878, allocations: 0 / 2.172 GB, free: 68.18 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001927/4.88, allocations: 1.5 MB / 2.173 GB, free: 66.66 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007198/4.887, allocations: 4.144 MB / 2.178 GB, free: 62.46 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/4.887, allocations: 0 / 2.178 GB, free: 62.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008802/4.888, allocations: 211.7 kB / 2.178 GB, free: 62.26 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/4.889, allocations: 404.2 kB / 2.178 GB, free: 61.86 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.386e-05/4.89, allocations: 23.92 kB / 2.178 GB, free: 61.84 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/4.892, allocations: 2.916 MB / 2.181 GB, free: 58.78 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/4.892, allocations: 3.938 kB / 2.181 GB, free: 58.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/4.896, allocations: 2.864 MB / 2.184 GB, free: 55.82 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/4.897, allocations: 0.5176 MB / 2.184 GB, free: 55.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002935/4.897, allocations: 11.98 kB / 2.184 GB, free: 55.28 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/4.899, allocations: 174.6 kB / 2.184 GB, free: 55.11 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/4.899, allocations: 105.2 kB / 2.185 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/4.899, allocations: 55.95 kB / 2.185 GB, free: 54.95 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001792/4.901, allocations: 1.313 MB / 2.186 GB, free: 53.62 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/4.901, allocations: 0 / 2.186 GB, free: 53.62 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.005331/4.906, allocations: 1.46 MB / 2.187 GB, free: 52.15 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.004659/4.911, allocations: 4.181 MB / 2.191 GB, free: 47.96 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004241/4.915, allocations: 3.096 MB / 2.194 GB, free: 44.85 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/4.915, allocations: 0 / 2.194 GB, free: 44.85 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001064/4.916, allocations: 0.9272 MB / 2.195 GB, free: 43.91 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005906/4.922, allocations: 1.066 MB / 2.196 GB, free: 42.89 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/4.933, allocations: 4.934 MB / 2.201 GB, free: 37.91 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/4.934, allocations: 2.206 MB / 2.203 GB, free: 35.67 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.004055/4.938, allocations: 1.389 MB / 2.205 GB, free: 34.33 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/4.939, allocations: 0.9796 MB / 2.206 GB, free: 33.35 MB / 0.698 GB Notification: Performance of SimCode: time 7.81e-07/4.939, allocations: 0 / 2.206 GB, free: 33.35 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5382/5.477, allocations: 66.33 MB / 2.27 GB, free: 124.9 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/5.478, allocations: 204.3 kB / 2.271 GB, free: 124.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.185/9.663, allocations: 0 / 2.271 GB, free: 124.6 MB / 0.698 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)