Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.605/1.605, allocations: 289.7 MB / 302.2 MB, free: 2.117 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.0009649/0.0009648, allocations: 184.5 kB / 371.6 MB, free: 3.434 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.443/1.443, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.001037/0.001037, allocations: 89.22 kB / 0.745 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.957e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2606, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8612/1.122, allocations: 157.6 MB / 1.134 GB, free: 31.38 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003714/1.122, allocations: 88.77 kB / 1.134 GB, free: 31.34 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.06803/1.19, allocations: 27.46 MB / 1.161 GB, free: 17.1 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.974e-06/1.19, allocations: 0 / 1.161 GB, free: 17.1 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.174e-05/1.19, allocations: 12 kB / 1.161 GB, free: 17.09 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.001403/1.192, allocations: 0.8242 MB / 1.162 GB, free: 16.32 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/1.192, allocations: 13.23 kB / 1.162 GB, free: 16.31 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.802e-05/1.192, allocations: 87.94 kB / 1.162 GB, free: 16.26 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008216/1.193, allocations: 152.2 kB / 1.162 GB, free: 16.14 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/1.193, allocations: 432 kB / 1.162 GB, free: 15.79 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/1.193, allocations: 46.69 kB / 1.162 GB, free: 15.77 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/1.194, allocations: 48.81 kB / 1.162 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009185/1.194, allocations: 0.6521 MB / 1.163 GB, free: 15.33 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/1.194, allocations: 0 / 1.163 GB, free: 15.33 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/1.195, allocations: 31.95 kB / 1.163 GB, free: 15.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.447e-05/1.195, allocations: 43.02 kB / 1.163 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007306/1.195, allocations: 0.5306 MB / 1.164 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/1.198, allocations: 2.834 MB / 1.166 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007255/1.199, allocations: 0.5452 MB / 1.167 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/1.199, allocations: 243.9 kB / 1.167 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003358/1.199, allocations: 0.5622 MB / 1.168 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/1.2, allocations: 389.3 kB / 1.168 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 1.783e-06/1.2, allocations: 0 / 1.168 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.0007739/1.201, allocations: 0.5148 MB / 1.168 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/1.201, allocations: 85.58 kB / 1.169 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/1.201, allocations: 304.9 kB / 1.169 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.648e-05/1.201, allocations: 40.02 kB / 1.169 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/1.201, allocations: 276.8 kB / 1.169 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.351e-05/1.201, allocations: 155.2 kB / 1.169 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/1.201, allocations: 10.81 kB / 1.169 GB, free: 9.734 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.562e-05/1.201, allocations: 355.3 kB / 1.17 GB, free: 9.398 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/1.202, allocations: 220 kB / 1.17 GB, free: 9.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/1.202, allocations: 342.8 kB / 1.17 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/1.202, allocations: 272.9 kB / 1.17 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.202, allocations: 0 / 1.17 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000826/1.203, allocations: 0.6595 MB / 1.171 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002466/1.204, allocations: 1.081 MB / 1.172 GB, free: 7.172 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/1.204, allocations: 0 / 1.172 GB, free: 7.172 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/1.204, allocations: 8.188 kB / 1.172 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000505/1.204, allocations: 123.6 kB / 1.172 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/1.204, allocations: 12 kB / 1.172 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/1.205, allocations: 74.34 kB / 1.172 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/1.205, allocations: 19.5 kB / 1.172 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-06/1.205, allocations: 4 kB / 1.172 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007049/1.205, allocations: 0.5425 MB / 1.173 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.205, allocations: 3.984 kB / 1.173 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.863e-06/1.205, allocations: 8.562 kB / 1.173 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/1.206, allocations: 107.4 kB / 1.173 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/1.206, allocations: 17.06 kB / 1.173 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/1.206, allocations: 58.95 kB / 1.173 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/1.206, allocations: 23.06 kB / 1.173 GB, free: 6.379 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.0001189/1.206, allocations: 148.8 kB / 1.173 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.876e-05/1.206, allocations: 51.38 kB / 1.173 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008135/1.207, allocations: 0.557 MB / 1.174 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/1.207, allocations: 8 kB / 1.174 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.207, allocations: 3.953 kB / 1.174 GB, free: 5.809 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/1.207, allocations: 3.984 kB / 1.174 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005478/1.208, allocations: 0.6226 MB / 1.174 GB, free: 5.289 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.208, allocations: 8 kB / 1.174 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/1.208, allocations: 90.61 kB / 1.175 GB, free: 5.195 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/1.208, allocations: 4 kB / 1.175 GB, free: 5.191 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/1.208, allocations: 12.25 kB / 1.175 GB, free: 5.188 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/1.208, allocations: 3.938 kB / 1.175 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.208, allocations: 192 / 1.175 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/1.209, allocations: 0.8727 MB / 1.175 GB, free: 4.562 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/1.21, allocations: 173.2 kB / 1.176 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/1.21, allocations: 13.25 kB / 1.176 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/1.21, allocations: 41.94 kB / 1.176 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.21, allocations: 54.25 kB / 1.176 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/1.21, allocations: 14.75 kB / 1.176 GB, free: 4.305 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002005/1.21, allocations: 243.8 kB / 1.176 GB, free: 4.121 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.21, allocations: 4 kB / 1.176 GB, free: 4.117 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006315/1.211, allocations: 278.3 kB / 1.176 GB, free: 3.867 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.001251/1.212, allocations: 1.527 MB / 1.178 GB, free: 2.598 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001061/1.213, allocations: 0.9377 MB / 1.179 GB, free: 1.906 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.213, allocations: 4 kB / 1.179 GB, free: 1.902 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003205/1.214, allocations: 261.5 kB / 1.179 GB, free: 1.727 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007003/1.214, allocations: 162 kB / 1.179 GB, free: 1.602 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/1.216, allocations: 0.9452 MB / 1.18 GB, free: 0.7812 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/1.216, allocations: 0.9056 MB / 1.181 GB, free: 15.86 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0005955/1.217, allocations: 163.3 kB / 1.181 GB, free: 15.7 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/1.217, allocations: 190.2 kB / 1.181 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of SimCode: time 4.6e-07/1.217, allocations: 0 / 1.181 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/1.244, allocations: 12.46 MB / 1.193 GB, free: 3.371 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/1.245, allocations: 167.5 kB / 1.194 GB, free: 3.141 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/3.521, allocations: 0 / 1.194 GB, free: 3.141 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)