Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 97.72 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0121/0.0121, allocations: 170.9 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.93/2.93, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003727, allocations: 11.22 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4096, allocations: 162.2 MB / 1.074 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006956/0.4166, allocations: 5.661 MB / 1.08 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003831/0.4204, allocations: 2.15 MB / 1.082 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002971/0.4208, allocations: 11.94 kB / 1.082 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002831/0.4211, allocations: 67.42 kB / 1.082 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0008033/0.4219, allocations: 314.5 kB / 1.082 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009434/0.4228, allocations: 371.4 kB / 1.083 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009844/0.4238, allocations: 0.9815 MB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.4252, allocations: 0.8035 MB / 1.084 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004032/0.4257, allocations: 234.9 kB / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004942/0.4262, allocations: 318.5 kB / 1.085 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.4262, allocations: 20 kB / 1.085 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006134/0.4269, allocations: 339.4 kB / 1.085 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.427, allocations: 155.4 kB / 1.085 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.4273, allocations: 292.1 kB / 1.086 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009512/0.4283, allocations: 0.9539 MB / 1.086 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4283, allocations: 0 / 1.086 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4283, allocations: 0 / 1.086 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.297e-06/0.4283, allocations: 0 / 1.086 GB, free: 10.8 MB / 0.8419 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.001661/0.43, allocations: 0.8404 MB / 1.087 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.43, allocations: 8.031 kB / 1.087 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006914/0.4307, allocations: 136.1 kB / 1.087 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006555/0.4314, allocations: 450.7 kB / 1.088 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.861e-05/0.4315, allocations: 37.38 kB / 1.088 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.597e-05/0.4316, allocations: 52.36 kB / 1.088 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.4328, allocations: 0.7007 MB / 1.089 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.4328, allocations: 0 / 1.089 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.22e-05/0.4329, allocations: 27.97 kB / 1.089 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-05/0.433, allocations: 44.98 kB / 1.089 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.434, allocations: 0.5777 MB / 1.089 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.4375, allocations: 2.924 MB / 1.092 GB, free: 4.645 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.4387, allocations: 0.5639 MB / 1.093 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.4391, allocations: 257.6 kB / 1.093 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005844/0.4397, allocations: 0.5623 MB / 1.093 GB, free: 3.109 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007162/0.4404, allocations: 408.4 kB / 1.094 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=46): time 4.929e-06/0.4405, allocations: 4.109 kB / 1.094 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of matching and sorting (n=46): time 0.001468/0.4419, allocations: 0.7536 MB / 1.095 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.442, allocations: 85.11 kB / 1.095 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.4424, allocations: 365.7 kB / 1.095 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.237e-05/0.4425, allocations: 45.7 kB / 1.095 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.4427, allocations: 292.2 kB / 1.095 GB, free: 1.117 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.4429, allocations: 146 kB / 1.095 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/0.4429, allocations: 53.69 kB / 1.096 GB, free: 0.9141 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4431, allocations: 358.7 kB / 1.096 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004401/0.4435, allocations: 237 kB / 1.096 GB, free: 332 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005503/0.4441, allocations: 366.6 kB / 1.096 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009477/0.4451, allocations: 0.5818 MB / 1.097 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4451, allocations: 0 / 1.097 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001254/0.4463, allocations: 0.6912 MB / 1.098 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.4465, allocations: 197 kB / 1.098 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.4465, allocations: 4 kB / 1.098 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4466, allocations: 4 kB / 1.098 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.4471, allocations: 115.8 kB / 1.098 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.4471, allocations: 4 kB / 1.098 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.4476, allocations: 79.59 kB / 1.098 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.4476, allocations: 28 kB / 1.098 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.395e-06/0.4476, allocations: 5.406 kB / 1.098 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001008/0.4487, allocations: 0.5836 MB / 1.099 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.4487, allocations: 0 / 1.099 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.4487, allocations: 8 kB / 1.099 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.4491, allocations: 99.81 kB / 1.099 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.4491, allocations: 8 kB / 1.099 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.4495, allocations: 59.64 kB / 1.099 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.975e-05/0.4495, allocations: 23.94 kB / 1.099 GB, free: 13.33 MB / 0.8575 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000383/0.4499, allocations: 311.2 kB / 1.099 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.769e-05/0.45, allocations: 47.44 kB / 1.099 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.4512, allocations: 0.5893 MB / 1.1 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.4512, allocations: 4 kB / 1.1 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4512, allocations: 0 / 1.1 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4512, allocations: 7.984 kB / 1.1 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.4519, allocations: 0.6219 MB / 1.1 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.452, allocations: 0 / 1.1 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.4525, allocations: 103.8 kB / 1.101 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.942e-06/0.4525, allocations: 4 kB / 1.101 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/0.4525, allocations: 15.98 kB / 1.101 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4525, allocations: 4 kB / 1.101 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4525, allocations: 0 / 1.101 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.454, allocations: 0.9018 MB / 1.101 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.4542, allocations: 184.4 kB / 1.102 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.955e-05/0.4543, allocations: 12.19 kB / 1.102 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.4546, allocations: 43.95 kB / 1.102 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.4548, allocations: 43.94 kB / 1.102 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.4548, allocations: 15.94 kB / 1.102 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002933/0.4551, allocations: 267.2 kB / 1.102 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4551, allocations: 0 / 1.102 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007436/0.4559, allocations: 255.1 kB / 1.102 GB, free: 9.816 MB / 0.8575 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 (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002215/0.4561, allocations: 132.3 kB / 1.102 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001618/0.4577, allocations: 0.9789 MB / 1.103 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4578, allocations: 4 kB / 1.103 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004645/0.4582, allocations: 279.8 kB / 1.104 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008587/0.4591, allocations: 165.3 kB / 1.104 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.4612, allocations: 1.327 MB / 1.105 GB, free: 6.883 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.4617, allocations: 0.8951 MB / 1.106 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005016/0.4622, allocations: 140.3 kB / 1.106 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.4623, allocations: 43.42 kB / 1.106 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of SimCode: time 2.134e-06/0.4623, allocations: 0 / 1.106 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of Templates: time 0.01392/0.4763, allocations: 7.908 MB / 1.114 GB, free: 13.96 MB / 0.8731 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)