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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.751/1.751, 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.001235/0.001234, allocations: 184.5 kB / 377.1 MB, free: 1.559 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.689/1.689, allocations: 205.4 MB / 0.6367 GB, free: 8.645 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.00086/0.00086, allocations: 88.05 kB / 0.751 GB, free: 63.35 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005125/0.0005125, allocations: 12 kB / 0.8748 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3302, allocations: 116.3 MB / 0.9884 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9766/1.307, allocations: 157.7 MB / 1.142 GB, free: 20.88 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/1.307, allocations: 93.58 kB / 1.142 GB, free: 20.8 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07363/1.381, allocations: 27.6 MB / 1.169 GB, free: 13.15 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.234e-06/1.381, allocations: 0 / 1.169 GB, free: 13.15 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.737e-05/1.381, allocations: 19.94 kB / 1.169 GB, free: 13.13 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.002765/1.384, allocations: 0.8707 MB / 1.17 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/1.384, allocations: 8.031 kB / 1.17 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/1.385, allocations: 157 kB / 1.17 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009662/1.386, allocations: 452.6 kB / 1.171 GB, free: 11.56 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/1.386, allocations: 37 kB / 1.171 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/1.386, allocations: 55.42 kB / 1.171 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/1.388, allocations: 0.6731 MB / 1.172 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/1.388, allocations: 4 kB / 1.172 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/1.388, allocations: 27.97 kB / 1.172 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-05/1.388, allocations: 40.98 kB / 1.172 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/1.389, allocations: 0.5746 MB / 1.172 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/1.393, allocations: 2.83 MB / 1.175 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/1.395, allocations: 0.5955 MB / 1.176 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006349/1.395, allocations: 0.5622 MB / 1.176 GB, free: 5.766 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008059/1.396, allocations: 415.7 kB / 1.177 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 4.008e-06/1.396, allocations: 0 / 1.177 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.00161/1.398, allocations: 0.768 MB / 1.177 GB, free: 4.566 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/1.398, allocations: 85.48 kB / 1.177 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/1.398, allocations: 300.9 kB / 1.178 GB, free: 4.164 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.755e-05/1.398, allocations: 45.7 kB / 1.178 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/1.399, allocations: 284.5 kB / 1.178 GB, free: 3.832 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/1.399, allocations: 157.8 kB / 1.178 GB, free: 3.676 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/1.399, allocations: 8 kB / 1.178 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001665/1.399, allocations: 363.3 kB / 1.179 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/1.399, allocations: 241 kB / 1.179 GB, free: 3.07 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005317/1.4, allocations: 366.3 kB / 1.179 GB, free: 2.672 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005213/1.4, allocations: 303.7 kB / 1.179 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.4, allocations: 0 / 1.179 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001301/1.402, allocations: 0.7104 MB / 1.18 GB, free: 1.652 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005858/1.402, allocations: 1.069 MB / 1.181 GB, free: 0.4961 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/1.402, allocations: 8 kB / 1.181 GB, free: 500 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/1.402, allocations: 8 kB / 1.181 GB, free: 492 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005545/1.403, allocations: 115.8 kB / 1.181 GB, free: 376 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.276e-05/1.403, allocations: 7.938 kB / 1.181 GB, free: 368 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/1.404, allocations: 67.64 kB / 1.181 GB, free: 300 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-05/1.404, allocations: 23.98 kB / 1.181 GB, free: 276 kB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/1.404, allocations: 4 kB / 1.181 GB, free: 272 kB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001119/1.405, allocations: 0.5891 MB / 1.182 GB, free: 15.67 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/1.405, allocations: 8.234 kB / 1.182 GB, free: 15.66 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/1.405, allocations: 8 kB / 1.182 GB, free: 15.65 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/1.405, allocations: 107.8 kB / 1.182 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/1.405, allocations: 5.172 kB / 1.182 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004655/1.406, allocations: 79.44 kB / 1.182 GB, free: 15.46 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/1.406, allocations: 20 kB / 1.182 GB, free: 15.45 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.0003901/1.406, allocations: 309.8 kB / 1.182 GB, free: 15.13 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/1.406, allocations: 39.53 kB / 1.182 GB, free: 15.09 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/1.408, allocations: 0.6112 MB / 1.183 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/1.408, allocations: 12 kB / 1.183 GB, free: 14.47 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/1.408, allocations: 0 / 1.183 GB, free: 14.47 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/1.408, allocations: 3.953 kB / 1.183 GB, free: 14.46 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007829/1.408, allocations: 0.6263 MB / 1.184 GB, free: 13.79 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.408, allocations: 0 / 1.184 GB, free: 13.79 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004968/1.409, allocations: 91.86 kB / 1.184 GB, free: 13.7 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/1.409, allocations: 4 kB / 1.184 GB, free: 13.7 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.902e-05/1.409, allocations: 15.98 kB / 1.184 GB, free: 13.68 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/1.409, allocations: 0 / 1.184 GB, free: 13.68 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.409, allocations: 4 kB / 1.184 GB, free: 13.68 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/1.411, allocations: 0.9398 MB / 1.185 GB, free: 12.71 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/1.411, allocations: 176.4 kB / 1.185 GB, free: 12.52 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/1.411, allocations: 12 kB / 1.185 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/1.411, allocations: 43.94 kB / 1.185 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/1.411, allocations: 56.31 kB / 1.185 GB, free: 12.41 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/1.412, allocations: 12 kB / 1.185 GB, free: 12.39 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002886/1.412, allocations: 243.2 kB / 1.185 GB, free: 12.16 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.4e-07/1.412, allocations: 4 kB / 1.185 GB, free: 12.15 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008623/1.413, allocations: 279.1 kB / 1.186 GB, free: 11.88 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.0003569/1.413, allocations: 144.8 kB / 1.186 GB, free: 11.73 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001816/1.415, allocations: 0.9986 MB / 1.187 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.415, allocations: 0.8125 kB / 1.187 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005257/1.415, allocations: 290.4 kB / 1.187 GB, free: 10.42 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000748/1.416, allocations: 155.4 kB / 1.187 GB, free: 10.27 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/1.419, allocations: 1.285 MB / 1.188 GB, free: 8.965 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/1.419, allocations: 0.9109 MB / 1.189 GB, free: 8.023 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0005977/1.42, allocations: 141.2 kB / 1.189 GB, free: 7.891 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/1.42, allocations: 43.42 kB / 1.189 GB, free: 7.848 MB / 0.7605 GB Notification: Performance of SimCode: time 7.61e-07/1.42, allocations: 4 kB / 1.189 GB, free: 7.844 MB / 0.7605 GB Notification: Performance of Templates: time 0.01572/1.436, allocations: 7.654 MB / 1.197 GB, free: 328 kB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)