Running: ./testmodel.py --libraries=/home/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 (/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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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.564/2.564, allocations: 248.6 MB / 255.9 MB, free: 7.16 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.002111/0.002111, allocations: 190.8 kB / 315.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.1 MB / 0.5658 GB, free: 364 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.001268/0.001267, allocations: 91.38 kB / 0.67 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.505/0.5063, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.7343, allocations: 106.2 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7418/1.476, allocations: 150.6 MB / 1.031 GB, free: 6.965 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000371/1.477, allocations: 91.69 kB / 1.031 GB, free: 6.914 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.1483/1.625, allocations: 27.51 MB / 1.057 GB, free: 36 kB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/1.625, allocations: 8 kB / 1.058 GB, free: 28 kB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002406/1.628, allocations: 154.5 kB / 1.058 GB, free: 15.88 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/1.629, allocations: 437.4 kB / 1.058 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/1.629, allocations: 16 kB / 1.058 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/1.629, allocations: 28 kB / 1.058 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001456/1.63, allocations: 466.5 kB / 1.059 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/1.632, allocations: 0.5908 MB / 1.059 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/1.632, allocations: 3.938 kB / 1.059 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/1.633, allocations: 18.97 kB / 1.059 GB, free: 14.65 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-05/1.633, allocations: 44.33 kB / 1.059 GB, free: 14.61 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006099/1.639, allocations: 2.713 MB / 1.062 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/1.641, allocations: 0.5178 MB / 1.062 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006771/1.641, allocations: 242.3 kB / 1.063 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009427/1.642, allocations: 0.5583 MB / 1.063 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/1.644, allocations: 343.6 kB / 1.063 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 5.209e-06/1.644, allocations: 3.938 kB / 1.063 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002227/1.646, allocations: 0.4989 MB / 1.064 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/1.646, allocations: 84.73 kB / 1.064 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/1.647, allocations: 283.3 kB / 1.064 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001987/1.647, allocations: 36.81 kB / 1.064 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/1.647, allocations: 234.3 kB / 1.065 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002964/1.648, allocations: 151.1 kB / 1.065 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/1.648, allocations: 0 / 1.065 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002295/1.648, allocations: 360.2 kB / 1.065 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008725/1.649, allocations: 215.9 kB / 1.065 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/1.65, allocations: 333.8 kB / 1.066 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/1.651, allocations: 246.8 kB / 1.066 GB, free: 8.621 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/1.651, allocations: 0 / 1.066 GB, free: 8.621 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002542/1.654, allocations: 0.5925 MB / 1.066 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007506/1.654, allocations: 1.051 MB / 1.067 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.135e-05/1.655, allocations: 4 kB / 1.067 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.02e-05/1.655, allocations: 7.906 kB / 1.067 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/1.656, allocations: 115.6 kB / 1.068 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.468e-05/1.656, allocations: 8 kB / 1.068 GB, free: 6.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/1.658, allocations: 51.83 kB / 1.068 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/1.658, allocations: 19.25 kB / 1.068 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/1.658, allocations: 4 kB / 1.068 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001585/1.66, allocations: 487.8 kB / 1.068 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/1.66, allocations: 0 / 1.068 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/1.66, allocations: 11.91 kB / 1.068 GB, free: 6.527 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/1.661, allocations: 103.2 kB / 1.068 GB, free: 6.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/1.661, allocations: 8 kB / 1.068 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/1.663, allocations: 51.91 kB / 1.068 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/1.663, allocations: 22.55 kB / 1.068 GB, free: 6.355 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.000275/1.663, allocations: 127.7 kB / 1.068 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/1.663, allocations: 51.38 kB / 1.068 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/1.665, allocations: 0.5482 MB / 1.069 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/1.665, allocations: 7.984 kB / 1.069 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/1.665, allocations: 4 kB / 1.069 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/1.665, allocations: 0 / 1.069 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/1.666, allocations: 0.5399 MB / 1.07 GB, free: 5.328 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.666, allocations: 0 / 1.07 GB, free: 5.328 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/1.668, allocations: 94.38 kB / 1.07 GB, free: 5.238 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/1.668, allocations: 4 kB / 1.07 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-05/1.668, allocations: 4 kB / 1.07 GB, free: 5.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/1.668, allocations: 0 / 1.07 GB, free: 5.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.668, allocations: 4 kB / 1.07 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002656/1.67, allocations: 0.8573 MB / 1.07 GB, free: 4.613 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003542/1.674, allocations: 1.562 MB / 1.072 GB, free: 3.426 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006124/1.675, allocations: 177.8 kB / 1.072 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/1.675, allocations: 7.312 kB / 1.072 GB, free: 3.254 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009995/1.676, allocations: 35.95 kB / 1.072 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/1.676, allocations: 47.16 kB / 1.072 GB, free: 3.184 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/1.676, allocations: 18.42 kB / 1.072 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0004126/1.677, allocations: 218.6 kB / 1.072 GB, free: 3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003065/1.68, allocations: 253.9 kB / 1.073 GB, free: 2.758 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.0004446/1.68, allocations: 146.9 kB / 1.073 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002577/1.683, allocations: 0.8548 MB / 1.074 GB, free: 2.012 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.525e-06/1.683, allocations: 0 / 1.074 GB, free: 2.012 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007248/1.684, allocations: 267.4 kB / 1.074 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/1.685, allocations: 133.6 kB / 1.074 GB, free: 1.723 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/1.688, allocations: 0.8195 MB / 1.075 GB, free: 0.9961 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/1.69, allocations: 0.9608 MB / 1.076 GB, free: 24 kB / 0.6823 GB Notification: Performance of SimCode: time 1.583e-06/1.69, allocations: 7.938 kB / 1.076 GB, free: 16 kB / 0.6823 GB