Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.319/1.319, allocations: 285.5 MB / 292.8 MB, free: 10.48 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.0009522/0.0009522, allocations: 169.3 kB / 361.1 MB, free: 7.113 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.016/1.016, allocations: 205.1 MB / 0.6195 GB, free: 10.32 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.0007637/0.0007638, allocations: 87.92 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1734/0.1742, allocations: 121.5 MB / 0.8512 GB, free: 2.891 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.5715, allocations: 115.3 MB / 0.9638 GB, free: 78.44 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.7145, allocations: 155.9 MB / 1.116 GB, free: 140 kB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.7147, allocations: 92.45 kB / 1.116 GB, free: 48 kB / 0.7136 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.06303/0.7778, allocations: 27.77 MB / 1.143 GB, free: 4.188 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.7778, allocations: 8 kB / 1.143 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008738/0.7787, allocations: 143.1 kB / 1.143 GB, free: 4.039 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.7793, allocations: 443.2 kB / 1.144 GB, free: 3.562 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.7793, allocations: 23.91 kB / 1.144 GB, free: 3.539 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.7794, allocations: 28 kB / 1.144 GB, free: 3.512 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000705/0.7801, allocations: 462.2 kB / 1.144 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008358/0.781, allocations: 0.597 MB / 1.145 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.781, allocations: 8.875 kB / 1.145 GB, free: 2.43 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.7811, allocations: 11.97 kB / 1.145 GB, free: 2.418 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/0.7811, allocations: 40.98 kB / 1.145 GB, free: 2.379 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.784, allocations: 2.714 MB / 1.148 GB, free: 15.45 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000682/0.7846, allocations: 0.5163 MB / 1.148 GB, free: 14.91 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/0.785, allocations: 245.6 kB / 1.148 GB, free: 14.67 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003822/0.7854, allocations: 0.5544 MB / 1.149 GB, free: 13.98 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004308/0.7858, allocations: 344.9 kB / 1.149 GB, free: 13.63 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.674e-06/0.7858, allocations: 0 / 1.149 GB, free: 13.63 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0007931/0.7866, allocations: 0.5032 MB / 1.15 GB, free: 13.12 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.7866, allocations: 81.55 kB / 1.15 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.7869, allocations: 282 kB / 1.15 GB, free: 12.74 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.787, allocations: 37.69 kB / 1.15 GB, free: 12.7 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.7871, allocations: 232.6 kB / 1.15 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.7872, allocations: 153.8 kB / 1.15 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.7872, allocations: 4.031 kB / 1.15 GB, free: 12.31 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.7873, allocations: 358.8 kB / 1.151 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.7876, allocations: 214.2 kB / 1.151 GB, free: 11.74 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.788, allocations: 331.3 kB / 1.151 GB, free: 11.38 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.7884, allocations: 243.7 kB / 1.152 GB, free: 11.14 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.7884, allocations: 4 kB / 1.152 GB, free: 11.13 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008551/0.7893, allocations: 0.5921 MB / 1.152 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002691/0.7895, allocations: 1.051 MB / 1.153 GB, free: 9.402 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.7895, allocations: 4 kB / 1.153 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.7896, allocations: 8 kB / 1.153 GB, free: 9.391 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000536/0.7901, allocations: 115.8 kB / 1.153 GB, free: 9.277 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.7901, allocations: 4 kB / 1.153 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.7906, allocations: 69.83 kB / 1.153 GB, free: 9.207 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.7906, allocations: 16 kB / 1.153 GB, free: 9.191 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.919e-06/0.7906, allocations: 4 kB / 1.153 GB, free: 9.188 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007057/0.7914, allocations: 475.8 kB / 1.154 GB, free: 8.723 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.7914, allocations: 0 / 1.154 GB, free: 8.723 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/0.7914, allocations: 8 kB / 1.154 GB, free: 8.715 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.7918, allocations: 109.7 kB / 1.154 GB, free: 8.609 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.7918, allocations: 11.75 kB / 1.154 GB, free: 8.602 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.7922, allocations: 55.56 kB / 1.154 GB, free: 8.547 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.7923, allocations: 23.98 kB / 1.154 GB, free: 8.523 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.7924, allocations: 126.9 kB / 1.154 GB, free: 8.395 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.7924, allocations: 47.44 kB / 1.154 GB, free: 8.348 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008166/0.7933, allocations: 0.5366 MB / 1.155 GB, free: 7.805 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.7933, allocations: 4 kB / 1.155 GB, free: 7.801 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.7933, allocations: 4 kB / 1.155 GB, free: 7.797 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.7933, allocations: 3.984 kB / 1.155 GB, free: 7.793 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005339/0.7938, allocations: 0.5448 MB / 1.155 GB, free: 7.211 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.7939, allocations: 0 / 1.155 GB, free: 7.211 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.7943, allocations: 91.81 kB / 1.155 GB, free: 7.121 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.7944, allocations: 1.812 kB / 1.155 GB, free: 7.121 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.7944, allocations: 11.91 kB / 1.155 GB, free: 7.109 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.7944, allocations: 0 / 1.155 GB, free: 7.109 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7944, allocations: 4 kB / 1.155 GB, free: 7.105 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00109/0.7955, allocations: 0.8537 MB / 1.156 GB, free: 6.227 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001537/0.7971, allocations: 1.565 MB / 1.158 GB, free: 4.625 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.7973, allocations: 176.4 kB / 1.158 GB, free: 4.434 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.748e-05/0.7974, allocations: 8 kB / 1.158 GB, free: 4.426 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003354/0.7977, allocations: 29.83 kB / 1.158 GB, free: 4.398 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.7978, allocations: 44.36 kB / 1.158 GB, free: 4.355 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.7979, allocations: 16 kB / 1.158 GB, free: 4.34 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001871/0.7981, allocations: 228.6 kB / 1.158 GB, free: 4.121 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001698/0.7998, allocations: 259 kB / 1.158 GB, free: 3.867 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.0001802/0.7999, allocations: 138.9 kB / 1.159 GB, free: 3.723 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001059/0.801, allocations: 0.8615 MB / 1.159 GB, free: 2.855 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.801, allocations: 0 / 1.159 GB, free: 2.855 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.8014, allocations: 269.6 kB / 1.16 GB, free: 2.594 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.802, allocations: 141.2 kB / 1.16 GB, free: 2.461 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.8035, allocations: 0.8082 MB / 1.161 GB, free: 1.625 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006497/0.8042, allocations: 0.9662 MB / 1.162 GB, free: 0.6328 MB / 0.7605 GB Notification: Performance of SimCode: time 3.21e-07/0.8042, allocations: 0 / 1.162 GB, free: 0.6328 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)