Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.348/1.348, allocations: 289.8 MB / 297.1 MB, free: 12.62 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009801/0.0009801, allocations: 182 kB / 366.3 MB, free: 11.94 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.039/1.039, allocations: 205.1 MB / 0.6256 GB, free: 2.031 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007662/0.0007661, allocations: 89.47 kB / 0.7395 GB, free: 47.03 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 0.2003/0.2011, allocations: 122.4 MB / 0.8591 GB, free: 7.098 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4999/0.701, allocations: 116.3 MB / 0.9726 GB, free: 81.48 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.8667, allocations: 158.4 MB / 1.127 GB, free: 1.555 MB / 0.7214 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.867, allocations: 91.94 kB / 1.127 GB, free: 1.465 MB / 0.7214 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.07195/0.939, allocations: 29.67 MB / 1.156 GB, free: 3.648 MB / 0.7527 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.9391, allocations: 8 kB / 1.156 GB, free: 3.641 MB / 0.7527 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/0.94, allocations: 147.6 kB / 1.157 GB, free: 3.496 MB / 0.7527 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.9408, allocations: 443.2 kB / 1.157 GB, free: 3.02 MB / 0.7527 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.9408, allocations: 19.91 kB / 1.157 GB, free: 3 MB / 0.7527 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.97e-05/0.9409, allocations: 28 kB / 1.157 GB, free: 2.973 MB / 0.7527 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007902/0.9417, allocations: 462.7 kB / 1.157 GB, free: 2.52 MB / 0.7527 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009011/0.9426, allocations: 0.597 MB / 1.158 GB, free: 1.891 MB / 0.7527 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.9427, allocations: 3.938 kB / 1.158 GB, free: 1.887 MB / 0.7527 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.9427, allocations: 4 kB / 1.158 GB, free: 1.883 MB / 0.7527 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.063e-05/0.9428, allocations: 44.97 kB / 1.158 GB, free: 1.84 MB / 0.7527 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003204/0.946, allocations: 2.726 MB / 1.161 GB, free: 14.89 MB / 0.7683 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007507/0.9467, allocations: 0.5151 MB / 1.161 GB, free: 14.36 MB / 0.7683 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.9471, allocations: 233.7 kB / 1.161 GB, free: 14.12 MB / 0.7683 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004018/0.9475, allocations: 0.5739 MB / 1.162 GB, free: 13.42 MB / 0.7683 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004477/0.9479, allocations: 335 kB / 1.162 GB, free: 13.08 MB / 0.7683 GB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.9479, allocations: 0 / 1.162 GB, free: 13.08 MB / 0.7683 GB Notification: Performance of matching and sorting (n=49): time 0.0008678/0.9488, allocations: 0.4985 MB / 1.163 GB, free: 12.57 MB / 0.7683 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.9489, allocations: 93.56 kB / 1.163 GB, free: 12.46 MB / 0.7683 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.9492, allocations: 282 kB / 1.163 GB, free: 12.19 MB / 0.7683 GB Notification: Performance of collectPreVariables (initialization): time 6.275e-05/0.9492, allocations: 33.7 kB / 1.163 GB, free: 12.15 MB / 0.7683 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.9494, allocations: 224.6 kB / 1.163 GB, free: 11.92 MB / 0.7683 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.9495, allocations: 153.8 kB / 1.164 GB, free: 11.77 MB / 0.7683 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.9495, allocations: 4 kB / 1.164 GB, free: 11.77 MB / 0.7683 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.9497, allocations: 350.8 kB / 1.164 GB, free: 11.41 MB / 0.7683 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.95, allocations: 213.3 kB / 1.164 GB, free: 11.21 MB / 0.7683 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.9504, allocations: 339.6 kB / 1.164 GB, free: 10.83 MB / 0.7683 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.9508, allocations: 243 kB / 1.165 GB, free: 10.6 MB / 0.7683 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.9508, allocations: 4 kB / 1.165 GB, free: 10.59 MB / 0.7683 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009168/0.9517, allocations: 0.5913 MB / 1.165 GB, free: 9.996 MB / 0.7683 GB Notification: Performance of prepare postOptimizeDAE: time 0.000303/0.9521, allocations: 1.059 MB / 1.166 GB, free: 8.855 MB / 0.7683 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.9521, allocations: 0 / 1.166 GB, free: 8.855 MB / 0.7683 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.9521, allocations: 8 kB / 1.166 GB, free: 8.848 MB / 0.7683 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.9527, allocations: 111.8 kB / 1.166 GB, free: 8.738 MB / 0.7683 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.9527, allocations: 11.98 kB / 1.166 GB, free: 8.727 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/0.9532, allocations: 59.5 kB / 1.166 GB, free: 8.668 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.9533, allocations: 24.69 kB / 1.166 GB, free: 8.645 MB / 0.7683 GB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.9533, allocations: 4 kB / 1.166 GB, free: 8.641 MB / 0.7683 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007442/0.954, allocations: 471.7 kB / 1.167 GB, free: 8.18 MB / 0.7683 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.954, allocations: 4 kB / 1.167 GB, free: 8.176 MB / 0.7683 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.954, allocations: 4 kB / 1.167 GB, free: 8.172 MB / 0.7683 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.9545, allocations: 104.1 kB / 1.167 GB, free: 8.07 MB / 0.7683 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.9545, allocations: 15.88 kB / 1.167 GB, free: 8.055 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/0.9549, allocations: 51.64 kB / 1.167 GB, free: 8.004 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.955, allocations: 20 kB / 1.167 GB, free: 7.984 MB / 0.7683 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.0001231/0.9551, allocations: 130.8 kB / 1.167 GB, free: 7.852 MB / 0.7683 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.119e-05/0.9552, allocations: 55.45 kB / 1.167 GB, free: 7.797 MB / 0.7683 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008391/0.956, allocations: 0.5381 MB / 1.168 GB, free: 7.25 MB / 0.7683 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.956, allocations: 4 kB / 1.168 GB, free: 7.246 MB / 0.7683 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.956, allocations: 0 / 1.168 GB, free: 7.246 MB / 0.7683 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.956, allocations: 3.984 kB / 1.168 GB, free: 7.242 MB / 0.7683 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.9566, allocations: 0.5448 MB / 1.168 GB, free: 6.66 MB / 0.7683 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.9566, allocations: 0 / 1.168 GB, free: 6.66 MB / 0.7683 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005064/0.9571, allocations: 95.81 kB / 1.168 GB, free: 6.566 MB / 0.7683 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.9571, allocations: 4 kB / 1.168 GB, free: 6.562 MB / 0.7683 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.9572, allocations: 7.984 kB / 1.168 GB, free: 6.555 MB / 0.7683 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.9572, allocations: 4 kB / 1.168 GB, free: 6.551 MB / 0.7683 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.9572, allocations: 3.906 kB / 1.168 GB, free: 6.547 MB / 0.7683 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001162/0.9584, allocations: 0.8576 MB / 1.169 GB, free: 5.66 MB / 0.7683 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001599/0.96, allocations: 1.553 MB / 1.171 GB, free: 4.078 MB / 0.7683 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.9602, allocations: 180.4 kB / 1.171 GB, free: 3.883 MB / 0.7683 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.964e-05/0.9603, allocations: 3.984 kB / 1.171 GB, free: 3.879 MB / 0.7683 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.9607, allocations: 36.16 kB / 1.171 GB, free: 3.844 MB / 0.7683 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.9608, allocations: 44.36 kB / 1.171 GB, free: 3.801 MB / 0.7683 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/0.9609, allocations: 20 kB / 1.171 GB, free: 3.781 MB / 0.7683 GB Notification: Performance of sort global known variables: time 0.000216/0.9611, allocations: 224.5 kB / 1.171 GB, free: 3.566 MB / 0.7683 GB Notification: Performance of remove unused functions: time 0.001856/0.9629, allocations: 263 kB / 1.172 GB, free: 3.309 MB / 0.7683 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.0001908/0.9631, allocations: 139.1 kB / 1.172 GB, free: 3.164 MB / 0.7683 GB Notification: Performance of simCode: created initialization part: time 0.001118/0.9643, allocations: 0.8501 MB / 1.173 GB, free: 2.305 MB / 0.7683 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.9643, allocations: 0 / 1.173 GB, free: 2.305 MB / 0.7683 GB Notification: Performance of simCode: created simulation system equations: time 0.000359/0.9646, allocations: 269.5 kB / 1.173 GB, free: 2.039 MB / 0.7683 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007039/0.9654, allocations: 146.4 kB / 1.173 GB, free: 1.906 MB / 0.7683 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.9669, allocations: 0.8084 MB / 1.174 GB, free: 1.062 MB / 0.7683 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006332/0.9675, allocations: 0.9651 MB / 1.175 GB, free: 72 kB / 0.7683 GB Notification: Performance of SimCode: time 3.11e-07/0.9675, allocations: 0 / 1.175 GB, free: 72 kB / 0.7683 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)