Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7467/0.7467, allocations: 127.4 MB / 134.6 MB, free: 4.102 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00138/0.00138, allocations: 185.2 kB / 164.4 MB, free: 6.906 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.1 MB / 399.1 MB, free: 6.102 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 94.42 kB / 476.3 MB, free: 8.859 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3705/0.3721, allocations: 82.89 MB / 0.5461 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.5942, allocations: 76.75 MB / 0.621 GB, free: 13.85 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.238/1.833, allocations: 387.5 MB / 0.9995 GB, free: 95.09 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/1.833, allocations: 94.03 kB / 0.9996 GB, free: 95.05 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 3.607/5.44, allocations: 0.9369 GB / 1.936 GB, free: 97.15 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/5.44, allocations: 7.875 kB / 1.936 GB, free: 97.15 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/5.443, allocations: 351.8 kB / 1.937 GB, free: 96.98 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009292/5.452, allocations: 3.396 MB / 1.94 GB, free: 96.5 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/5.452, allocations: 75.25 kB / 1.94 GB, free: 96.5 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009753/5.453, allocations: 140.5 kB / 1.94 GB, free: 96.5 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005145/5.458, allocations: 2.241 MB / 1.943 GB, free: 96.48 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004506/5.463, allocations: 2.635 MB / 1.945 GB, free: 96.14 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.073e-05/5.463, allocations: 7.781 kB / 1.945 GB, free: 96.14 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/5.463, allocations: 9.5 kB / 1.945 GB, free: 96.14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.973e-05/5.463, allocations: 68.56 kB / 1.945 GB, free: 96.14 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/5.481, allocations: 13.3 MB / 1.958 GB, free: 89.26 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/5.483, allocations: 1.461 MB / 1.96 GB, free: 89.13 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001682/5.485, allocations: 1.081 MB / 1.961 GB, free: 89.12 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007157/5.485, allocations: 0.5494 MB / 1.961 GB, free: 88.55 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/5.485, allocations: 46.38 kB / 1.961 GB, free: 88.52 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=121): time 3.717e-06/5.485, allocations: 0 / 1.961 GB, free: 88.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=121): time 0.003959/5.489, allocations: 1.713 MB / 1.963 GB, free: 88.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/5.49, allocations: 142.3 kB / 1.963 GB, free: 88.18 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003104/5.493, allocations: 1.718 MB / 1.965 GB, free: 87.95 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0002739/5.493, allocations: 32.39 kB / 1.965 GB, free: 87.92 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/5.494, allocations: 0.9457 MB / 1.966 GB, free: 87.38 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.00059/5.495, allocations: 414.8 kB / 1.966 GB, free: 87.12 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/5.495, allocations: 3.469 kB / 1.966 GB, free: 87.12 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000121/5.495, allocations: 373.7 kB / 1.966 GB, free: 86.81 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/5.496, allocations: 0.6755 MB / 1.967 GB, free: 86.81 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/5.497, allocations: 1.215 MB / 1.968 GB, free: 86.16 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/5.499, allocations: 0.9416 MB / 1.969 GB, free: 86.15 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/5.499, allocations: 3.75 kB / 1.969 GB, free: 86.15 MB / 0.6511 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003989/5.503, allocations: 2.224 MB / 1.971 GB, free: 85.97 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001557/5.504, allocations: 6.125 MB / 1.977 GB, free: 79.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/5.504, allocations: 15.25 kB / 1.977 GB, free: 79.54 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002889/5.507, allocations: 497.5 kB / 1.978 GB, free: 79.53 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/5.509, allocations: 356.2 kB / 1.978 GB, free: 79.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004445/5.513, allocations: 3.162 MB / 1.981 GB, free: 77.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003097/5.516, allocations: 276.2 kB / 1.982 GB, free: 77.62 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003208/5.517, allocations: 84.94 kB / 1.982 GB, free: 77.62 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/5.517, allocations: 3.469 kB / 1.982 GB, free: 77.62 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003512/5.52, allocations: 1.926 MB / 1.984 GB, free: 77.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/5.52, allocations: 14.28 kB / 1.984 GB, free: 77.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/5.521, allocations: 213.7 kB / 1.984 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/5.522, allocations: 382.5 kB / 1.984 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003512/5.526, allocations: 3.691 MB / 1.988 GB, free: 74.97 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/5.529, allocations: 232.9 kB / 1.988 GB, free: 74.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004976/5.53, allocations: 78.02 kB / 1.988 GB, free: 74.91 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (181): * Single equations (assignments): 179 * 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.0009486/5.531, allocations: 157.7 kB / 1.988 GB, free: 74.79 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/5.532, allocations: 194.9 kB / 1.988 GB, free: 74.69 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00556/5.538, allocations: 1.856 MB / 1.99 GB, free: 74.58 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/5.538, allocations: 14.31 kB / 1.99 GB, free: 74.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/5.538, allocations: 4.719 kB / 1.99 GB, free: 74.58 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0034/5.541, allocations: 1.506 MB / 1.992 GB, free: 74.47 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/5.553, allocations: 4.047 MB / 1.996 GB, free: 74.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/5.553, allocations: 3.469 kB / 1.996 GB, free: 74.05 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/5.554, allocations: 195.2 kB / 1.996 GB, free: 74.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003123/5.557, allocations: 439 kB / 1.996 GB, free: 74.03 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/5.558, allocations: 14.59 kB / 1.996 GB, free: 74.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006145/5.564, allocations: 3.097 MB / 1.999 GB, free: 72.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/5.564, allocations: 0 / 1.999 GB, free: 72.21 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006297/5.57, allocations: 2.788 MB / 2.002 GB, free: 71.12 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009159/5.58, allocations: 4.172 MB / 2.006 GB, free: 69.15 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00286/5.582, allocations: 0.5073 MB / 2.007 GB, free: 68.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/5.584, allocations: 8.625 kB / 2.007 GB, free: 68.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003285/5.587, allocations: 178.3 kB / 2.007 GB, free: 68.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003398/5.587, allocations: 84.34 kB / 2.007 GB, free: 68.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/5.587, allocations: 51.5 kB / 2.007 GB, free: 68.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.003732/5.591, allocations: 1.307 MB / 2.008 GB, free: 68.26 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01213/5.603, allocations: 1.546 MB / 2.01 GB, free: 67.85 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (96): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001759/5.605, allocations: 0.5568 MB / 2.01 GB, free: 67.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01017/5.615, allocations: 3.193 MB / 2.013 GB, free: 66.49 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/5.615, allocations: 1.406 kB / 2.013 GB, free: 66.49 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.004047/5.619, allocations: 1.01 MB / 2.014 GB, free: 66.12 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009938/5.629, allocations: 1.009 MB / 2.015 GB, free: 65.94 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/5.647, allocations: 4.285 MB / 2.019 GB, free: 64.52 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003418/5.651, allocations: 2.369 MB / 2.022 GB, free: 63.54 MB / 0.6511 GB Notification: Performance of SimCode: time 1.974e-06/5.651, allocations: 0 / 2.022 GB, free: 63.54 MB / 0.6511 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)