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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7171/0.7171, allocations: 141.8 MB / 149.1 MB, free: 0.9766 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 169.3 kB / 181.9 MB, free: 196 kB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 221.4 MB / 436 MB, free: 5.035 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008856/0.0008856, allocations: 96.69 kB / 0.507 GB, free: 1.684 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001635/0.001635, allocations: 277.6 kB / 0.5885 GB, free: 46.75 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3499/0.3515, allocations: 89.62 MB / 0.676 GB, free: 59.52 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.5127, allocations: 82.78 MB / 0.7568 GB, free: 124 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6632/1.176, allocations: 384.1 MB / 1.132 GB, free: 5.188 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/1.176, allocations: 91.23 kB / 1.132 GB, free: 5.148 MB / 0.7138 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 3.344/4.521, allocations: 0.9902 GB / 2.122 GB, free: 130.4 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/4.521, allocations: 13.36 kB / 2.122 GB, free: 130.4 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002199/4.523, allocations: 357 kB / 2.122 GB, free: 130.3 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008136/4.531, allocations: 3.076 MB / 2.125 GB, free: 128.4 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/4.531, allocations: 80.09 kB / 2.126 GB, free: 128.4 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006383/4.532, allocations: 139.4 kB / 2.126 GB, free: 128.4 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004963/4.537, allocations: 2.262 MB / 2.128 GB, free: 127.3 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005681/4.543, allocations: 2.704 MB / 2.131 GB, free: 125.5 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-05/4.543, allocations: 3.906 kB / 2.131 GB, free: 125.5 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/4.543, allocations: 4 kB / 2.131 GB, free: 125.5 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-05/4.543, allocations: 71.98 kB / 2.131 GB, free: 125.4 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01616/4.559, allocations: 12.96 MB / 2.143 GB, free: 111.8 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/4.561, allocations: 1.503 MB / 2.145 GB, free: 110.3 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/4.563, allocations: 1.115 MB / 2.146 GB, free: 109.2 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006526/4.563, allocations: 0.7078 MB / 2.147 GB, free: 108.4 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/4.563, allocations: 58.25 kB / 2.147 GB, free: 108.3 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=126): time 3.497e-06/4.563, allocations: 0 / 2.147 GB, free: 108.3 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126): time 0.003031/4.566, allocations: 1.682 MB / 2.148 GB, free: 106.6 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/4.566, allocations: 145.5 kB / 2.148 GB, free: 106.4 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/4.569, allocations: 1.767 MB / 2.15 GB, free: 104.6 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002069/4.569, allocations: 37.11 kB / 2.15 GB, free: 104.6 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008636/4.57, allocations: 0.9363 MB / 2.151 GB, free: 103.6 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005235/4.57, allocations: 425.8 kB / 2.151 GB, free: 103.2 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/4.57, allocations: 0 / 2.151 GB, free: 103.2 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001053/4.571, allocations: 373.9 kB / 2.152 GB, free: 102.9 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008786/4.571, allocations: 0.6871 MB / 2.152 GB, free: 102.2 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/4.573, allocations: 1.203 MB / 2.154 GB, free: 100.7 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/4.574, allocations: 0.9481 MB / 2.155 GB, free: 99.82 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/4.574, allocations: 4 kB / 2.155 GB, free: 99.81 MB / 0.7138 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003924/4.578, allocations: 2.221 MB / 2.157 GB, free: 97.59 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.001151/4.579, allocations: 5.672 MB / 2.162 GB, free: 91.48 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/4.579, allocations: 12 kB / 2.162 GB, free: 91.47 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/4.581, allocations: 441 kB / 2.163 GB, free: 91.05 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/4.582, allocations: 358.4 kB / 2.163 GB, free: 90.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/4.585, allocations: 2.967 MB / 2.166 GB, free: 87.61 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/4.588, allocations: 275.1 kB / 2.166 GB, free: 87.36 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/4.588, allocations: 83.88 kB / 2.166 GB, free: 87.27 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/4.588, allocations: 4 kB / 2.166 GB, free: 87.27 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003101/4.591, allocations: 1.96 MB / 2.168 GB, free: 85.32 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/4.591, allocations: 16 kB / 2.168 GB, free: 85.31 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005266/4.592, allocations: 213 kB / 2.168 GB, free: 85.1 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/4.593, allocations: 378.7 kB / 2.169 GB, free: 84.73 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/4.596, allocations: 3.683 MB / 2.172 GB, free: 80.84 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/4.598, allocations: 239.5 kB / 2.173 GB, free: 80.62 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002032/4.599, allocations: 79.98 kB / 2.173 GB, free: 80.54 MB / 0.7138 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.000499/4.599, allocations: 155.3 kB / 2.173 GB, free: 80.38 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005567/4.6, allocations: 209.5 kB / 2.173 GB, free: 80.18 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/4.603, allocations: 1.954 MB / 2.175 GB, free: 78.24 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/4.603, allocations: 15.28 kB / 2.175 GB, free: 78.23 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/4.603, allocations: 6.375 kB / 2.175 GB, free: 78.22 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002026/4.605, allocations: 1.551 MB / 2.176 GB, free: 76.66 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00726/4.612, allocations: 4.257 MB / 2.181 GB, free: 72.35 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/4.613, allocations: 0 / 2.181 GB, free: 72.35 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009469/4.613, allocations: 219 kB / 2.181 GB, free: 72.14 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/4.615, allocations: 408.9 kB / 2.181 GB, free: 71.75 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.641e-05/4.615, allocations: 23.92 kB / 2.181 GB, free: 71.73 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/4.617, allocations: 2.894 MB / 2.184 GB, free: 68.71 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/4.617, allocations: 0 / 2.184 GB, free: 68.71 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003957/4.621, allocations: 2.962 MB / 2.187 GB, free: 65.67 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004767/4.626, allocations: 4.39 MB / 2.191 GB, free: 61.2 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/4.628, allocations: 0.5332 MB / 2.192 GB, free: 60.64 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004528/4.628, allocations: 15.62 kB / 2.192 GB, free: 60.63 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/4.63, allocations: 154.9 kB / 2.192 GB, free: 60.49 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/4.63, allocations: 95.81 kB / 2.192 GB, free: 60.4 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/4.63, allocations: 51.97 kB / 2.192 GB, free: 60.35 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001596/4.632, allocations: 1.341 MB / 2.193 GB, free: 58.99 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.006078/4.638, allocations: 1.593 MB / 2.195 GB, free: 57.39 MB / 0.7138 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.00115/4.639, allocations: 0.5606 MB / 2.196 GB, free: 56.93 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.004255/4.643, allocations: 3.14 MB / 2.199 GB, free: 53.78 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/4.643, allocations: 0 / 2.199 GB, free: 53.78 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.001104/4.644, allocations: 0.926 MB / 2.199 GB, free: 52.84 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005238/4.65, allocations: 1.029 MB / 2.2 GB, free: 51.91 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008088/4.658, allocations: 4.338 MB / 2.205 GB, free: 47.65 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00194/4.66, allocations: 2.387 MB / 2.207 GB, free: 45.23 MB / 0.7138 GB Notification: Performance of SimCode: time 1.453e-06/4.66, allocations: 0 / 2.207 GB, free: 45.23 MB / 0.7138 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)