Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.007/2.007, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001086/0.001086, allocations: 185.2 kB / 487 MB, free: 5.344 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.44/1.44, allocations: 221.3 MB / 0.7819 GB, free: 1.301 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009551/0.000955, allocations: 98.05 kB / 0.9213 GB, free: 2.543 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6385/0.6395, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.9178, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.957, allocations: 424.9 MB / 1.62 GB, free: 14.48 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/1.957, allocations: 83.98 kB / 1.62 GB, free: 14.44 MB / 1.057 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.592/5.549, allocations: 1.002 GB / 2.622 GB, free: 262 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/5.549, allocations: 7.688 kB / 2.622 GB, free: 262 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/5.551, allocations: 351 kB / 2.623 GB, free: 261.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007223/5.558, allocations: 3.157 MB / 2.626 GB, free: 261.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/5.558, allocations: 77.91 kB / 2.626 GB, free: 261.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003851/5.559, allocations: 137.2 kB / 2.626 GB, free: 261.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003595/5.562, allocations: 2.271 MB / 2.628 GB, free: 261.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003985/5.566, allocations: 2.694 MB / 2.631 GB, free: 261.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.37e-05/5.566, allocations: 9.188 kB / 2.631 GB, free: 261.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002344/5.566, allocations: 3.031 kB / 2.631 GB, free: 261.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-05/5.567, allocations: 72.33 kB / 2.631 GB, free: 261.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01873/5.585, allocations: 12.96 MB / 2.644 GB, free: 254.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/5.588, allocations: 1.507 MB / 2.645 GB, free: 254.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/5.59, allocations: 1.122 MB / 2.646 GB, free: 254.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007367/5.59, allocations: 0.7152 MB / 2.647 GB, free: 254 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/5.59, allocations: 53.94 kB / 2.647 GB, free: 254 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 4.358e-06/5.59, allocations: 0 / 2.647 GB, free: 254 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.004084/5.594, allocations: 1.679 MB / 2.649 GB, free: 253.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/5.595, allocations: 147.1 kB / 2.649 GB, free: 253.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005198/5.6, allocations: 1.793 MB / 2.65 GB, free: 253.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0005643/5.6, allocations: 29.55 kB / 2.65 GB, free: 253.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001723/5.602, allocations: 0.9369 MB / 2.651 GB, free: 252.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001174/5.603, allocations: 425 kB / 2.652 GB, free: 252.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/5.604, allocations: 0 / 2.652 GB, free: 252.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002911/5.604, allocations: 374.5 kB / 2.652 GB, free: 252.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/5.606, allocations: 0.6837 MB / 2.653 GB, free: 252.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/5.607, allocations: 1.196 MB / 2.654 GB, free: 251.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/5.609, allocations: 0.9521 MB / 2.655 GB, free: 251.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.149e-05/5.609, allocations: 3.812 kB / 2.655 GB, free: 251.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004328/5.613, allocations: 2.231 MB / 2.657 GB, free: 251.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001299/5.615, allocations: 5.69 MB / 2.663 GB, free: 245.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.694e-05/5.615, allocations: 17.56 kB / 2.663 GB, free: 245.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/5.616, allocations: 438.8 kB / 2.663 GB, free: 245.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/5.618, allocations: 358.5 kB / 2.663 GB, free: 245.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003294/5.621, allocations: 2.959 MB / 2.666 GB, free: 243.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/5.624, allocations: 273.4 kB / 2.667 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003111/5.625, allocations: 84.78 kB / 2.667 GB, free: 243.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/5.625, allocations: 3.938 kB / 2.667 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003668/5.628, allocations: 1.955 MB / 2.669 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.322e-05/5.628, allocations: 23 kB / 2.669 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005442/5.629, allocations: 210.7 kB / 2.669 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/5.63, allocations: 375.4 kB / 2.669 GB, free: 243.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003436/5.634, allocations: 3.679 MB / 2.673 GB, free: 241 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/5.637, allocations: 240.5 kB / 2.673 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003853/5.637, allocations: 80.34 kB / 2.673 GB, free: 240.9 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.0007389/5.638, allocations: 157.4 kB / 2.673 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008375/5.639, allocations: 205.9 kB / 2.673 GB, free: 240.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004489/5.643, allocations: 1.962 MB / 2.675 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/5.643, allocations: 13.59 kB / 2.675 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/5.643, allocations: 0 / 2.675 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002472/5.646, allocations: 1.557 MB / 2.677 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009893/5.656, allocations: 4.274 MB / 2.681 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/5.656, allocations: 7.062 kB / 2.681 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009976/5.657, allocations: 209.5 kB / 2.681 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/5.658, allocations: 409.7 kB / 2.682 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/5.658, allocations: 22.8 kB / 2.682 GB, free: 240 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/5.661, allocations: 2.897 MB / 2.684 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/5.661, allocations: 3.531 kB / 2.684 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004115/5.665, allocations: 2.966 MB / 2.687 GB, free: 237.7 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005205/5.67, allocations: 4.39 MB / 2.692 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/5.672, allocations: 0.5381 MB / 2.692 GB, free: 236.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007192/5.673, allocations: 6.594 kB / 2.692 GB, free: 236.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/5.675, allocations: 163.9 kB / 2.692 GB, free: 236.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/5.675, allocations: 90.73 kB / 2.692 GB, free: 236.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002054/5.675, allocations: 60.45 kB / 2.692 GB, free: 236.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.002304/5.678, allocations: 1.36 MB / 2.694 GB, free: 236.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.008036/5.686, allocations: 1.584 MB / 2.695 GB, free: 236.2 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.001691/5.688, allocations: 0.5609 MB / 2.696 GB, free: 236.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005911/5.693, allocations: 3.147 MB / 2.699 GB, free: 235.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.178e-06/5.693, allocations: 0 / 2.699 GB, free: 235.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001337/5.695, allocations: 0.9211 MB / 2.7 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006007/5.701, allocations: 1.021 MB / 2.701 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/5.712, allocations: 4.361 MB / 2.705 GB, free: 234.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002553/5.715, allocations: 2.412 MB / 2.707 GB, free: 234 MB / 1.151 GB Notification: Performance of SimCode: time 6.92e-07/5.715, allocations: 0 / 2.707 GB, free: 234 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)