Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.116/2.116, allocations: 253.1 MB / 260.4 MB, free: 7.539 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001609/0.001608, allocations: 185.2 kB / 319.6 MB, free: 3.332 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.195/2.195, allocations: 205.4 MB / 0.5704 GB, free: 15.08 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001766/0.001766, allocations: 105.1 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.114e-05/1.125e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2304, allocations: 106.2 MB / 0.888 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7219/0.9523, allocations: 150.6 MB / 1.035 GB, free: 5.16 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.9528, allocations: 88.5 kB / 1.035 GB, free: 5.113 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.1391/1.092, allocations: 26.67 MB / 1.061 GB, free: 15.08 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.008e-05/1.092, allocations: 12 kB / 1.061 GB, free: 15.07 MB / 0.6823 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.003243/1.095, allocations: 0.8325 MB / 1.062 GB, free: 14.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/1.095, allocations: 8.031 kB / 1.062 GB, free: 14.22 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/1.097, allocations: 151 kB / 1.062 GB, free: 14.07 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/1.098, allocations: 432.7 kB / 1.063 GB, free: 13.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/1.098, allocations: 16 kB / 1.063 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/1.098, allocations: 32 kB / 1.063 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001458/1.1, allocations: 467.1 kB / 1.063 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/1.102, allocations: 0.5939 MB / 1.064 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/1.102, allocations: 0 / 1.064 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.514e-05/1.102, allocations: 18.83 kB / 1.064 GB, free: 12.85 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-05/1.102, allocations: 43.95 kB / 1.064 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005542/1.107, allocations: 2.712 MB / 1.066 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/1.109, allocations: 0.5159 MB / 1.067 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005955/1.109, allocations: 239.7 kB / 1.067 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007177/1.11, allocations: 0.5649 MB / 1.068 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008691/1.111, allocations: 339.3 kB / 1.068 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.206e-06/1.111, allocations: 0 / 1.068 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001643/1.113, allocations: 0.5046 MB / 1.068 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.113, allocations: 85.55 kB / 1.069 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/1.113, allocations: 279.9 kB / 1.069 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001132/1.113, allocations: 33.52 kB / 1.069 GB, free: 8.074 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/1.114, allocations: 230.1 kB / 1.069 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/1.114, allocations: 154.7 kB / 1.069 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.836e-05/1.114, allocations: 0 / 1.069 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001845/1.114, allocations: 358.4 kB / 1.07 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/1.115, allocations: 218.8 kB / 1.07 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006984/1.116, allocations: 325.4 kB / 1.07 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007516/1.116, allocations: 255.4 kB / 1.07 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/1.116, allocations: 0 / 1.07 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001706/1.118, allocations: 0.5935 MB / 1.071 GB, free: 6.398 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005432/1.119, allocations: 1.055 MB / 1.072 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.119, allocations: 0 / 1.072 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.27e-05/1.119, allocations: 11.91 kB / 1.072 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.12, allocations: 115.2 kB / 1.072 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/1.12, allocations: 4 kB / 1.072 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/1.121, allocations: 59.08 kB / 1.072 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.928e-05/1.121, allocations: 19.44 kB / 1.072 GB, free: 5.086 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.121, allocations: 8 kB / 1.072 GB, free: 5.078 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00137/1.122, allocations: 465 kB / 1.073 GB, free: 4.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/1.122, allocations: 4 kB / 1.073 GB, free: 4.758 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/1.123, allocations: 19.77 kB / 1.073 GB, free: 4.738 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009/1.123, allocations: 103.1 kB / 1.073 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/1.123, allocations: 12.3 kB / 1.073 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008466/1.124, allocations: 54.97 kB / 1.073 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-05/1.124, allocations: 19.69 kB / 1.073 GB, free: 4.562 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.0002643/1.125, allocations: 142.1 kB / 1.073 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/1.125, allocations: 47.44 kB / 1.073 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/1.126, allocations: 0.5393 MB / 1.074 GB, free: 3.992 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/1.126, allocations: 8 kB / 1.074 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/1.127, allocations: 0 / 1.074 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/1.127, allocations: 0 / 1.074 GB, free: 3.984 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/1.128, allocations: 0.5426 MB / 1.074 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.128, allocations: 0 / 1.074 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/1.129, allocations: 95.69 kB / 1.074 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.294e-05/1.129, allocations: 4 kB / 1.074 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/1.129, allocations: 2.5 kB / 1.074 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.328e-06/1.129, allocations: 4 kB / 1.074 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.129, allocations: 0 / 1.074 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002227/1.131, allocations: 0.8653 MB / 1.075 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004286/1.132, allocations: 177.2 kB / 1.075 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/1.132, allocations: 7.812 kB / 1.075 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007313/1.132, allocations: 27.95 kB / 1.075 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/1.133, allocations: 46.55 kB / 1.075 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.529e-05/1.133, allocations: 19.31 kB / 1.075 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003847/1.133, allocations: 223.4 kB / 1.075 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001184/1.134, allocations: 246 kB / 1.076 GB, free: 2.152 MB / 0.6823 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.0003381/1.135, allocations: 138 kB / 1.076 GB, free: 2.008 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002271/1.137, allocations: 0.8585 MB / 1.077 GB, free: 1.406 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.137, allocations: 4 kB / 1.077 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007049/1.138, allocations: 263.6 kB / 1.077 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/1.139, allocations: 147.3 kB / 1.077 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/1.142, allocations: 0.8154 MB / 1.078 GB, free: 396 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/1.143, allocations: 0.9557 MB / 1.079 GB, free: 15.42 MB / 0.698 GB Notification: Performance of SimCode: time 1.593e-06/1.143, allocations: 0 / 1.079 GB, free: 15.42 MB / 0.698 GB Notification: Performance of Templates: time 0.0323/1.176, allocations: 10.4 MB / 1.089 GB, free: 5.098 MB / 0.698 GB