Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.382/1.382, allocations: 289.8 MB / 297.1 MB, free: 6.695 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.001023/0.001023, allocations: 185.2 kB / 366.3 MB, free: 2.039 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.043/1.043, allocations: 205.1 MB / 0.6256 GB, free: 5.879 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.0008008/0.0008007, allocations: 90.16 kB / 0.7395 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2079/0.2087, allocations: 122.4 MB / 0.8591 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4646/0.6734, allocations: 116.3 MB / 0.9727 GB, free: 68.08 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.8346, allocations: 156.9 MB / 1.126 GB, free: 7.574 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.8348, allocations: 97.52 kB / 1.126 GB, free: 7.48 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.0654/0.9002, allocations: 27.76 MB / 1.153 GB, free: 11.51 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.9003, allocations: 11.98 kB / 1.153 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008816/0.9012, allocations: 147.1 kB / 1.153 GB, free: 11.35 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.9019, allocations: 439.2 kB / 1.154 GB, free: 10.88 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.9019, allocations: 19.91 kB / 1.154 GB, free: 10.86 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-05/0.902, allocations: 32 kB / 1.154 GB, free: 10.83 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007747/0.9028, allocations: 470.1 kB / 1.154 GB, free: 10.37 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008665/0.9037, allocations: 0.5893 MB / 1.155 GB, free: 9.75 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.9037, allocations: 7.938 kB / 1.155 GB, free: 9.742 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.9038, allocations: 0 / 1.155 GB, free: 9.742 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.673e-05/0.9038, allocations: 44.97 kB / 1.155 GB, free: 9.699 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/0.9067, allocations: 2.718 MB / 1.157 GB, free: 6.766 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007332/0.9075, allocations: 0.5213 MB / 1.158 GB, free: 6.223 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.9078, allocations: 237.6 kB / 1.158 GB, free: 5.984 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004462/0.9083, allocations: 0.5583 MB / 1.159 GB, free: 5.297 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004613/0.9087, allocations: 343 kB / 1.159 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.683e-06/0.9087, allocations: 0 / 1.159 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008448/0.9096, allocations: 0.4985 MB / 1.16 GB, free: 4.438 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.9096, allocations: 85.55 kB / 1.16 GB, free: 4.336 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.9099, allocations: 286 kB / 1.16 GB, free: 4.051 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.025e-05/0.91, allocations: 29.7 kB / 1.16 GB, free: 4.016 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.9101, allocations: 232.6 kB / 1.16 GB, free: 3.781 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.9103, allocations: 157.8 kB / 1.16 GB, free: 3.625 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.9103, allocations: 0 / 1.16 GB, free: 3.625 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9104, allocations: 358.8 kB / 1.161 GB, free: 3.266 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.9107, allocations: 213.3 kB / 1.161 GB, free: 3.059 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.9111, allocations: 335.2 kB / 1.161 GB, free: 2.688 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.9115, allocations: 251.7 kB / 1.161 GB, free: 2.441 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.9116, allocations: 0 / 1.161 GB, free: 2.441 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008911/0.9125, allocations: 0.5984 MB / 1.162 GB, free: 1.836 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.000308/0.9128, allocations: 1.059 MB / 1.163 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.9128, allocations: 0 / 1.163 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.9128, allocations: 8 kB / 1.163 GB, free: 0.6875 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.9134, allocations: 107.8 kB / 1.163 GB, free: 0.582 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.9134, allocations: 6.5 kB / 1.163 GB, free: 0.5781 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/0.9139, allocations: 67.48 kB / 1.163 GB, free: 0.5117 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.9139, allocations: 23.98 kB / 1.163 GB, free: 500 kB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.655e-06/0.9139, allocations: 4.938 kB / 1.163 GB, free: 496 kB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007158/0.9146, allocations: 467.5 kB / 1.164 GB, free: 28 kB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.9147, allocations: 4 kB / 1.164 GB, free: 24 kB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.241e-06/0.9147, allocations: 8.25 kB / 1.164 GB, free: 16 kB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.9151, allocations: 107.8 kB / 1.164 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.9151, allocations: 4 kB / 1.164 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.9155, allocations: 59.55 kB / 1.164 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.9156, allocations: 20 kB / 1.164 GB, free: 15.83 MB / 0.7761 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.0001472/0.9157, allocations: 122.9 kB / 1.164 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.9158, allocations: 47.44 kB / 1.164 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008715/0.9167, allocations: 0.5336 MB / 1.165 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.9167, allocations: 8 kB / 1.165 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.9167, allocations: 0 / 1.165 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.9167, allocations: 7.984 kB / 1.165 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005733/0.9173, allocations: 0.5448 MB / 1.165 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.9173, allocations: 256 / 1.165 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005189/0.9178, allocations: 95.81 kB / 1.165 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.9179, allocations: 4 kB / 1.165 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.9179, allocations: 3.953 kB / 1.165 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.9179, allocations: 4 kB / 1.165 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.9179, allocations: 3.984 kB / 1.165 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001143/0.9191, allocations: 0.8615 MB / 1.166 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001605/0.9207, allocations: 1.56 MB / 1.168 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.9209, allocations: 176.4 kB / 1.168 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.583e-05/0.921, allocations: 4 kB / 1.168 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003602/0.9214, allocations: 31.95 kB / 1.168 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.9215, allocations: 48.36 kB / 1.168 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.9216, allocations: 16 kB / 1.168 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0001965/0.9218, allocations: 220.6 kB / 1.168 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00186/0.9236, allocations: 259 kB / 1.168 GB, free: 11.18 MB / 0.7761 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.0001912/0.9238, allocations: 139.9 kB / 1.168 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001124/0.925, allocations: 0.8589 MB / 1.169 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.925, allocations: 8 kB / 1.169 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004685/0.9255, allocations: 269.5 kB / 1.17 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008768/0.9263, allocations: 131.7 kB / 1.17 GB, free: 9.766 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.928, allocations: 0.8112 MB / 1.17 GB, free: 8.922 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006121/0.9286, allocations: 0.9652 MB / 1.171 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of SimCode: time 4.91e-07/0.9286, allocations: 0 / 1.171 GB, free: 7.93 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)