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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.802/1.802, allocations: 288.2 MB / 303.2 MB, free: 8.141 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.001545/0.001545, allocations: 178.2 kB / 371.8 MB, free: 10.25 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.618/1.618, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009514/0.0009512, allocations: 101.5 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005647/0.0005652, allocations: 10.69 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3032, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.913/1.216, allocations: 156.7 MB / 1.133 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003618/1.217, allocations: 97.03 kB / 1.133 GB, free: 15.83 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06445/1.281, allocations: 27.61 MB / 1.16 GB, free: 17.77 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.325e-06/1.281, allocations: 0 / 1.16 GB, free: 17.77 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.013e-05/1.281, allocations: 20 kB / 1.16 GB, free: 17.75 MB / 0.698 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.001742/1.283, allocations: 0.8757 MB / 1.16 GB, free: 16.87 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/1.283, allocations: 16.02 kB / 1.16 GB, free: 16.85 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/1.283, allocations: 90.08 kB / 1.161 GB, free: 16.79 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000857/1.284, allocations: 155 kB / 1.161 GB, free: 16.63 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006668/1.285, allocations: 446.5 kB / 1.161 GB, free: 16.23 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/1.285, allocations: 37.81 kB / 1.161 GB, free: 16.21 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-05/1.285, allocations: 49.19 kB / 1.161 GB, free: 16.17 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/1.286, allocations: 0.6837 MB / 1.162 GB, free: 15.66 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/1.286, allocations: 0 / 1.162 GB, free: 15.66 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.922e-05/1.286, allocations: 24.47 kB / 1.162 GB, free: 15.65 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/1.286, allocations: 43.78 kB / 1.162 GB, free: 15.61 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009236/1.287, allocations: 0.5752 MB / 1.163 GB, free: 15.22 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00356/1.291, allocations: 2.834 MB / 1.165 GB, free: 12.62 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/1.292, allocations: 0.5933 MB / 1.166 GB, free: 12.19 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005083/1.292, allocations: 0.5619 MB / 1.166 GB, free: 11.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006813/1.293, allocations: 411.1 kB / 1.167 GB, free: 11.18 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 4.669e-06/1.293, allocations: 0 / 1.167 GB, free: 11.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001504/1.295, allocations: 0.778 MB / 1.168 GB, free: 10.62 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/1.295, allocations: 89.06 kB / 1.168 GB, free: 10.52 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/1.295, allocations: 302 kB / 1.168 GB, free: 10.27 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/1.295, allocations: 43.95 kB / 1.168 GB, free: 10.23 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002285/1.295, allocations: 283.1 kB / 1.168 GB, free: 10.02 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/1.295, allocations: 156.9 kB / 1.168 GB, free: 9.887 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/1.296, allocations: 10.88 kB / 1.168 GB, free: 9.883 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001734/1.296, allocations: 350.5 kB / 1.169 GB, free: 9.551 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/1.296, allocations: 243.5 kB / 1.169 GB, free: 9.398 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005401/1.297, allocations: 368 kB / 1.169 GB, free: 9.09 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005031/1.297, allocations: 307.5 kB / 1.17 GB, free: 8.887 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/1.297, allocations: 4 kB / 1.17 GB, free: 8.883 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001241/1.298, allocations: 0.7012 MB / 1.17 GB, free: 8.375 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005752/1.299, allocations: 1.078 MB / 1.171 GB, free: 7.227 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/1.299, allocations: 0 / 1.171 GB, free: 7.227 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.288e-05/1.299, allocations: 8 kB / 1.171 GB, free: 7.219 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005891/1.3, allocations: 114.2 kB / 1.171 GB, free: 7.113 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/1.3, allocations: 12 kB / 1.172 GB, free: 7.102 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/1.3, allocations: 70.25 kB / 1.172 GB, free: 7.039 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/1.3, allocations: 22.69 kB / 1.172 GB, free: 7.023 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/1.3, allocations: 5.25 kB / 1.172 GB, free: 7.02 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009842/1.301, allocations: 0.5982 MB / 1.172 GB, free: 6.602 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/1.301, allocations: 0 / 1.172 GB, free: 6.602 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/1.301, allocations: 8 kB / 1.172 GB, free: 6.594 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/1.302, allocations: 102.6 kB / 1.172 GB, free: 6.496 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/1.302, allocations: 15.94 kB / 1.172 GB, free: 6.48 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004077/1.302, allocations: 70.42 kB / 1.172 GB, free: 6.422 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/1.302, allocations: 18.75 kB / 1.172 GB, free: 6.406 MB / 0.698 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 () * Number of clocked 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.0004308/1.303, allocations: 297 kB / 1.173 GB, free: 6.156 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.683e-05/1.303, allocations: 47.03 kB / 1.173 GB, free: 6.113 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/1.304, allocations: 0.6134 MB / 1.173 GB, free: 5.688 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/1.304, allocations: 4 kB / 1.173 GB, free: 5.684 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.304, allocations: 3.953 kB / 1.173 GB, free: 5.68 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/1.304, allocations: 3.984 kB / 1.173 GB, free: 5.676 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007951/1.305, allocations: 0.6294 MB / 1.174 GB, free: 5.164 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.305, allocations: 0 / 1.174 GB, free: 5.164 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004892/1.305, allocations: 103.1 kB / 1.174 GB, free: 5.066 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/1.305, allocations: 48 / 1.174 GB, free: 5.066 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/1.305, allocations: 15.61 kB / 1.174 GB, free: 5.059 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/1.305, allocations: 7.938 kB / 1.174 GB, free: 5.051 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.305, allocations: 192 / 1.174 GB, free: 5.051 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/1.307, allocations: 0.9317 MB / 1.175 GB, free: 4.383 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/1.307, allocations: 180.8 kB / 1.175 GB, free: 4.211 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.588e-05/1.307, allocations: 18.56 kB / 1.175 GB, free: 4.203 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/1.308, allocations: 42.64 kB / 1.175 GB, free: 4.168 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/1.308, allocations: 55.5 kB / 1.175 GB, free: 4.121 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/1.308, allocations: 19.31 kB / 1.175 GB, free: 4.109 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00031/1.308, allocations: 240.7 kB / 1.176 GB, free: 3.918 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.308, allocations: 0 / 1.176 GB, free: 3.918 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001148/1.309, allocations: 283.8 kB / 1.176 GB, free: 3.664 MB / 0.698 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) * Number of clocked states: 0 () * 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.002476/1.312, allocations: 1.585 MB / 1.177 GB, free: 2.352 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001939/1.314, allocations: 1.002 MB / 1.178 GB, free: 1.598 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.314, allocations: 0 / 1.178 GB, free: 1.598 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000503/1.314, allocations: 286.7 kB / 1.179 GB, free: 1.398 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008616/1.315, allocations: 160.2 kB / 1.179 GB, free: 1.273 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007428/1.323, allocations: 4.801 MB / 1.183 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/1.323, allocations: 0.9082 MB / 1.184 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0007404/1.324, allocations: 148.6 kB / 1.184 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/1.325, allocations: 186.5 kB / 1.185 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of SimCode: time 3.046e-06/1.325, allocations: 0 / 1.185 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/1.357, allocations: 11.94 MB / 1.196 GB, free: 160 kB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002506/1.357, allocations: 203.4 kB / 1.196 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/3.813, allocations: 0 / 1.196 GB, free: 15.91 MB / 0.7292 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)