Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.979/1.979, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 189.2 kB / 490.8 MB, free: 1.945 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.3 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 89.38 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6215/0.6227, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.9259, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.986, allocations: 425.7 MB / 1.627 GB, free: 5.863 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/1.986, allocations: 91.81 kB / 1.627 GB, free: 5.816 MB / 1.042 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.098/5.084, allocations: 1.002 GB / 2.629 GB, free: 1.844 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/5.084, allocations: 15.98 kB / 2.629 GB, free: 1.828 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/5.085, allocations: 360 kB / 2.63 GB, free: 1.473 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4098/5.495, allocations: 3.151 MB / 2.633 GB, free: 386.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.958e-05/5.495, allocations: 72.47 kB / 2.633 GB, free: 386.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000439/5.496, allocations: 147.8 kB / 2.633 GB, free: 386.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003639/5.499, allocations: 2.257 MB / 2.635 GB, free: 386.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004112/5.503, allocations: 2.702 MB / 2.638 GB, free: 386.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.771e-05/5.504, allocations: 6.469 kB / 2.638 GB, free: 386.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000219/5.504, allocations: 3 kB / 2.638 GB, free: 386.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.146e-05/5.504, allocations: 66.94 kB / 2.638 GB, free: 386.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/5.518, allocations: 12.96 MB / 2.651 GB, free: 380.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/5.52, allocations: 1.511 MB / 2.652 GB, free: 380.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/5.522, allocations: 1.123 MB / 2.653 GB, free: 380.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006353/5.522, allocations: 0.7129 MB / 2.654 GB, free: 379.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/5.522, allocations: 51.69 kB / 2.654 GB, free: 379.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 3.747e-06/5.522, allocations: 0 / 2.654 GB, free: 379.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.002876/5.525, allocations: 1.683 MB / 2.656 GB, free: 379.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/5.525, allocations: 144.7 kB / 2.656 GB, free: 379.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002068/5.527, allocations: 1.796 MB / 2.658 GB, free: 378.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001489/5.528, allocations: 31.58 kB / 2.658 GB, free: 378.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008497/5.528, allocations: 0.939 MB / 2.658 GB, free: 378.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/5.529, allocations: 424.8 kB / 2.659 GB, free: 378.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/5.529, allocations: 0 / 2.659 GB, free: 378.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.962e-05/5.529, allocations: 370 kB / 2.659 GB, free: 377.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008294/5.53, allocations: 0.6856 MB / 2.66 GB, free: 377.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/5.531, allocations: 1.198 MB / 2.661 GB, free: 377.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/5.532, allocations: 0.9497 MB / 2.662 GB, free: 377.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/5.532, allocations: 3.969 kB / 2.662 GB, free: 377.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003667/5.536, allocations: 2.229 MB / 2.664 GB, free: 377.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009324/5.537, allocations: 5.687 MB / 2.67 GB, free: 371.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/5.537, allocations: 21.72 kB / 2.67 GB, free: 371.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/5.539, allocations: 437.8 kB / 2.67 GB, free: 371.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/5.54, allocations: 356.9 kB / 2.671 GB, free: 371.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/5.543, allocations: 2.956 MB / 2.673 GB, free: 369.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/5.546, allocations: 274.1 kB / 2.674 GB, free: 369.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/5.546, allocations: 86.53 kB / 2.674 GB, free: 369.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/5.546, allocations: 3.844 kB / 2.674 GB, free: 369.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003176/5.549, allocations: 1.96 MB / 2.676 GB, free: 369.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/5.549, allocations: 14.56 kB / 2.676 GB, free: 369.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/5.55, allocations: 216.9 kB / 2.676 GB, free: 369.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/5.551, allocations: 374.6 kB / 2.676 GB, free: 369.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/5.555, allocations: 3.672 MB / 2.68 GB, free: 366.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003003/5.558, allocations: 246.7 kB / 2.68 GB, free: 366.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/5.558, allocations: 81.55 kB / 2.68 GB, free: 366.6 MB / 1.151 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.0007192/5.559, allocations: 157.2 kB / 2.68 GB, free: 366.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/5.559, allocations: 204.2 kB / 2.68 GB, free: 366.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003867/5.563, allocations: 1.957 MB / 2.682 GB, free: 366.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/5.563, allocations: 17.56 kB / 2.682 GB, free: 366.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/5.563, allocations: 0 / 2.682 GB, free: 366.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002279/5.566, allocations: 1.554 MB / 2.684 GB, free: 366.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008224/5.574, allocations: 4.267 MB / 2.688 GB, free: 365.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/5.574, allocations: 3.344 kB / 2.688 GB, free: 365.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/5.575, allocations: 212.4 kB / 2.688 GB, free: 365.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/5.576, allocations: 413.8 kB / 2.689 GB, free: 365.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.443e-05/5.576, allocations: 21.89 kB / 2.689 GB, free: 365.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002394/5.579, allocations: 2.901 MB / 2.692 GB, free: 363.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/5.579, allocations: 3.656 kB / 2.692 GB, free: 363.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003743/5.583, allocations: 2.965 MB / 2.694 GB, free: 363.5 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004596/5.587, allocations: 4.4 MB / 2.699 GB, free: 362.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/5.588, allocations: 0.5349 MB / 2.699 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003111/5.589, allocations: 6.375 kB / 2.699 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/5.59, allocations: 162.7 kB / 2.699 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/5.59, allocations: 91.53 kB / 2.7 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/5.59, allocations: 57.77 kB / 2.7 GB, free: 362.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001724/5.592, allocations: 1.361 MB / 2.701 GB, free: 362.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005507/5.598, allocations: 1.579 MB / 2.702 GB, free: 362.1 MB / 1.151 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.00111/5.599, allocations: 0.5607 MB / 2.703 GB, free: 362 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004424/5.603, allocations: 3.134 MB / 2.706 GB, free: 361.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/5.603, allocations: 3.562 kB / 2.706 GB, free: 361.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001119/5.604, allocations: 0.927 MB / 2.707 GB, free: 361.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004631/5.609, allocations: 1.03 MB / 2.708 GB, free: 361.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008198/5.617, allocations: 4.354 MB / 2.712 GB, free: 360.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/5.619, allocations: 2.408 MB / 2.715 GB, free: 360 MB / 1.151 GB Notification: Performance of SimCode: time 9.12e-07/5.619, allocations: 0 / 2.715 GB, free: 360 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)