Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_maint_7_0_x_Buildings_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 249.4 MB / 256.7 MB, free: 6.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 181.2 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.169/1.169, allocations: 205.2 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008413/0.0008413, allocations: 93.31 kB / 0.671 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3325/0.3334, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.518, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.026/1.544, allocations: 420 MB / 1.295 GB, free: 322.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/1.544, allocations: 88.02 kB / 1.295 GB, free: 322.1 MB / 0.8698 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 2.363/3.907, allocations: 0.9484 GB / 2.243 GB, free: 28.99 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/3.907, allocations: 8 kB / 2.243 GB, free: 28.98 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008801/3.908, allocations: 356 kB / 2.244 GB, free: 28.63 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005128/3.913, allocations: 3.066 MB / 2.247 GB, free: 25.56 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.87e-05/3.913, allocations: 75.91 kB / 2.247 GB, free: 25.48 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003007/3.913, allocations: 140 kB / 2.247 GB, free: 25.35 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003726/3.917, allocations: 2.258 MB / 2.249 GB, free: 23.08 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003489/3.921, allocations: 2.675 MB / 2.252 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/3.921, allocations: 4 kB / 2.252 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/3.921, allocations: 4 kB / 2.252 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.387e-05/3.921, allocations: 71.92 kB / 2.252 GB, free: 20.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/3.934, allocations: 12.9 MB / 2.264 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/3.936, allocations: 1.512 MB / 2.266 GB, free: 4.988 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/3.937, allocations: 1.125 MB / 2.267 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006009/3.938, allocations: 0.7087 MB / 2.268 GB, free: 2.996 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/3.938, allocations: 51.56 kB / 2.268 GB, free: 2.938 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=126): time 3.357e-06/3.938, allocations: 0 / 2.268 GB, free: 2.938 MB / 0.8698 GB Notification: Performance of matching and sorting (n=126): time 0.002614/3.94, allocations: 1.68 MB / 2.269 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/3.94, allocations: 145.5 kB / 2.269 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.302/4.242, allocations: 1.76 MB / 2.271 GB, free: 259.4 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005215/4.243, allocations: 29.48 kB / 2.271 GB, free: 259.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001093/4.244, allocations: 0.9336 MB / 2.272 GB, free: 259.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006256/4.245, allocations: 426.7 kB / 2.272 GB, free: 259 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.762e-05/4.245, allocations: 3 kB / 2.272 GB, free: 259 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001155/4.245, allocations: 374 kB / 2.273 GB, free: 258.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009108/4.246, allocations: 0.6801 MB / 2.274 GB, free: 258.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/4.247, allocations: 1.196 MB / 2.275 GB, free: 258.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/4.248, allocations: 0.9552 MB / 2.276 GB, free: 258.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/4.248, allocations: 3.844 kB / 2.276 GB, free: 258.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003499/4.252, allocations: 2.221 MB / 2.278 GB, free: 257.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009147/4.253, allocations: 5.68 MB / 2.283 GB, free: 252 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/4.253, allocations: 14.09 kB / 2.283 GB, free: 252 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/4.254, allocations: 416.7 kB / 2.284 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/4.255, allocations: 356.1 kB / 2.284 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/4.258, allocations: 2.96 MB / 2.287 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/4.26, allocations: 271.7 kB / 2.287 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/4.26, allocations: 76.73 kB / 2.287 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.243e-06/4.26, allocations: 3.906 kB / 2.287 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002814/4.263, allocations: 1.963 MB / 2.289 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/4.263, allocations: 13.31 kB / 2.289 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/4.264, allocations: 213.6 kB / 2.289 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/4.265, allocations: 377.7 kB / 2.29 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/4.268, allocations: 3.688 MB / 2.293 GB, free: 247.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002334/4.27, allocations: 237.9 kB / 2.294 GB, free: 247.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/4.27, allocations: 81.59 kB / 2.294 GB, free: 247.4 MB / 0.8698 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.0004731/4.271, allocations: 157.9 kB / 2.294 GB, free: 247.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004481/4.271, allocations: 199 kB / 2.294 GB, free: 247.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003388/4.275, allocations: 1.962 MB / 2.296 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/4.275, allocations: 9.562 kB / 2.296 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/4.275, allocations: 3.344 kB / 2.296 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002085/4.277, allocations: 1.545 MB / 2.297 GB, free: 247 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006564/4.283, allocations: 4.229 MB / 2.302 GB, free: 246.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/4.284, allocations: 0 / 2.302 GB, free: 246.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009195/4.284, allocations: 219.6 kB / 2.302 GB, free: 246.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/4.286, allocations: 389.1 kB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.337e-05/4.286, allocations: 19.64 kB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/4.288, allocations: 2.895 MB / 2.305 GB, free: 244.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/4.288, allocations: 3.812 kB / 2.305 GB, free: 244.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00358/4.292, allocations: 2.947 MB / 2.308 GB, free: 244.2 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004473/4.296, allocations: 4.385 MB / 2.312 GB, free: 243.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/4.297, allocations: 0.528 MB / 2.313 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002954/4.297, allocations: 4.781 kB / 2.313 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/4.299, allocations: 164.3 kB / 2.313 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/4.299, allocations: 92.47 kB / 2.313 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/4.299, allocations: 54.84 kB / 2.313 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001708/4.301, allocations: 1.336 MB / 2.314 GB, free: 243 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00574/4.307, allocations: 1.571 MB / 2.316 GB, free: 242.9 MB / 0.8698 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.001079/4.308, allocations: 0.5611 MB / 2.316 GB, free: 242.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004371/4.312, allocations: 3.138 MB / 2.319 GB, free: 242.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/4.312, allocations: 3.156 kB / 2.319 GB, free: 242.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/4.313, allocations: 0.9205 MB / 2.32 GB, free: 242.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005212/4.318, allocations: 1.02 MB / 2.321 GB, free: 242.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009731/4.328, allocations: 4.334 MB / 2.326 GB, free: 241.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002873/4.331, allocations: 2.389 MB / 2.328 GB, free: 240.8 MB / 0.8698 GB Notification: Performance of SimCode: time 1.453e-06/4.331, allocations: 0 / 2.328 GB, free: 240.8 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)