Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.543/1.543, allocations: 289.8 MB / 297.1 MB, free: 9.844 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 205.9 kB / 366.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.1 MB / 0.6256 GB, free: 2.156 MB / 446.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000929/0.000929, allocations: 84.89 kB / 0.7396 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.577/0.5779, allocations: 122.4 MB / 0.8591 GB, free: 156.9 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.8361, allocations: 116.3 MB / 0.9726 GB, free: 54.29 MB / 0.6387 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.987/1.823, allocations: 427.6 MB / 1.39 GB, free: 5.598 MB / 0.8887 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/1.823, allocations: 92.08 kB / 1.39 GB, free: 5.555 MB / 0.8887 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.687/5.51, allocations: 0.9732 GB / 2.363 GB, free: 165.5 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/5.51, allocations: 7.281 kB / 2.363 GB, free: 165.5 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001873/5.512, allocations: 354 kB / 2.364 GB, free: 165.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006345/5.519, allocations: 3.072 MB / 2.367 GB, free: 164.8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.089e-05/5.519, allocations: 77.44 kB / 2.367 GB, free: 164.8 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/5.519, allocations: 140.6 kB / 2.367 GB, free: 164.8 MB / 0.9825 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003649/5.523, allocations: 2.265 MB / 2.369 GB, free: 164.8 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003887/5.527, allocations: 2.696 MB / 2.372 GB, free: 164.5 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.618e-05/5.527, allocations: 5.969 kB / 2.372 GB, free: 164.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/5.527, allocations: 3.062 kB / 2.372 GB, free: 164.5 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.655e-05/5.527, allocations: 65.27 kB / 2.372 GB, free: 164.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/5.542, allocations: 12.95 MB / 2.385 GB, free: 158.1 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/5.545, allocations: 1.511 MB / 2.386 GB, free: 158 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/5.546, allocations: 1.116 MB / 2.387 GB, free: 157.9 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008524/5.547, allocations: 0.7183 MB / 2.388 GB, free: 157.2 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/5.547, allocations: 48.55 kB / 2.388 GB, free: 157.2 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=126): time 4.368e-06/5.547, allocations: 0 / 2.388 GB, free: 157.2 MB / 0.9825 GB Notification: Performance of matching and sorting (n=126): time 0.003778/5.551, allocations: 1.677 MB / 2.389 GB, free: 157 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/5.551, allocations: 152.4 kB / 2.39 GB, free: 156.8 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/5.554, allocations: 1.755 MB / 2.391 GB, free: 156.6 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001375/5.554, allocations: 32.36 kB / 2.391 GB, free: 156.6 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008323/5.555, allocations: 0.9359 MB / 2.392 GB, free: 156 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005095/5.555, allocations: 424.4 kB / 2.393 GB, free: 155.8 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.545e-05/5.555, allocations: 3.688 kB / 2.393 GB, free: 155.8 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000138/5.555, allocations: 374.3 kB / 2.393 GB, free: 155.4 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008725/5.556, allocations: 0.6816 MB / 2.394 GB, free: 155.4 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/5.557, allocations: 1.198 MB / 2.395 GB, free: 154.7 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/5.559, allocations: 0.9572 MB / 2.396 GB, free: 154.4 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.587e-06/5.559, allocations: 6.719 kB / 2.396 GB, free: 154.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003494/5.562, allocations: 2.223 MB / 2.398 GB, free: 153.6 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.001111/5.563, allocations: 5.677 MB / 2.404 GB, free: 147.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/5.563, allocations: 14.06 kB / 2.404 GB, free: 147.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/5.565, allocations: 446.1 kB / 2.404 GB, free: 147.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/5.566, allocations: 354 kB / 2.404 GB, free: 147.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/5.569, allocations: 2.963 MB / 2.407 GB, free: 145.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002334/5.572, allocations: 275.8 kB / 2.407 GB, free: 145.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/5.572, allocations: 79.8 kB / 2.408 GB, free: 145.1 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.181e-06/5.572, allocations: 3.906 kB / 2.408 GB, free: 145.1 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003429/5.575, allocations: 1.964 MB / 2.409 GB, free: 144.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/5.575, allocations: 11.03 kB / 2.41 GB, free: 144.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000543/5.576, allocations: 211.6 kB / 2.41 GB, free: 144.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/5.577, allocations: 373.8 kB / 2.41 GB, free: 144.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/5.581, allocations: 3.695 MB / 2.414 GB, free: 141.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/5.583, allocations: 238.3 kB / 2.414 GB, free: 141.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/5.584, allocations: 85.2 kB / 2.414 GB, free: 141.2 MB / 0.9825 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.000521/5.584, allocations: 159.9 kB / 2.414 GB, free: 141.1 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/5.585, allocations: 202.6 kB / 2.414 GB, free: 141 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/5.589, allocations: 1.95 MB / 2.416 GB, free: 140.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.262e-05/5.589, allocations: 14.89 kB / 2.416 GB, free: 140.3 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/5.589, allocations: 5.344 kB / 2.416 GB, free: 140.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002734/5.592, allocations: 1.554 MB / 2.418 GB, free: 139.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008883/5.6, allocations: 4.257 MB / 2.422 GB, free: 138.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/5.6, allocations: 0.875 kB / 2.422 GB, free: 138.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/5.602, allocations: 213 kB / 2.422 GB, free: 138.1 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/5.603, allocations: 410 kB / 2.423 GB, free: 138 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/5.603, allocations: 17.91 kB / 2.423 GB, free: 138 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/5.606, allocations: 2.903 MB / 2.425 GB, free: 135.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/5.606, allocations: 2.688 kB / 2.425 GB, free: 135.7 MB / 0.9825 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004863/5.611, allocations: 2.955 MB / 2.428 GB, free: 134.2 MB / 0.9825 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005865/5.617, allocations: 4.385 MB / 2.433 GB, free: 131.7 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/5.619, allocations: 0.5379 MB / 2.433 GB, free: 131.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/5.619, allocations: 14.83 kB / 2.433 GB, free: 131.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/5.62, allocations: 155 kB / 2.433 GB, free: 131.2 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/5.621, allocations: 90.61 kB / 2.433 GB, free: 131.2 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/5.621, allocations: 55.58 kB / 2.433 GB, free: 131.1 MB / 0.9825 GB Notification: Performance of sort global known variables: time 0.00194/5.623, allocations: 1.341 MB / 2.435 GB, free: 130.4 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.006649/5.629, allocations: 1.583 MB / 2.436 GB, free: 130 MB / 0.9825 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.001208/5.631, allocations: 0.5544 MB / 2.437 GB, free: 129.8 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004855/5.635, allocations: 3.135 MB / 2.44 GB, free: 128.2 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/5.636, allocations: 1.594 kB / 2.44 GB, free: 128.2 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/5.637, allocations: 0.9266 MB / 2.441 GB, free: 127.8 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005902/5.643, allocations: 1.032 MB / 2.442 GB, free: 127.3 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/5.654, allocations: 4.331 MB / 2.446 GB, free: 125.4 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002745/5.656, allocations: 2.398 MB / 2.448 GB, free: 123.9 MB / 0.9825 GB Notification: Performance of SimCode: time 1.864e-06/5.656, allocations: 0 / 2.448 GB, free: 123.9 MB / 0.9825 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)