Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.132/2.132, allocations: 284.8 MB / 292.1 MB, free: 10.74 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.001566/0.001566, allocations: 185.2 kB / 360.3 MB, free: 7.5 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.1 MB / 0.6187 GB, free: 13.27 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.001223/0.001222, allocations: 95.11 kB / 0.7317 GB, free: 45.07 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2481/0.2494, allocations: 121.4 MB / 0.8502 GB, free: 3.879 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5673/0.8167, allocations: 115.2 MB / 0.9628 GB, free: 78.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2364/1.053, allocations: 157.3 MB / 1.116 GB, free: 15.42 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000368/1.054, allocations: 88.83 kB / 1.116 GB, free: 15.33 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.1218/1.175, allocations: 29.41 MB / 1.145 GB, free: 1.824 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/1.175, allocations: 8 kB / 1.145 GB, free: 1.816 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/1.177, allocations: 143.1 kB / 1.145 GB, free: 1.676 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/1.178, allocations: 451.1 kB / 1.146 GB, free: 1.191 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-05/1.178, allocations: 19.91 kB / 1.146 GB, free: 1.172 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/1.178, allocations: 29.12 kB / 1.146 GB, free: 1.145 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00139/1.179, allocations: 462.2 kB / 1.146 GB, free: 0.6953 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/1.181, allocations: 0.5931 MB / 1.147 GB, free: 72 kB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/1.181, allocations: 0 / 1.147 GB, free: 72 kB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-05/1.181, allocations: 8 kB / 1.147 GB, free: 64 kB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.719e-05/1.181, allocations: 44.97 kB / 1.147 GB, free: 20 kB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005841/1.187, allocations: 2.718 MB / 1.15 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/1.189, allocations: 0.5173 MB / 1.15 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/1.189, allocations: 233.6 kB / 1.15 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006759/1.19, allocations: 0.57 MB / 1.151 GB, free: 11.61 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009115/1.191, allocations: 337 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.216e-06/1.191, allocations: 3.938 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001608/1.193, allocations: 0.5025 MB / 1.152 GB, free: 10.75 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/1.193, allocations: 81.55 kB / 1.152 GB, free: 10.66 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005228/1.193, allocations: 286 kB / 1.152 GB, free: 10.37 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.193, allocations: 29.7 kB / 1.152 GB, free: 10.34 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/1.194, allocations: 232.5 kB / 1.152 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.000219/1.194, allocations: 157.8 kB / 1.152 GB, free: 9.945 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/1.194, allocations: 0 / 1.152 GB, free: 9.945 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001919/1.194, allocations: 346.8 kB / 1.153 GB, free: 9.598 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/1.195, allocations: 217.3 kB / 1.153 GB, free: 9.387 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007357/1.195, allocations: 342.7 kB / 1.153 GB, free: 9.008 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008134/1.196, allocations: 241.9 kB / 1.154 GB, free: 8.773 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.196, allocations: 4 kB / 1.154 GB, free: 8.77 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001738/1.198, allocations: 0.5959 MB / 1.154 GB, free: 8.168 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004725/1.199, allocations: 1.047 MB / 1.155 GB, free: 7.039 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/1.199, allocations: 4 kB / 1.155 GB, free: 7.035 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/1.199, allocations: 4 kB / 1.155 GB, free: 7.031 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/1.2, allocations: 115.8 kB / 1.155 GB, free: 6.918 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/1.2, allocations: 8 kB / 1.155 GB, free: 6.91 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009267/1.201, allocations: 55.55 kB / 1.155 GB, free: 6.855 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.515e-05/1.201, allocations: 25.97 kB / 1.155 GB, free: 6.832 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/1.201, allocations: 8.781 kB / 1.155 GB, free: 6.824 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001401/1.202, allocations: 469.2 kB / 1.156 GB, free: 6.367 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/1.202, allocations: 7.938 kB / 1.156 GB, free: 6.359 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/1.202, allocations: 8 kB / 1.156 GB, free: 6.352 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/1.203, allocations: 111.4 kB / 1.156 GB, free: 6.246 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/1.203, allocations: 4 kB / 1.156 GB, free: 6.242 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/1.204, allocations: 51.64 kB / 1.156 GB, free: 6.191 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/1.204, allocations: 20 kB / 1.156 GB, free: 6.172 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.0002387/1.204, allocations: 142.5 kB / 1.156 GB, free: 6.023 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/1.204, allocations: 51.42 kB / 1.156 GB, free: 5.973 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/1.206, allocations: 0.5372 MB / 1.157 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/1.206, allocations: 4 kB / 1.157 GB, free: 5.43 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/1.206, allocations: 0 / 1.157 GB, free: 5.43 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/1.206, allocations: 3.984 kB / 1.157 GB, free: 5.426 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/1.207, allocations: 0.541 MB / 1.157 GB, free: 4.848 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.207, allocations: 0 / 1.157 GB, free: 4.848 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/1.208, allocations: 91.88 kB / 1.157 GB, free: 4.758 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/1.208, allocations: 4 kB / 1.157 GB, free: 4.754 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-05/1.208, allocations: 7.984 kB / 1.157 GB, free: 4.746 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/1.208, allocations: 0 / 1.157 GB, free: 4.746 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.208, allocations: 6.156 kB / 1.157 GB, free: 4.742 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002236/1.211, allocations: 0.8653 MB / 1.158 GB, free: 3.852 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003135/1.214, allocations: 1.552 MB / 1.16 GB, free: 2.262 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003893/1.214, allocations: 180.4 kB / 1.16 GB, free: 2.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/1.214, allocations: 0 / 1.16 GB, free: 2.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006926/1.215, allocations: 35.97 kB / 1.16 GB, free: 2.031 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/1.215, allocations: 44.36 kB / 1.16 GB, free: 1.988 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-05/1.215, allocations: 19.98 kB / 1.16 GB, free: 1.969 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.000365/1.216, allocations: 216.6 kB / 1.16 GB, free: 1.762 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002803/1.219, allocations: 267 kB / 1.16 GB, free: 1.5 MB / 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.0003423/1.219, allocations: 145.4 kB / 1.161 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002256/1.221, allocations: 0.8523 MB / 1.161 GB, free: 500 kB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.221, allocations: 3.938 kB / 1.161 GB, free: 496 kB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006681/1.222, allocations: 266.5 kB / 1.162 GB, free: 232 kB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/1.223, allocations: 142.5 kB / 1.162 GB, free: 96 kB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/1.226, allocations: 0.816 MB / 1.163 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.227, allocations: 0.9653 MB / 1.164 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of SimCode: time 1.202e-06/1.227, allocations: 0 / 1.164 GB, free: 14.26 MB / 0.7761 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)