Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 252 MB / 268 MB, free: 10.87 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.0009214/0.0009216, allocations: 175.7 kB / 327.6 MB, free: 2.117 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 0.5786 GB, free: 20.13 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.0007486/0.0007487, allocations: 85.12 kB / 0.6832 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003033, allocations: 8.719 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1942, allocations: 106.3 MB / 0.9015 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005046/0.1993, allocations: 5.63 MB / 0.907 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002702/0.202, allocations: 2.191 MB / 0.9091 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.2022, allocations: 11.94 kB / 0.9091 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.2025, allocations: 67.36 kB / 0.9092 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005495/0.203, allocations: 302.6 kB / 0.9095 GB, free: 55.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.2037, allocations: 374.4 kB / 0.9098 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000612/0.2043, allocations: 0.966 MB / 0.9108 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009665/0.2053, allocations: 0.8038 MB / 0.9115 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.2056, allocations: 242.8 kB / 0.9118 GB, free: 52.9 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.2059, allocations: 310.6 kB / 0.9121 GB, free: 52.6 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.319e-05/0.206, allocations: 20 kB / 0.9121 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00043/0.2064, allocations: 331.4 kB / 0.9124 GB, free: 52.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.2065, allocations: 143.5 kB / 0.9125 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.2067, allocations: 300.1 kB / 0.9128 GB, free: 51.81 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.2073, allocations: 0.7367 MB / 0.9136 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2073, allocations: 7.938 kB / 0.9136 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2073, allocations: 0 / 0.9136 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.2073, allocations: 0 / 0.9136 GB, free: 51.07 MB / 0.6042 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.001241/0.2085, allocations: 0.8248 MB / 0.9144 GB, free: 50.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2086, allocations: 11.97 kB / 0.9144 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005769/0.2092, allocations: 136 kB / 0.9145 GB, free: 50.04 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.2096, allocations: 442.8 kB / 0.9149 GB, free: 49.57 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.443e-05/0.2097, allocations: 37.36 kB / 0.915 GB, free: 49.53 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.2098, allocations: 52.38 kB / 0.915 GB, free: 49.48 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009056/0.2107, allocations: 0.6968 MB / 0.9157 GB, free: 48.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.2107, allocations: 0 / 0.9157 GB, free: 48.75 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.012e-05/0.2108, allocations: 27.98 kB / 0.9157 GB, free: 48.72 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-05/0.2108, allocations: 48.95 kB / 0.9158 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008633/0.2117, allocations: 0.5777 MB / 0.9163 GB, free: 48.1 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.2144, allocations: 2.912 MB / 0.9192 GB, free: 44.94 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008794/0.2153, allocations: 0.5666 MB / 0.9197 GB, free: 44.36 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003644/0.2157, allocations: 253.6 kB / 0.92 GB, free: 44.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003595/0.2161, allocations: 0.5661 MB / 0.9205 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005537/0.2166, allocations: 410.8 kB / 0.9209 GB, free: 42.99 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 1.653e-06/0.2166, allocations: 0 / 0.9209 GB, free: 42.99 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001198/0.2178, allocations: 0.7395 MB / 0.9216 GB, free: 42.25 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.2179, allocations: 89.09 kB / 0.9217 GB, free: 42.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.2182, allocations: 357.5 kB / 0.9221 GB, free: 41.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.2182, allocations: 37.7 kB / 0.9221 GB, free: 41.74 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2184, allocations: 284.5 kB / 0.9224 GB, free: 41.46 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.2184, allocations: 149.8 kB / 0.9225 GB, free: 41.31 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.2185, allocations: 12 kB / 0.9225 GB, free: 41.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.2186, allocations: 358.7 kB / 0.9229 GB, free: 40.94 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.2189, allocations: 241 kB / 0.9231 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004048/0.2193, allocations: 362.6 kB / 0.9234 GB, free: 40.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/0.2201, allocations: 0.5711 MB / 0.924 GB, free: 39.68 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.2201, allocations: 4 kB / 0.924 GB, free: 39.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009366/0.221, allocations: 0.6871 MB / 0.9247 GB, free: 38.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.996e-05/0.2211, allocations: 196.8 kB / 0.9249 GB, free: 38.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2211, allocations: 11.92 kB / 0.9249 GB, free: 38.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2212, allocations: 4 kB / 0.9249 GB, free: 38.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.2217, allocations: 104 kB / 0.925 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.2217, allocations: 15.94 kB / 0.925 GB, free: 38.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.2221, allocations: 79.47 kB / 0.9251 GB, free: 38.53 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.2221, allocations: 20 kB / 0.9251 GB, free: 38.51 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.571e-06/0.2221, allocations: 4 kB / 0.9251 GB, free: 38.51 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008163/0.223, allocations: 0.5721 MB / 0.9256 GB, free: 37.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.223, allocations: 7.938 kB / 0.9257 GB, free: 37.92 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.761e-06/0.223, allocations: 15.95 kB / 0.9257 GB, free: 37.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.2234, allocations: 103.8 kB / 0.9258 GB, free: 37.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.2234, allocations: 4 kB / 0.9258 GB, free: 37.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.2237, allocations: 79.67 kB / 0.9259 GB, free: 37.72 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.2238, allocations: 20 kB / 0.9259 GB, free: 37.7 MB / 0.6042 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 (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.0002311/0.224, allocations: 295.1 kB / 0.9262 GB, free: 37.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.2241, allocations: 43.53 kB / 0.9262 GB, free: 37.36 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008857/0.225, allocations: 0.5956 MB / 0.9268 GB, free: 36.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.225, allocations: 8 kB / 0.9268 GB, free: 36.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.225, allocations: 0 / 0.9268 GB, free: 36.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.225, allocations: 3.984 kB / 0.9268 GB, free: 36.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005132/0.2255, allocations: 0.6218 MB / 0.9274 GB, free: 36.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2255, allocations: 0 / 0.9274 GB, free: 36.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/0.226, allocations: 103.8 kB / 0.9275 GB, free: 35.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.226, allocations: 4 kB / 0.9275 GB, free: 35.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.2261, allocations: 11.98 kB / 0.9275 GB, free: 35.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2261, allocations: 4 kB / 0.9275 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2261, allocations: 192 / 0.9275 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.2273, allocations: 0.894 MB / 0.9284 GB, free: 35.04 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.2275, allocations: 172.4 kB / 0.9285 GB, free: 34.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.306e-05/0.2275, allocations: 20 kB / 0.9286 GB, free: 34.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.2278, allocations: 39.95 kB / 0.9286 GB, free: 34.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2279, allocations: 43.94 kB / 0.9286 GB, free: 34.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.228, allocations: 16 kB / 0.9287 GB, free: 34.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001863/0.2282, allocations: 247.2 kB / 0.9289 GB, free: 34.49 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2282, allocations: 0 / 0.9289 GB, free: 34.49 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005519/0.2287, allocations: 267.1 kB / 0.9292 GB, free: 34.23 MB / 0.6042 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.0001649/0.2289, allocations: 123.2 kB / 0.9293 GB, free: 34.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001302/0.2302, allocations: 0.9802 MB / 0.9302 GB, free: 33.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2302, allocations: 0 / 0.9302 GB, free: 33.09 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.2306, allocations: 279.7 kB / 0.9305 GB, free: 32.82 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/0.2314, allocations: 163.4 kB / 0.9307 GB, free: 32.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.2329, allocations: 1.353 MB / 0.932 GB, free: 31.28 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.2332, allocations: 0.8872 MB / 0.9328 GB, free: 30.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.2334, allocations: 47.42 kB / 0.9329 GB, free: 30.32 MB / 0.6042 GB Notification: Performance of SimCode: time 8.52e-07/0.2334, allocations: 0 / 0.9329 GB, free: 30.32 MB / 0.6042 GB Notification: Performance of Templates: time 0.008294/0.2417, allocations: 7.78 MB / 0.9405 GB, free: 22.6 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)