Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.37/1.37, allocations: 285.5 MB / 292.8 MB, free: 10.47 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 173.3 kB / 361.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.138/1.138, allocations: 205.1 MB / 0.6195 GB, free: 10.3 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008884/0.0008883, allocations: 99.78 kB / 0.7326 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2261/0.2271, allocations: 121.4 MB / 0.8511 GB, free: 2.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5339/0.761, allocations: 115.3 MB / 0.9638 GB, free: 78.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7121/1.473, allocations: 426.6 MB / 1.38 GB, free: 140.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/1.473, allocations: 87.22 kB / 1.38 GB, free: 140.4 MB / 0.8542 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.005/4.479, allocations: 0.9731 GB / 2.354 GB, free: 193.8 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/4.479, allocations: 11.56 kB / 2.354 GB, free: 193.8 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001556/4.48, allocations: 353.9 kB / 2.354 GB, free: 193.6 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006212/4.486, allocations: 3.08 MB / 2.357 GB, free: 193.3 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.946e-05/4.487, allocations: 73.81 kB / 2.357 GB, free: 193.3 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006136/4.487, allocations: 139.9 kB / 2.357 GB, free: 193.3 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003849/4.491, allocations: 2.262 MB / 2.359 GB, free: 193.2 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004501/4.496, allocations: 2.71 MB / 2.362 GB, free: 192.9 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-05/4.496, allocations: 0 / 2.362 GB, free: 192.9 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/4.496, allocations: 3.094 kB / 2.362 GB, free: 192.9 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/4.496, allocations: 71.11 kB / 2.362 GB, free: 192.9 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/4.509, allocations: 12.93 MB / 2.375 GB, free: 186.6 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/4.511, allocations: 1.509 MB / 2.376 GB, free: 186.5 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/4.512, allocations: 1.128 MB / 2.377 GB, free: 186.5 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005671/4.513, allocations: 0.7164 MB / 2.378 GB, free: 185.7 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/4.513, allocations: 55.91 kB / 2.378 GB, free: 185.7 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=126): time 3.436e-06/4.513, allocations: 3.828 kB / 2.378 GB, free: 185.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=126): time 0.002721/4.516, allocations: 1.672 MB / 2.38 GB, free: 185.5 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/4.516, allocations: 142 kB / 2.38 GB, free: 185.3 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/4.518, allocations: 1.762 MB / 2.382 GB, free: 185.1 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001482/4.518, allocations: 33.23 kB / 2.382 GB, free: 185.1 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006668/4.519, allocations: 0.938 MB / 2.382 GB, free: 184.5 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004434/4.519, allocations: 422 kB / 2.383 GB, free: 184.3 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.154e-05/4.519, allocations: 0 / 2.383 GB, free: 184.3 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/4.519, allocations: 373.9 kB / 2.383 GB, free: 184 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008166/4.52, allocations: 0.6851 MB / 2.384 GB, free: 184 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/4.521, allocations: 1.205 MB / 2.385 GB, free: 183.4 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/4.523, allocations: 0.948 MB / 2.386 GB, free: 183.4 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/4.523, allocations: 10.25 kB / 2.386 GB, free: 183.4 MB / 0.9792 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003213/4.526, allocations: 2.212 MB / 2.388 GB, free: 183.2 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009826/4.527, allocations: 5.676 MB / 2.394 GB, free: 177.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/4.527, allocations: 19.25 kB / 2.394 GB, free: 177.2 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/4.528, allocations: 443.8 kB / 2.394 GB, free: 177.2 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/4.53, allocations: 359.7 kB / 2.394 GB, free: 177.2 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/4.532, allocations: 2.958 MB / 2.397 GB, free: 175.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/4.534, allocations: 275.9 kB / 2.398 GB, free: 175.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/4.534, allocations: 84.03 kB / 2.398 GB, free: 175.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 7.934e-06/4.534, allocations: 6.562 kB / 2.398 GB, free: 175.3 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002904/4.537, allocations: 1.958 MB / 2.4 GB, free: 175.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/4.537, allocations: 14.62 kB / 2.4 GB, free: 175.2 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/4.538, allocations: 206.1 kB / 2.4 GB, free: 175.2 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/4.539, allocations: 374.5 kB / 2.4 GB, free: 175.2 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/4.542, allocations: 3.691 MB / 2.404 GB, free: 172.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/4.545, allocations: 240.1 kB / 2.404 GB, free: 172.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/4.545, allocations: 82.22 kB / 2.404 GB, free: 172.6 MB / 0.9792 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.0004894/4.545, allocations: 155.9 kB / 2.404 GB, free: 172.5 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006035/4.546, allocations: 201.2 kB / 2.404 GB, free: 172.4 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/4.55, allocations: 1.961 MB / 2.406 GB, free: 172.3 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/4.55, allocations: 14.53 kB / 2.406 GB, free: 172.3 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/4.55, allocations: 0 / 2.406 GB, free: 172.3 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002231/4.552, allocations: 1.553 MB / 2.408 GB, free: 172.2 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007619/4.56, allocations: 4.262 MB / 2.412 GB, free: 171.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/4.56, allocations: 2.625 kB / 2.412 GB, free: 171.7 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009187/4.561, allocations: 211.4 kB / 2.412 GB, free: 171.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/4.562, allocations: 413.7 kB / 2.413 GB, free: 171.7 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/4.562, allocations: 15.05 kB / 2.413 GB, free: 171.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/4.564, allocations: 2.904 MB / 2.416 GB, free: 169.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/4.564, allocations: 4.781 kB / 2.416 GB, free: 169.8 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003675/4.568, allocations: 2.961 MB / 2.418 GB, free: 169.4 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004656/4.573, allocations: 4.378 MB / 2.423 GB, free: 168.5 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/4.574, allocations: 0.5373 MB / 2.423 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005409/4.575, allocations: 10.14 kB / 2.423 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/4.576, allocations: 159.6 kB / 2.423 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/4.576, allocations: 90.39 kB / 2.423 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/4.577, allocations: 56.41 kB / 2.424 GB, free: 168.3 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002005/4.579, allocations: 1.338 MB / 2.425 GB, free: 168.2 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.006512/4.585, allocations: 1.579 MB / 2.426 GB, free: 167.9 MB / 0.9792 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.001158/4.586, allocations: 0.5644 MB / 2.427 GB, free: 167.8 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.004483/4.591, allocations: 3.137 MB / 2.43 GB, free: 167.4 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/4.591, allocations: 0 / 2.43 GB, free: 167.4 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001148/4.592, allocations: 0.9277 MB / 2.431 GB, free: 167.3 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/4.597, allocations: 1.027 MB / 2.432 GB, free: 167.3 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008434/4.605, allocations: 4.333 MB / 2.436 GB, free: 166.4 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002407/4.608, allocations: 2.389 MB / 2.438 GB, free: 165.7 MB / 0.9792 GB Notification: Performance of SimCode: time 9.12e-07/4.608, allocations: 3.906 kB / 2.438 GB, free: 165.7 MB / 0.9792 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)