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.769/1.769, allocations: 292.6 MB / 307.5 MB, free: 5.207 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.001063/0.001063, allocations: 187.4 kB / 377.1 MB, free: 1.523 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.772/1.772, allocations: 205.4 MB / 0.6366 GB, free: 8.617 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.0009049/0.0009047, allocations: 97.25 kB / 0.7509 GB, free: 63.17 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 8 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9328/1.231, allocations: 157.7 MB / 1.142 GB, free: 20.79 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004705/1.231, allocations: 103.8 kB / 1.143 GB, free: 20.71 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07062/1.302, allocations: 27.61 MB / 1.17 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.144e-06/1.302, allocations: 0 / 1.17 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.025e-05/1.302, allocations: 15.94 kB / 1.17 GB, free: 13.04 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.002033/1.304, allocations: 0.8741 MB / 1.17 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.42e-05/1.304, allocations: 16.02 kB / 1.17 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/1.304, allocations: 90.5 kB / 1.17 GB, free: 12 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009244/1.305, allocations: 161 kB / 1.171 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007561/1.306, allocations: 448.7 kB / 1.171 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/1.306, allocations: 37 kB / 1.171 GB, free: 11.32 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/1.306, allocations: 47.44 kB / 1.171 GB, free: 11.28 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/1.307, allocations: 0.6848 MB / 1.172 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/1.307, allocations: 0 / 1.172 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.421e-05/1.307, allocations: 23.98 kB / 1.172 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.852e-05/1.308, allocations: 40.98 kB / 1.172 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/1.309, allocations: 0.5815 MB / 1.172 GB, free: 9.918 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/1.312, allocations: 2.829 MB / 1.175 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/1.313, allocations: 0.5877 MB / 1.176 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000558/1.314, allocations: 0.5623 MB / 1.176 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000734/1.315, allocations: 415.7 kB / 1.177 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 3.416e-06/1.315, allocations: 0 / 1.177 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.001596/1.316, allocations: 0.7757 MB / 1.177 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/1.316, allocations: 89.48 kB / 1.178 GB, free: 4.254 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004179/1.317, allocations: 296.9 kB / 1.178 GB, free: 3.957 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/1.317, allocations: 45.69 kB / 1.178 GB, free: 3.906 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/1.317, allocations: 284.5 kB / 1.178 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/1.317, allocations: 157.8 kB / 1.178 GB, free: 3.469 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/1.317, allocations: 12 kB / 1.178 GB, free: 3.457 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001783/1.318, allocations: 359.3 kB / 1.179 GB, free: 3.098 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/1.318, allocations: 241 kB / 1.179 GB, free: 2.863 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005537/1.319, allocations: 366.3 kB / 1.179 GB, free: 2.465 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005355/1.319, allocations: 301.5 kB / 1.18 GB, free: 2.168 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.319, allocations: 0 / 1.18 GB, free: 2.168 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001227/1.32, allocations: 0.7098 MB / 1.18 GB, free: 1.449 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006103/1.321, allocations: 1.08 MB / 1.181 GB, free: 288 kB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.321, allocations: 4 kB / 1.181 GB, free: 284 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/1.321, allocations: 8 kB / 1.181 GB, free: 276 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/1.322, allocations: 111.8 kB / 1.181 GB, free: 164 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/1.322, allocations: 11.98 kB / 1.181 GB, free: 152 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/1.322, allocations: 63.64 kB / 1.181 GB, free: 88 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/1.322, allocations: 23.98 kB / 1.181 GB, free: 64 kB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/1.322, allocations: 4 kB / 1.181 GB, free: 60 kB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/1.323, allocations: 0.5888 MB / 1.182 GB, free: 15.46 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.323, allocations: 4 kB / 1.182 GB, free: 15.46 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.336e-06/1.323, allocations: 12.25 kB / 1.182 GB, free: 15.45 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/1.324, allocations: 107.8 kB / 1.182 GB, free: 15.34 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/1.324, allocations: 8.578 kB / 1.182 GB, free: 15.34 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/1.324, allocations: 71.48 kB / 1.182 GB, free: 15.27 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/1.324, allocations: 24 kB / 1.182 GB, free: 15.24 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 () * 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.0005033/1.325, allocations: 299.2 kB / 1.183 GB, free: 14.94 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.064e-05/1.325, allocations: 47.47 kB / 1.183 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/1.326, allocations: 0.606 MB / 1.183 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/1.326, allocations: 8 kB / 1.183 GB, free: 14.28 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/1.326, allocations: 7.953 kB / 1.183 GB, free: 14.27 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/1.326, allocations: 0 / 1.183 GB, free: 14.27 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/1.327, allocations: 0.6263 MB / 1.184 GB, free: 13.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/1.327, allocations: 0 / 1.184 GB, free: 13.59 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/1.328, allocations: 91.86 kB / 1.184 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/1.328, allocations: 4 kB / 1.184 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/1.328, allocations: 11.98 kB / 1.184 GB, free: 13.49 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/1.328, allocations: 0 / 1.184 GB, free: 13.49 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/1.328, allocations: 7.938 kB / 1.184 GB, free: 13.48 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/1.329, allocations: 0.936 MB / 1.185 GB, free: 12.52 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/1.33, allocations: 180.5 kB / 1.185 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.37e-05/1.33, allocations: 15.94 kB / 1.185 GB, free: 12.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/1.33, allocations: 39.95 kB / 1.185 GB, free: 12.27 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/1.33, allocations: 56.3 kB / 1.185 GB, free: 12.21 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/1.33, allocations: 19.98 kB / 1.185 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002759/1.33, allocations: 243.2 kB / 1.185 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of sort global known variables: time 3.41e-07/1.33, allocations: 4 kB / 1.185 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000854/1.331, allocations: 271.1 kB / 1.186 GB, free: 11.68 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) * 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.002154/1.333, allocations: 1.59 MB / 1.187 GB, free: 10.05 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00187/1.335, allocations: 1.001 MB / 1.188 GB, free: 9.031 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.335, allocations: 4.125 kB / 1.188 GB, free: 9.027 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005274/1.336, allocations: 286.3 kB / 1.188 GB, free: 8.746 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/1.337, allocations: 148.6 kB / 1.189 GB, free: 8.605 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006354/1.343, allocations: 4.809 MB / 1.193 GB, free: 3.703 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/1.344, allocations: 0.907 MB / 1.194 GB, free: 2.766 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.000645/1.344, allocations: 151 kB / 1.194 GB, free: 2.625 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/1.345, allocations: 191.3 kB / 1.195 GB, free: 2.438 MB / 0.7605 GB Notification: Performance of SimCode: time 9.648e-06/1.345, allocations: 0 / 1.195 GB, free: 2.438 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/1.374, allocations: 11.94 MB / 1.206 GB, free: 6.738 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/1.374, allocations: 184 kB / 1.206 GB, free: 6.5 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.961, allocations: 7.938 kB / 1.206 GB, free: 6.492 MB / 0.7761 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)