Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",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.348/1.348, 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.000903/0.000903, allocations: 181.2 kB / 361.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9788/0.9788, 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.000732/0.0007321, allocations: 92.42 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1697/0.1704, allocations: 121.5 MB / 0.8512 GB, free: 2.898 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4056/0.576, allocations: 115.3 MB / 0.9638 GB, free: 78.16 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.15/0.7261, allocations: 157.4 MB / 1.117 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.7263, allocations: 89.53 kB / 1.118 GB, free: 14.48 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.06883/0.7952, allocations: 29.66 MB / 1.147 GB, free: 0.6992 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.7952, allocations: 8 kB / 1.147 GB, free: 0.6914 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008701/0.7961, allocations: 147.1 kB / 1.147 GB, free: 0.5469 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006515/0.7968, allocations: 444.1 kB / 1.147 GB, free: 72 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.7968, allocations: 15.91 kB / 1.147 GB, free: 56 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.7969, allocations: 32 kB / 1.147 GB, free: 24 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007473/0.7977, allocations: 466.2 kB / 1.148 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008525/0.7985, allocations: 0.5931 MB / 1.148 GB, free: 14.95 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.7985, allocations: 0 / 1.148 GB, free: 14.95 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/0.7986, allocations: 8 kB / 1.148 GB, free: 14.94 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-05/0.7987, allocations: 43.09 kB / 1.148 GB, free: 14.9 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002963/0.8016, allocations: 2.724 MB / 1.151 GB, free: 11.96 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.8024, allocations: 0.5212 MB / 1.151 GB, free: 11.42 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003067/0.8027, allocations: 232 kB / 1.152 GB, free: 11.19 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004082/0.8031, allocations: 0.574 MB / 1.152 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004662/0.8036, allocations: 331 kB / 1.152 GB, free: 10.15 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.884e-06/0.8036, allocations: 0 / 1.152 GB, free: 10.15 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.000813/0.8044, allocations: 0.4985 MB / 1.153 GB, free: 9.641 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.8045, allocations: 89.53 kB / 1.153 GB, free: 9.535 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.8047, allocations: 290 kB / 1.153 GB, free: 9.246 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.8048, allocations: 29.7 kB / 1.153 GB, free: 9.211 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.8049, allocations: 228.6 kB / 1.154 GB, free: 8.98 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.8051, allocations: 153.8 kB / 1.154 GB, free: 8.828 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.893e-05/0.8051, allocations: 4 kB / 1.154 GB, free: 8.824 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.8052, allocations: 350.8 kB / 1.154 GB, free: 8.473 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.8055, allocations: 213.3 kB / 1.154 GB, free: 8.266 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.8059, allocations: 338.3 kB / 1.155 GB, free: 7.895 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003848/0.8063, allocations: 247.8 kB / 1.155 GB, free: 7.652 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.8063, allocations: 4 kB / 1.155 GB, free: 7.648 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000881/0.8072, allocations: 0.5933 MB / 1.155 GB, free: 7.051 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003193/0.8075, allocations: 1.055 MB / 1.156 GB, free: 5.914 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8075, allocations: 1.594 kB / 1.156 GB, free: 5.914 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.8076, allocations: 8 kB / 1.156 GB, free: 5.906 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.8081, allocations: 107.8 kB / 1.157 GB, free: 5.801 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.8081, allocations: 11.98 kB / 1.157 GB, free: 5.789 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.8086, allocations: 59.5 kB / 1.157 GB, free: 5.73 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.8086, allocations: 23.98 kB / 1.157 GB, free: 5.707 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.585e-06/0.8086, allocations: 4 kB / 1.157 GB, free: 5.703 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007338/0.8094, allocations: 477.1 kB / 1.157 GB, free: 5.238 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.8094, allocations: 4 kB / 1.157 GB, free: 5.234 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/0.8094, allocations: 4 kB / 1.157 GB, free: 5.23 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.8098, allocations: 107.8 kB / 1.157 GB, free: 5.125 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.8098, allocations: 4 kB / 1.157 GB, free: 5.121 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.8102, allocations: 55.89 kB / 1.157 GB, free: 5.066 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.8103, allocations: 20 kB / 1.157 GB, free: 5.047 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001211/0.8104, allocations: 126.8 kB / 1.157 GB, free: 4.918 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.8105, allocations: 51.42 kB / 1.157 GB, free: 4.867 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008207/0.8113, allocations: 0.5338 MB / 1.158 GB, free: 4.332 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.8113, allocations: 12.25 kB / 1.158 GB, free: 4.324 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.8113, allocations: 0 / 1.158 GB, free: 4.324 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.8113, allocations: 3.984 kB / 1.158 GB, free: 4.32 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/0.8119, allocations: 0.5525 MB / 1.159 GB, free: 3.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.8119, allocations: 0 / 1.159 GB, free: 3.73 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000481/0.8124, allocations: 87.88 kB / 1.159 GB, free: 3.645 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.8124, allocations: 8 kB / 1.159 GB, free: 3.637 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.294e-05/0.8124, allocations: 3.984 kB / 1.159 GB, free: 3.633 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.8124, allocations: 4 kB / 1.159 GB, free: 3.629 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.8124, allocations: 3.906 kB / 1.159 GB, free: 3.625 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0011/0.8136, allocations: 0.8576 MB / 1.159 GB, free: 2.742 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001543/0.8151, allocations: 1.556 MB / 1.161 GB, free: 1.148 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.8153, allocations: 180.4 kB / 1.161 GB, free: 0.9531 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.542e-05/0.8154, allocations: 3.984 kB / 1.161 GB, free: 0.9492 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.8157, allocations: 27.97 kB / 1.161 GB, free: 0.9219 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.8159, allocations: 52.36 kB / 1.161 GB, free: 0.8711 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.8159, allocations: 12.23 kB / 1.161 GB, free: 0.8594 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001942/0.8161, allocations: 224.6 kB / 1.161 GB, free: 0.6445 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00171/0.8178, allocations: 259 kB / 1.162 GB, free: 400 kB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002017/0.818, allocations: 157.4 kB / 1.162 GB, free: 232 kB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001112/0.8192, allocations: 0.8539 MB / 1.163 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.8192, allocations: 0 / 1.163 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.8195, allocations: 269.5 kB / 1.163 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.8202, allocations: 137.4 kB / 1.163 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.8216, allocations: 0.8121 MB / 1.164 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005782/0.8222, allocations: 0.9584 MB / 1.165 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of SimCode: time 3e-07/0.8222, allocations: 4 kB / 1.165 GB, free: 13.16 MB / 0.7761 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)