Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.517/2.517, allocations: 248.6 MB / 255.9 MB, free: 7.137 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002349/0.002349, allocations: 192.6 kB / 315.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.1 MB / 0.5658 GB, free: 288 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001781/0.001781, allocations: 87.27 kB / 0.67 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5315/0.5334, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.779, allocations: 106.2 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7226/1.502, allocations: 152.1 MB / 1.032 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003715/1.502, allocations: 90.12 kB / 1.032 GB, free: 5.5 MB / 0.6511 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.1432/1.645, allocations: 29.42 MB / 1.061 GB, free: 13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.853e-05/1.645, allocations: 8 kB / 1.061 GB, free: 12.99 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002751/1.648, allocations: 151 kB / 1.061 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/1.65, allocations: 439.8 kB / 1.061 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.054e-05/1.65, allocations: 16 kB / 1.061 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/1.65, allocations: 31.5 kB / 1.061 GB, free: 12.39 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002234/1.653, allocations: 460.4 kB / 1.062 GB, free: 12.1 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/1.655, allocations: 0.5992 MB / 1.062 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.841e-05/1.655, allocations: 0 / 1.062 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/1.655, allocations: 11.42 kB / 1.062 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/1.656, allocations: 44.45 kB / 1.062 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007408/1.663, allocations: 2.714 MB / 1.065 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/1.665, allocations: 0.5215 MB / 1.066 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008798/1.666, allocations: 240.3 kB / 1.066 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000896/1.667, allocations: 0.5622 MB / 1.066 GB, free: 7.824 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/1.668, allocations: 343.3 kB / 1.067 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 4.98e-06/1.668, allocations: 7.938 kB / 1.067 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002226/1.67, allocations: 0.5027 MB / 1.067 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/1.671, allocations: 81.55 kB / 1.067 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007714/1.671, allocations: 282 kB / 1.068 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002128/1.672, allocations: 33.58 kB / 1.068 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003594/1.672, allocations: 231.6 kB / 1.068 GB, free: 6.609 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/1.672, allocations: 158.8 kB / 1.068 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/1.673, allocations: 0 / 1.068 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002697/1.673, allocations: 352.7 kB / 1.068 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009844/1.674, allocations: 214 kB / 1.069 GB, free: 6.012 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/1.675, allocations: 337.1 kB / 1.069 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/1.676, allocations: 243.5 kB / 1.069 GB, free: 5.582 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/1.677, allocations: 4 kB / 1.069 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003376/1.68, allocations: 0.5898 MB / 1.07 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006343/1.681, allocations: 1.055 MB / 1.071 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/1.681, allocations: 4 kB / 1.071 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.865e-05/1.681, allocations: 7.906 kB / 1.071 GB, free: 4.02 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/1.683, allocations: 111.2 kB / 1.071 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-05/1.683, allocations: 15.94 kB / 1.071 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/1.684, allocations: 51.64 kB / 1.071 GB, free: 3.848 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/1.685, allocations: 19.19 kB / 1.071 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.685, allocations: 4 kB / 1.071 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001984/1.687, allocations: 477.2 kB / 1.071 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/1.687, allocations: 4 kB / 1.071 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/1.687, allocations: 11.98 kB / 1.071 GB, free: 3.488 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/1.688, allocations: 103 kB / 1.071 GB, free: 3.391 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/1.688, allocations: 7.984 kB / 1.071 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008648/1.689, allocations: 51.91 kB / 1.072 GB, free: 3.332 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/1.689, allocations: 19.44 kB / 1.072 GB, free: 3.316 MB / 0.6823 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.0003196/1.689, allocations: 130.3 kB / 1.072 GB, free: 3.184 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/1.689, allocations: 51.42 kB / 1.072 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/1.691, allocations: 0.5539 MB / 1.072 GB, free: 2.738 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/1.691, allocations: 4 kB / 1.072 GB, free: 2.734 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/1.691, allocations: 3.906 kB / 1.072 GB, free: 2.73 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/1.691, allocations: 0 / 1.072 GB, free: 2.73 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/1.692, allocations: 0.5437 MB / 1.073 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/1.692, allocations: 0 / 1.073 GB, free: 2.281 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/1.693, allocations: 87.25 kB / 1.073 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/1.694, allocations: 8 kB / 1.073 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/1.694, allocations: 0 / 1.073 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/1.694, allocations: 4 kB / 1.073 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.694, allocations: 0 / 1.073 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002434/1.696, allocations: 0.8636 MB / 1.074 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003249/1.699, allocations: 1.554 MB / 1.075 GB, free: 396 kB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004709/1.7, allocations: 177.2 kB / 1.075 GB, free: 224 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/1.7, allocations: 3.375 kB / 1.075 GB, free: 224 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008395/1.701, allocations: 35.95 kB / 1.075 GB, free: 188 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/1.701, allocations: 42.75 kB / 1.075 GB, free: 156 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.247e-05/1.701, allocations: 23.52 kB / 1.076 GB, free: 136 kB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0004884/1.702, allocations: 216.8 kB / 1.076 GB, free: 15.97 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003091/1.705, allocations: 262.8 kB / 1.076 GB, free: 15.72 MB / 0.698 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.0004086/1.705, allocations: 144.5 kB / 1.076 GB, free: 15.57 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002575/1.708, allocations: 0.8642 MB / 1.077 GB, free: 14.97 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.708, allocations: 0 / 1.077 GB, free: 14.97 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007436/1.709, allocations: 265.9 kB / 1.077 GB, free: 14.79 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/1.71, allocations: 134.9 kB / 1.077 GB, free: 14.68 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/1.714, allocations: 0.8181 MB / 1.078 GB, free: 13.95 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/1.715, allocations: 0.9604 MB / 1.079 GB, free: 12.98 MB / 0.698 GB Notification: Performance of SimCode: time 1.713e-06/1.715, allocations: 7.938 kB / 1.079 GB, free: 12.97 MB / 0.698 GB