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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.718/1.718, allocations: 289.7 MB / 302.3 MB, free: 2.133 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.001098/0.001098, allocations: 185.9 kB / 371.6 MB, free: 3.375 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.719/1.719, allocations: 205.1 MB / 0.6309 GB, free: 11.72 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.001005/0.001005, allocations: 93.12 kB / 0.745 GB, free: 54.67 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.03e-05, allocations: 4 kB / 0.8663 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2487, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8187/1.067, allocations: 159.1 MB / 1.135 GB, free: 30.35 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/1.068, allocations: 94.78 kB / 1.135 GB, free: 30.31 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.07049/1.138, allocations: 29.37 MB / 1.164 GB, free: 14.35 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.253e-06/1.138, allocations: 0 / 1.164 GB, free: 14.35 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.041e-05/1.138, allocations: 12 kB / 1.164 GB, free: 14.34 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.001405/1.14, allocations: 0.8263 MB / 1.165 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/1.14, allocations: 11.97 kB / 1.165 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/1.14, allocations: 95.88 kB / 1.165 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000806/1.141, allocations: 148.8 kB / 1.165 GB, free: 13.27 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/1.141, allocations: 437.3 kB / 1.166 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/1.141, allocations: 37.95 kB / 1.166 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.47e-05/1.141, allocations: 50.05 kB / 1.166 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009274/1.142, allocations: 0.6525 MB / 1.166 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/1.142, allocations: 3.938 kB / 1.166 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/1.142, allocations: 26.78 kB / 1.166 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.424e-05/1.143, allocations: 42.86 kB / 1.166 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007357/1.143, allocations: 0.5198 MB / 1.167 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/1.146, allocations: 2.834 MB / 1.17 GB, free: 9.309 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007355/1.147, allocations: 0.5561 MB / 1.17 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/1.147, allocations: 243.6 kB / 1.17 GB, free: 8.754 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/1.147, allocations: 0.5621 MB / 1.171 GB, free: 8.066 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004987/1.148, allocations: 387 kB / 1.171 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 1.954e-06/1.148, allocations: 0 / 1.171 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.0007629/1.149, allocations: 0.5126 MB / 1.172 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/1.149, allocations: 81.55 kB / 1.172 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/1.149, allocations: 296 kB / 1.172 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/1.149, allocations: 48.12 kB / 1.172 GB, free: 7.008 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/1.149, allocations: 282.1 kB / 1.172 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.716e-05/1.149, allocations: 157.7 kB / 1.173 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/1.149, allocations: 7.062 kB / 1.173 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.506e-05/1.149, allocations: 358 kB / 1.173 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/1.15, allocations: 220 kB / 1.173 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/1.15, allocations: 343.7 kB / 1.173 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/1.15, allocations: 275.3 kB / 1.174 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.151, allocations: 0 / 1.174 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008503/1.151, allocations: 0.6586 MB / 1.174 GB, free: 5.238 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002028/1.152, allocations: 1.081 MB / 1.175 GB, free: 4.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/1.152, allocations: 7.938 kB / 1.175 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.152, allocations: 4 kB / 1.175 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005188/1.152, allocations: 119.7 kB / 1.176 GB, free: 3.965 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/1.152, allocations: 4 kB / 1.176 GB, free: 3.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004716/1.153, allocations: 73.48 kB / 1.176 GB, free: 3.898 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/1.153, allocations: 23.48 kB / 1.176 GB, free: 3.879 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/1.153, allocations: 5.406 kB / 1.176 GB, free: 3.875 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000755/1.153, allocations: 0.543 MB / 1.176 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/1.153, allocations: 7.938 kB / 1.176 GB, free: 3.488 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.241e-06/1.153, allocations: 4 kB / 1.176 GB, free: 3.484 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/1.154, allocations: 115.2 kB / 1.176 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/1.154, allocations: 7.953 kB / 1.176 GB, free: 3.367 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/1.154, allocations: 61.7 kB / 1.176 GB, free: 3.316 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/1.154, allocations: 21.19 kB / 1.176 GB, free: 3.301 MB / 0.7448 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.0001265/1.154, allocations: 146 kB / 1.177 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.309e-05/1.155, allocations: 51.52 kB / 1.177 GB, free: 3.121 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008304/1.155, allocations: 0.5656 MB / 1.177 GB, free: 2.742 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/1.155, allocations: 4 kB / 1.177 GB, free: 2.738 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.155, allocations: 3.953 kB / 1.177 GB, free: 2.734 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/1.155, allocations: 3.984 kB / 1.177 GB, free: 2.73 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005879/1.156, allocations: 0.6318 MB / 1.178 GB, free: 2.207 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.156, allocations: 0 / 1.178 GB, free: 2.207 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/1.156, allocations: 95.3 kB / 1.178 GB, free: 2.117 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/1.156, allocations: 8.031 kB / 1.178 GB, free: 2.109 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/1.157, allocations: 10.5 kB / 1.178 GB, free: 2.105 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/1.157, allocations: 4 kB / 1.178 GB, free: 2.102 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/1.157, allocations: 0 / 1.178 GB, free: 2.102 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/1.158, allocations: 0.8694 MB / 1.179 GB, free: 1.484 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/1.158, allocations: 170.4 kB / 1.179 GB, free: 1.324 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/1.158, allocations: 15.31 kB / 1.179 GB, free: 1.316 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/1.158, allocations: 46.81 kB / 1.179 GB, free: 1.277 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/1.158, allocations: 54.12 kB / 1.179 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/1.158, allocations: 15.19 kB / 1.179 GB, free: 1.223 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002064/1.159, allocations: 239.2 kB / 1.179 GB, free: 1.043 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.159, allocations: 0 / 1.179 GB, free: 1.043 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006784/1.159, allocations: 279.4 kB / 1.18 GB, free: 0.793 MB / 0.7448 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.001419/1.161, allocations: 1.526 MB / 1.181 GB, free: 15.52 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001419/1.162, allocations: 0.937 MB / 1.182 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.162, allocations: 0 / 1.182 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003935/1.163, allocations: 271.9 kB / 1.182 GB, free: 14.64 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007709/1.163, allocations: 150.5 kB / 1.182 GB, free: 14.52 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/1.165, allocations: 0.9325 MB / 1.183 GB, free: 13.71 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/1.166, allocations: 0.9054 MB / 1.184 GB, free: 12.8 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006411/1.166, allocations: 168.7 kB / 1.184 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/1.167, allocations: 186.6 kB / 1.184 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of SimCode: time 4.91e-07/1.167, allocations: 0 / 1.184 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/1.195, allocations: 12.48 MB / 1.197 GB, free: 312 kB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/1.195, allocations: 168.1 kB / 1.197 GB, free: 88 kB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/3.551, allocations: 2.812 kB / 1.197 GB, free: 88 kB / 0.7605 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)