Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.189/2.189, allocations: 251.1 MB / 266.7 MB, free: 11.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001325/0.001325, allocations: 186.9 kB / 326.2 MB, free: 2.875 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.422/2.422, allocations: 205.4 MB / 0.5772 GB, free: 20.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009311/0.0009308, allocations: 99.09 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007606/0.0007608, allocations: 12.47 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2121, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2531/0.4653, allocations: 150.4 MB / 1.046 GB, free: 10.94 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000414/0.4657, allocations: 99.94 kB / 1.046 GB, free: 10.84 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.719/1.185, allocations: 27.37 MB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.615e-06/1.185, allocations: 0 / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.933e-05/1.185, allocations: 19.41 kB / 1.073 GB, free: 150.1 MB / 0.698 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.002505/1.187, allocations: 0.878 MB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.187, allocations: 9.75 kB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/1.189, allocations: 146.1 kB / 1.074 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009383/1.19, allocations: 441.3 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.325e-05/1.19, allocations: 38.27 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/1.19, allocations: 56.89 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/1.192, allocations: 0.6808 MB / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/1.192, allocations: 1.25 kB / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-05/1.192, allocations: 35.22 kB / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-05/1.192, allocations: 40.88 kB / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/1.194, allocations: 0.5718 MB / 1.076 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/1.199, allocations: 2.835 MB / 1.079 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/1.201, allocations: 0.59 MB / 1.079 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007858/1.202, allocations: 269 kB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005025/1.203, allocations: 0.5612 MB / 1.08 GB, free: 146.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001046/1.204, allocations: 415.2 kB / 1.081 GB, free: 146.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.316e-06/1.204, allocations: 0 / 1.081 GB, free: 146.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002697/1.206, allocations: 0.7734 MB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/1.207, allocations: 87.39 kB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005841/1.207, allocations: 352.7 kB / 1.082 GB, free: 145.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/1.207, allocations: 39.45 kB / 1.082 GB, free: 145.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/1.208, allocations: 277.3 kB / 1.082 GB, free: 145.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/1.208, allocations: 156.2 kB / 1.082 GB, free: 145.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/1.208, allocations: 9.562 kB / 1.082 GB, free: 145.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001076/1.208, allocations: 362.5 kB / 1.083 GB, free: 145.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008176/1.209, allocations: 239 kB / 1.083 GB, free: 145.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008679/1.21, allocations: 366 kB / 1.083 GB, free: 145 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008492/1.211, allocations: 301.7 kB / 1.083 GB, free: 145 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/1.211, allocations: 1.562 kB / 1.083 GB, free: 145 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002159/1.213, allocations: 0.7137 MB / 1.084 GB, free: 144.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.213, allocations: 191.2 kB / 1.084 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.213, allocations: 6.719 kB / 1.084 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/1.213, allocations: 5.5 kB / 1.084 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009893/1.214, allocations: 118.8 kB / 1.084 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/1.214, allocations: 5.969 kB / 1.084 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009175/1.215, allocations: 83.53 kB / 1.084 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/1.215, allocations: 18.81 kB / 1.085 GB, free: 144.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/1.215, allocations: 4.062 kB / 1.085 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001961/1.217, allocations: 0.5884 MB / 1.085 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/1.217, allocations: 3.094 kB / 1.085 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/1.217, allocations: 13.56 kB / 1.085 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008842/1.218, allocations: 106.2 kB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/1.218, allocations: 12.83 kB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008273/1.219, allocations: 61.55 kB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.278e-05/1.219, allocations: 19.69 kB / 1.085 GB, free: 144.2 MB / 0.698 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.0006115/1.219, allocations: 298.5 kB / 1.086 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/1.22, allocations: 50.81 kB / 1.086 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/1.222, allocations: 0.6039 MB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/1.222, allocations: 9.25 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/1.222, allocations: 3.984 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/1.222, allocations: 7.969 kB / 1.086 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/1.223, allocations: 0.6261 MB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.223, allocations: 2.688 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/1.224, allocations: 92.08 kB / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.378e-05/1.224, allocations: 9.344 kB / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/1.224, allocations: 11.97 kB / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/1.224, allocations: 0 / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.224, allocations: 3.938 kB / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/1.226, allocations: 0.919 MB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/1.227, allocations: 184 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.227, allocations: 23.89 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/1.228, allocations: 39.55 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.228, allocations: 48.02 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/1.228, allocations: 11.84 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003618/1.228, allocations: 245.5 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.228, allocations: 4 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001141/1.229, allocations: 276.7 kB / 1.089 GB, free: 142 MB / 0.698 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.0002765/1.23, allocations: 154.4 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002629/1.232, allocations: 0.9989 MB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.232, allocations: 3.938 kB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008566/1.233, allocations: 297.1 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/1.235, allocations: 150.8 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/1.238, allocations: 1.292 MB / 1.091 GB, free: 140.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/1.238, allocations: 0.8945 MB / 1.092 GB, free: 139.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009563/1.239, allocations: 145.6 kB / 1.092 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/1.239, allocations: 49.86 kB / 1.093 GB, free: 139.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.042e-06/1.24, allocations: 0 / 1.093 GB, free: 139.4 MB / 0.698 GB Notification: Performance of Templates: time 0.02285/1.262, allocations: 7.678 MB / 1.1 GB, free: 133.4 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)