Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_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_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.519/2.519, allocations: 284.9 MB / 292.4 MB, free: 10.53 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.001485/0.001485, allocations: 184.8 kB / 360.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.3 MB / 0.6191 GB, free: 12.2 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.001074/0.001073, allocations: 93.2 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.409e-05/2.41e-05, allocations: 4 kB / 0.8509 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.807/0.8071, allocations: 115.3 MB / 0.9634 GB, free: 78.82 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2719/1.079, allocations: 157.4 MB / 1.117 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000391/1.08, allocations: 94.7 kB / 1.117 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.1256/1.205, allocations: 28.97 MB / 1.146 GB, free: 1.941 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.603e-06/1.205, allocations: 0 / 1.146 GB, free: 1.941 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.878e-05/1.205, allocations: 15.94 kB / 1.146 GB, free: 1.926 MB / 0.7448 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.002504/1.208, allocations: 0.8225 MB / 1.146 GB, free: 1.047 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.208, allocations: 8.031 kB / 1.146 GB, free: 1.039 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/1.209, allocations: 152.3 kB / 1.147 GB, free: 0.8906 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/1.21, allocations: 443.2 kB / 1.147 GB, free: 424 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.348e-05/1.211, allocations: 16 kB / 1.147 GB, free: 408 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/1.211, allocations: 32 kB / 1.147 GB, free: 376 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001323/1.212, allocations: 454.4 kB / 1.147 GB, free: 15.93 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/1.214, allocations: 0.5833 MB / 1.148 GB, free: 15.31 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/1.214, allocations: 3.938 kB / 1.148 GB, free: 15.3 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/1.214, allocations: 11.97 kB / 1.148 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/1.214, allocations: 37.3 kB / 1.148 GB, free: 15.26 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005602/1.219, allocations: 2.727 MB / 1.151 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/1.221, allocations: 0.5173 MB / 1.151 GB, free: 11.78 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005407/1.221, allocations: 229.7 kB / 1.151 GB, free: 11.55 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006192/1.222, allocations: 0.5662 MB / 1.152 GB, free: 10.85 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009367/1.223, allocations: 367 kB / 1.152 GB, free: 10.48 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.838e-06/1.223, allocations: 0 / 1.152 GB, free: 10.48 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001488/1.225, allocations: 0.4955 MB / 1.153 GB, free: 9.973 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/1.225, allocations: 81.55 kB / 1.153 GB, free: 9.875 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004953/1.225, allocations: 286.3 kB / 1.153 GB, free: 9.594 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/1.225, allocations: 33.7 kB / 1.153 GB, free: 9.555 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/1.226, allocations: 280.5 kB / 1.153 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/1.226, allocations: 145.9 kB / 1.154 GB, free: 9.129 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/1.226, allocations: 4.031 kB / 1.154 GB, free: 9.125 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001888/1.226, allocations: 356.1 kB / 1.154 GB, free: 8.77 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/1.227, allocations: 205.1 kB / 1.154 GB, free: 8.57 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006516/1.227, allocations: 334 kB / 1.154 GB, free: 8.199 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/1.228, allocations: 241.5 kB / 1.155 GB, free: 7.965 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/1.228, allocations: 0 / 1.155 GB, free: 7.965 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001646/1.23, allocations: 0.5905 MB / 1.155 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005114/1.23, allocations: 1.081 MB / 1.156 GB, free: 6.199 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/1.23, allocations: 4 kB / 1.156 GB, free: 6.195 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/1.23, allocations: 8 kB / 1.156 GB, free: 6.188 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/1.231, allocations: 115.8 kB / 1.156 GB, free: 6.074 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/1.231, allocations: 6.578 kB / 1.156 GB, free: 6.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009276/1.232, allocations: 63.53 kB / 1.156 GB, free: 6.008 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/1.232, allocations: 27.23 kB / 1.157 GB, free: 5.984 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/1.232, allocations: 7.938 kB / 1.157 GB, free: 5.977 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001365/1.234, allocations: 477.8 kB / 1.157 GB, free: 5.512 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/1.234, allocations: 4 kB / 1.157 GB, free: 5.508 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/1.234, allocations: 4 kB / 1.157 GB, free: 5.504 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008791/1.235, allocations: 107.8 kB / 1.157 GB, free: 5.398 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/1.235, allocations: 7.984 kB / 1.157 GB, free: 5.391 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007925/1.236, allocations: 59.84 kB / 1.157 GB, free: 5.332 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/1.236, allocations: 20 kB / 1.157 GB, free: 5.312 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.0002607/1.236, allocations: 133.4 kB / 1.157 GB, free: 5.176 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001365/1.237, allocations: 495.4 kB / 1.158 GB, free: 4.688 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/1.238, allocations: 47.53 kB / 1.158 GB, free: 4.641 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/1.239, allocations: 0.5244 MB / 1.158 GB, free: 4.105 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.239, allocations: 11.94 kB / 1.158 GB, free: 4.094 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.239, allocations: 0 / 1.158 GB, free: 4.094 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/1.239, allocations: 0 / 1.158 GB, free: 4.094 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/1.24, allocations: 0.5371 MB / 1.159 GB, free: 3.52 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/1.24, allocations: 0 / 1.159 GB, free: 3.52 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009892/1.241, allocations: 101.6 kB / 1.159 GB, free: 3.422 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/1.241, allocations: 4 kB / 1.159 GB, free: 3.418 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/1.241, allocations: 4 kB / 1.159 GB, free: 3.414 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/1.241, allocations: 0 / 1.159 GB, free: 3.414 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.241, allocations: 4 kB / 1.159 GB, free: 3.41 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/1.243, allocations: 0.8355 MB / 1.16 GB, free: 2.547 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/1.244, allocations: 180.4 kB / 1.16 GB, free: 2.352 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/1.244, allocations: 4 kB / 1.16 GB, free: 2.348 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006499/1.245, allocations: 35.94 kB / 1.16 GB, free: 2.312 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/1.245, allocations: 56.31 kB / 1.16 GB, free: 2.258 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.9e-05/1.245, allocations: 16 kB / 1.16 GB, free: 2.242 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003826/1.245, allocations: 224.6 kB / 1.16 GB, free: 2.023 MB / 0.7605 GB Notification: Performance of sort global known variables: time 3.336e-06/1.245, allocations: 0 / 1.16 GB, free: 2.023 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00122/1.247, allocations: 251.1 kB / 1.161 GB, free: 1.777 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.002654/1.249, allocations: 1.482 MB / 1.162 GB, free: 268 kB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002175/1.252, allocations: 0.8979 MB / 1.163 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.252, allocations: 5.969 kB / 1.163 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0006554/1.252, allocations: 261.5 kB / 1.163 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/1.254, allocations: 142.4 kB / 1.163 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/1.257, allocations: 0.8912 MB / 1.164 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/1.257, allocations: 0.9133 MB / 1.165 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.001167/1.258, allocations: 162.7 kB / 1.165 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004982/1.259, allocations: 180.9 kB / 1.165 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of SimCode: time 1.453e-06/1.259, allocations: 0 / 1.165 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06148/1.32, allocations: 11.81 MB / 1.177 GB, free: 1.148 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/1.321, allocations: 174.2 kB / 1.177 GB, free: 0.9492 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.796/4.117, allocations: 3.375 kB / 1.177 GB, free: 0.9492 MB / 0.7761 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)