Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.713/1.713, allocations: 285.6 MB / 293.1 MB, free: 10.2 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.001154/0.001154, allocations: 176.9 kB / 361.4 MB, free: 6.848 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.859/1.859, allocations: 205.2 MB / 0.62 GB, free: 11.65 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.0008793/0.0008794, allocations: 96.44 kB / 0.733 GB, free: 44.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.314e-05, allocations: 4 kB / 0.8518 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7561/0.7561, allocations: 115.3 MB / 0.9645 GB, free: 79.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.9777, allocations: 157.5 MB / 1.118 GB, free: 14.33 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.9781, allocations: 92.59 kB / 1.118 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07291/1.051, allocations: 29.25 MB / 1.147 GB, free: 0.9297 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.904e-06/1.051, allocations: 0 / 1.147 GB, free: 0.9297 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.223e-05/1.051, allocations: 12 kB / 1.147 GB, free: 0.918 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.001585/1.053, allocations: 0.8224 MB / 1.148 GB, free: 40 kB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.053, allocations: 8.031 kB / 1.148 GB, free: 32 kB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008634/1.054, allocations: 144.2 kB / 1.148 GB, free: 15.89 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/1.054, allocations: 447.1 kB / 1.148 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/1.054, allocations: 20 kB / 1.148 GB, free: 15.39 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.81e-05/1.054, allocations: 28 kB / 1.148 GB, free: 15.37 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007752/1.055, allocations: 458.5 kB / 1.149 GB, free: 14.92 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000902/1.056, allocations: 0.5832 MB / 1.149 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/1.056, allocations: 3.984 kB / 1.149 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.315e-05/1.056, allocations: 8 kB / 1.149 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.016e-05/1.056, allocations: 37.3 kB / 1.149 GB, free: 14.26 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/1.06, allocations: 2.727 MB / 1.152 GB, free: 11.32 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/1.06, allocations: 0.5202 MB / 1.153 GB, free: 10.78 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/1.061, allocations: 233.6 kB / 1.153 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004898/1.061, allocations: 0.5661 MB / 1.153 GB, free: 9.848 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005665/1.062, allocations: 366.9 kB / 1.154 GB, free: 9.473 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 5.731e-06/1.062, allocations: 4 kB / 1.154 GB, free: 9.469 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009643/1.063, allocations: 499.5 kB / 1.154 GB, free: 8.973 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/1.063, allocations: 85.53 kB / 1.154 GB, free: 8.871 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/1.063, allocations: 290.2 kB / 1.155 GB, free: 8.586 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/1.063, allocations: 33.7 kB / 1.155 GB, free: 8.547 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/1.064, allocations: 276.6 kB / 1.155 GB, free: 8.27 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/1.064, allocations: 149.8 kB / 1.155 GB, free: 8.121 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/1.064, allocations: 0 / 1.155 GB, free: 8.121 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001546/1.064, allocations: 354.8 kB / 1.155 GB, free: 7.766 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/1.064, allocations: 209.1 kB / 1.155 GB, free: 7.562 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/1.065, allocations: 323.6 kB / 1.156 GB, free: 7.199 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/1.065, allocations: 248.1 kB / 1.156 GB, free: 6.961 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/1.065, allocations: 0 / 1.156 GB, free: 6.961 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009301/1.066, allocations: 0.5866 MB / 1.157 GB, free: 6.367 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004156/1.066, allocations: 1.085 MB / 1.158 GB, free: 5.195 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/1.066, allocations: 4 kB / 1.158 GB, free: 5.191 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/1.066, allocations: 4 kB / 1.158 GB, free: 5.188 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006101/1.067, allocations: 123.8 kB / 1.158 GB, free: 5.066 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/1.067, allocations: 11.88 kB / 1.158 GB, free: 5.055 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004908/1.068, allocations: 59.55 kB / 1.158 GB, free: 4.996 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/1.068, allocations: 23.98 kB / 1.158 GB, free: 4.973 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/1.068, allocations: 4 kB / 1.158 GB, free: 4.969 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007563/1.068, allocations: 473.6 kB / 1.158 GB, free: 4.508 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/1.068, allocations: 0 / 1.158 GB, free: 4.508 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-06/1.068, allocations: 8 kB / 1.158 GB, free: 4.5 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004139/1.069, allocations: 107.8 kB / 1.158 GB, free: 4.395 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/1.069, allocations: 8 kB / 1.158 GB, free: 4.387 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003919/1.069, allocations: 59.88 kB / 1.159 GB, free: 4.328 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/1.069, allocations: 25.11 kB / 1.159 GB, free: 4.305 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.0001633/1.069, allocations: 123.2 kB / 1.159 GB, free: 4.18 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007623/1.07, allocations: 499.4 kB / 1.159 GB, free: 3.688 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-05/1.07, allocations: 43.53 kB / 1.159 GB, free: 3.645 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009629/1.071, allocations: 0.5306 MB / 1.16 GB, free: 3.105 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/1.071, allocations: 4 kB / 1.16 GB, free: 3.102 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.071, allocations: 9.547 kB / 1.16 GB, free: 3.094 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/1.071, allocations: 0 / 1.16 GB, free: 3.094 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007147/1.072, allocations: 0.541 MB / 1.16 GB, free: 2.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.072, allocations: 0 / 1.16 GB, free: 2.516 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/1.073, allocations: 91.86 kB / 1.16 GB, free: 2.426 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/1.073, allocations: 4 kB / 1.16 GB, free: 2.422 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/1.073, allocations: 0 / 1.16 GB, free: 2.422 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/1.073, allocations: 5.406 kB / 1.16 GB, free: 2.418 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/1.073, allocations: 0 / 1.16 GB, free: 2.418 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/1.074, allocations: 0.8423 MB / 1.161 GB, free: 1.547 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/1.074, allocations: 176.5 kB / 1.161 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.911e-05/1.074, allocations: 9.859 kB / 1.161 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/1.075, allocations: 31.95 kB / 1.161 GB, free: 1.316 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/1.075, allocations: 56.31 kB / 1.161 GB, free: 1.262 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/1.075, allocations: 19.94 kB / 1.161 GB, free: 1.242 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000251/1.075, allocations: 224.6 kB / 1.162 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.5e-07/1.075, allocations: 0 / 1.162 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008872/1.076, allocations: 247.1 kB / 1.162 GB, free: 0.7812 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.001637/1.077, allocations: 1.489 MB / 1.163 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001365/1.079, allocations: 0.8926 MB / 1.164 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.079, allocations: 0 / 1.164 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003555/1.079, allocations: 258.5 kB / 1.164 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008479/1.08, allocations: 157 kB / 1.165 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/1.082, allocations: 0.8873 MB / 1.165 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/1.083, allocations: 0.9121 MB / 1.166 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0006718/1.083, allocations: 164.9 kB / 1.167 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002946/1.084, allocations: 183.4 kB / 1.167 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of SimCode: time 1.463e-06/1.084, allocations: 0 / 1.167 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/1.119, allocations: 11.82 MB / 1.178 GB, free: 144 kB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/1.119, allocations: 184.2 kB / 1.178 GB, free: 15.94 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/3.344, allocations: 0 / 1.178 GB, free: 15.94 MB / 0.7917 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)