Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_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_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 8.0.0/package.mo): time 2.122/2.122, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001592/0.001592, allocations: 183.5 kB / 360.3 MB, free: 7.547 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.628/1.628, allocations: 205.1 MB / 0.6187 GB, free: 13.22 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.001247/0.001246, allocations: 89.19 kB / 0.7317 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2441/0.2454, allocations: 121.4 MB / 0.8502 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5412/0.7866, allocations: 115.2 MB / 0.9628 GB, free: 78.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/1.021, allocations: 155.9 MB / 1.115 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003486/1.021, allocations: 92.59 kB / 1.115 GB, free: 0.875 MB / 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.1161/1.137, allocations: 27.51 MB / 1.142 GB, free: 5.273 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/1.137, allocations: 9.438 kB / 1.142 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/1.139, allocations: 143.1 kB / 1.142 GB, free: 5.125 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/1.14, allocations: 447.2 kB / 1.142 GB, free: 4.645 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/1.14, allocations: 19.91 kB / 1.143 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/1.14, allocations: 32 kB / 1.143 GB, free: 4.594 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001399/1.142, allocations: 464.1 kB / 1.143 GB, free: 4.145 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/1.143, allocations: 0.5931 MB / 1.144 GB, free: 3.523 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/1.143, allocations: 0 / 1.144 GB, free: 3.523 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.593e-05/1.143, allocations: 4 kB / 1.144 GB, free: 3.52 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.869e-05/1.143, allocations: 53.75 kB / 1.144 GB, free: 3.469 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005256/1.149, allocations: 2.711 MB / 1.146 GB, free: 0.543 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/1.15, allocations: 0.5153 MB / 1.147 GB, free: 8 kB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006694/1.151, allocations: 241.6 kB / 1.147 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/1.151, allocations: 0.5622 MB / 1.148 GB, free: 15.07 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008274/1.152, allocations: 343 kB / 1.148 GB, free: 14.72 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.556e-06/1.152, allocations: 4 kB / 1.148 GB, free: 14.72 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001541/1.154, allocations: 0.5024 MB / 1.148 GB, free: 14.21 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/1.154, allocations: 83.23 kB / 1.148 GB, free: 14.11 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/1.154, allocations: 282 kB / 1.149 GB, free: 13.83 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 8.365e-05/1.154, allocations: 33.7 kB / 1.149 GB, free: 13.79 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/1.155, allocations: 236.5 kB / 1.149 GB, free: 13.55 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/1.155, allocations: 149.8 kB / 1.149 GB, free: 13.4 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/1.155, allocations: 0 / 1.149 GB, free: 13.4 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001902/1.155, allocations: 358.8 kB / 1.149 GB, free: 13.04 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006069/1.156, allocations: 213.3 kB / 1.15 GB, free: 12.84 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/1.157, allocations: 330.8 kB / 1.15 GB, free: 12.47 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007306/1.157, allocations: 250.2 kB / 1.15 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/1.157, allocations: 0 / 1.15 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001745/1.159, allocations: 0.5944 MB / 1.151 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004643/1.16, allocations: 1.051 MB / 1.152 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/1.16, allocations: 4 kB / 1.152 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/1.16, allocations: 4 kB / 1.152 GB, free: 10.48 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/1.161, allocations: 120.8 kB / 1.152 GB, free: 10.37 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/1.161, allocations: 5.094 kB / 1.152 GB, free: 10.36 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009021/1.162, allocations: 55.55 kB / 1.152 GB, free: 10.31 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.102e-05/1.162, allocations: 25.5 kB / 1.152 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/1.162, allocations: 4.781 kB / 1.152 GB, free: 10.28 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001375/1.163, allocations: 469.1 kB / 1.152 GB, free: 9.824 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.163, allocations: 3.938 kB / 1.152 GB, free: 9.82 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/1.163, allocations: 8 kB / 1.152 GB, free: 9.812 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008582/1.164, allocations: 108.1 kB / 1.153 GB, free: 9.707 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/1.164, allocations: 11.94 kB / 1.153 GB, free: 9.695 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007472/1.165, allocations: 53.61 kB / 1.153 GB, free: 9.645 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-05/1.165, allocations: 24 kB / 1.153 GB, free: 9.621 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.0002218/1.165, allocations: 138.6 kB / 1.153 GB, free: 9.477 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/1.165, allocations: 51.44 kB / 1.153 GB, free: 9.426 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/1.167, allocations: 0.5345 MB / 1.153 GB, free: 8.887 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.167, allocations: 4 kB / 1.153 GB, free: 8.883 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/1.167, allocations: 3.984 kB / 1.153 GB, free: 8.879 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/1.167, allocations: 4 kB / 1.153 GB, free: 8.875 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/1.168, allocations: 0.5331 MB / 1.154 GB, free: 8.305 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/1.168, allocations: 0.9375 kB / 1.154 GB, free: 8.305 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/1.169, allocations: 95.88 kB / 1.154 GB, free: 8.211 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/1.169, allocations: 3.938 kB / 1.154 GB, free: 8.207 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/1.169, allocations: 15.89 kB / 1.154 GB, free: 8.191 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.169, allocations: 0 / 1.154 GB, free: 8.191 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.169, allocations: 4 kB / 1.154 GB, free: 8.188 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002246/1.171, allocations: 0.8558 MB / 1.155 GB, free: 7.309 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003158/1.175, allocations: 1.56 MB / 1.156 GB, free: 5.711 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/1.175, allocations: 180.3 kB / 1.157 GB, free: 5.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/1.175, allocations: 12 kB / 1.157 GB, free: 5.504 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/1.176, allocations: 25.56 kB / 1.157 GB, free: 5.48 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/1.176, allocations: 44.36 kB / 1.157 GB, free: 5.438 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.988e-05/1.176, allocations: 19.98 kB / 1.157 GB, free: 5.418 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0004284/1.177, allocations: 220.6 kB / 1.157 GB, free: 5.207 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002919/1.18, allocations: 263.1 kB / 1.157 GB, free: 4.949 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.0003824/1.18, allocations: 135.1 kB / 1.157 GB, free: 4.809 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00244/1.182, allocations: 0.8579 MB / 1.158 GB, free: 3.941 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.183, allocations: 4.938 kB / 1.158 GB, free: 3.938 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0007468/1.183, allocations: 261.5 kB / 1.158 GB, free: 3.684 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/1.185, allocations: 143.7 kB / 1.158 GB, free: 3.547 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/1.188, allocations: 0.8192 MB / 1.159 GB, free: 2.703 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.189, allocations: 0.9654 MB / 1.16 GB, free: 1.711 MB / 0.7605 GB Notification: Performance of SimCode: time 1.222e-06/1.189, allocations: 0 / 1.16 GB, free: 1.711 MB / 0.7605 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)