Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.8.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.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.903/1.903, allocations: 288.4 MB / 303.4 MB, free: 8.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.001777/0.001777, allocations: 164.6 kB / 372 MB, free: 10.27 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.828/1.828, allocations: 205.4 MB / 0.6307 GB, free: 9.961 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009002/0.0009003, allocations: 94.3 kB / 0.7441 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003687, allocations: 10.94 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2267, allocations: 115.3 MB / 0.9796 GB, free: 27.66 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005443/0.2321, allocations: 5.336 MB / 0.9848 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003313/0.2355, allocations: 2.083 MB / 0.9868 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004631/0.236, allocations: 4 kB / 0.9868 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.2363, allocations: 71.36 kB / 0.9869 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008477/0.2372, allocations: 250.6 kB / 0.9871 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.2382, allocations: 296.4 kB / 0.9874 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0008858/0.2391, allocations: 0.8294 MB / 0.9882 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.2401, allocations: 0.7234 MB / 0.9889 GB, free: 18 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.2405, allocations: 231 kB / 0.9892 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.2408, allocations: 302.7 kB / 0.9895 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.646e-05/0.2409, allocations: 20 kB / 0.9895 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.2413, allocations: 183.8 kB / 0.9897 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2414, allocations: 147.5 kB / 0.9898 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.891e-05/0.2415, allocations: 133.4 kB / 0.9899 GB, free: 17 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006516/0.2422, allocations: 0.7366 MB / 0.9906 GB, free: 16.26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2422, allocations: 0 / 0.9906 GB, free: 16.26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.497e-06/0.2422, allocations: 4 kB / 0.9906 GB, free: 16.26 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.2422, allocations: 3.938 kB / 0.9906 GB, free: 16.25 MB / 0.6198 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.001419/0.2436, allocations: 0.817 MB / 0.9914 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2437, allocations: 16.02 kB / 0.9915 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005803/0.2443, allocations: 135.1 kB / 0.9916 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.2447, allocations: 421.8 kB / 0.992 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.2448, allocations: 40.98 kB / 0.992 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-05/0.2449, allocations: 48 kB / 0.9921 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000961/0.2458, allocations: 0.6926 MB / 0.9928 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.2459, allocations: 0 / 0.9928 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.2459, allocations: 31.98 kB / 0.9928 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.266e-05/0.246, allocations: 52.97 kB / 0.9928 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008849/0.2469, allocations: 0.562 MB / 0.9934 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.2495, allocations: 2.916 MB / 0.9962 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008753/0.2504, allocations: 0.5645 MB / 0.9968 GB, free: 9.578 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.2507, allocations: 257.6 kB / 0.997 GB, free: 9.32 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003754/0.2511, allocations: 0.5583 MB / 0.9976 GB, free: 8.633 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005686/0.2517, allocations: 404.5 kB / 0.998 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 1.543e-06/0.2517, allocations: 0 / 0.998 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001234/0.253, allocations: 0.7537 MB / 0.9987 GB, free: 7.457 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.253, allocations: 81.11 kB / 0.9988 GB, free: 7.359 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.2533, allocations: 341.7 kB / 0.9991 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.2533, allocations: 41.7 kB / 0.9991 GB, free: 6.977 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.2535, allocations: 284.3 kB / 0.9994 GB, free: 6.691 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.372e-05/0.2536, allocations: 146 kB / 0.9995 GB, free: 6.547 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.2536, allocations: 12 kB / 0.9996 GB, free: 6.535 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.2538, allocations: 358.8 kB / 0.9999 GB, free: 6.176 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003805/0.2541, allocations: 233 kB / 1 GB, free: 5.949 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/0.2546, allocations: 366.6 kB / 1 GB, free: 5.543 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004243/0.255, allocations: 286.7 kB / 1.001 GB, free: 5.258 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.255, allocations: 7.938 kB / 1.001 GB, free: 5.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009711/0.256, allocations: 0.6868 MB / 1.001 GB, free: 4.551 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.96e-05/0.2561, allocations: 193 kB / 1.002 GB, free: 4.316 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2561, allocations: 11.98 kB / 1.002 GB, free: 4.305 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.2561, allocations: 4 kB / 1.002 GB, free: 4.301 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.2566, allocations: 111.8 kB / 1.002 GB, free: 4.191 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2566, allocations: 7.953 kB / 1.002 GB, free: 4.184 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.2571, allocations: 79.47 kB / 1.002 GB, free: 4.105 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.2571, allocations: 20 kB / 1.002 GB, free: 4.086 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.759e-06/0.2571, allocations: 0 / 1.002 GB, free: 4.086 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008503/0.258, allocations: 0.5759 MB / 1.002 GB, free: 3.504 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.258, allocations: 256 / 1.002 GB, free: 3.504 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.943e-06/0.258, allocations: 15.98 kB / 1.002 GB, free: 3.488 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.2584, allocations: 103.9 kB / 1.003 GB, free: 3.387 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2584, allocations: 11.94 kB / 1.003 GB, free: 3.375 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.2587, allocations: 63.64 kB / 1.003 GB, free: 3.312 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.2588, allocations: 20 kB / 1.003 GB, free: 3.293 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.259, allocations: 312.7 kB / 1.003 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.548e-05/0.2591, allocations: 47.44 kB / 1.003 GB, free: 2.934 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009462/0.26, allocations: 0.5775 MB / 1.004 GB, free: 2.348 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.2601, allocations: 4 kB / 1.004 GB, free: 2.344 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.2601, allocations: 8 kB / 1.004 GB, free: 2.336 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.2601, allocations: 3.984 kB / 1.004 GB, free: 2.332 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005824/0.2607, allocations: 0.6142 MB / 1.004 GB, free: 1.668 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2607, allocations: 3.953 kB / 1.004 GB, free: 1.664 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.2612, allocations: 99.84 kB / 1.004 GB, free: 1.566 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2612, allocations: 0 / 1.004 GB, free: 1.566 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.2612, allocations: 15.98 kB / 1.004 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2612, allocations: 4 kB / 1.004 GB, free: 1.547 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2612, allocations: 0 / 1.004 GB, free: 1.547 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.2625, allocations: 0.894 MB / 1.005 GB, free: 0.6289 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.2626, allocations: 176.4 kB / 1.005 GB, free: 448 kB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.2627, allocations: 12 kB / 1.005 GB, free: 436 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.263, allocations: 39.95 kB / 1.005 GB, free: 396 kB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.2631, allocations: 47.92 kB / 1.005 GB, free: 348 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.2632, allocations: 16 kB / 1.005 GB, free: 332 kB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001891/0.2634, allocations: 247.1 kB / 1.006 GB, free: 84 kB / 0.6198 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2634, allocations: 4 kB / 1.006 GB, free: 80 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006732/0.264, allocations: 267.1 kB / 1.006 GB, free: 15.82 MB / 0.6355 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 (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.0002135/0.2643, allocations: 126.4 kB / 1.006 GB, free: 15.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001583/0.2659, allocations: 0.9748 MB / 1.007 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2659, allocations: 3.938 kB / 1.007 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.2663, allocations: 280.2 kB / 1.007 GB, free: 14.41 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007497/0.2671, allocations: 160 kB / 1.007 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.269, allocations: 1.252 MB / 1.009 GB, free: 12.98 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.2694, allocations: 0.8989 MB / 1.009 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005013/0.2699, allocations: 140.2 kB / 1.01 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.2701, allocations: 43.44 kB / 1.01 GB, free: 11.87 MB / 0.6355 GB Notification: Performance of SimCode: time 4.51e-07/0.2701, allocations: 0 / 1.01 GB, free: 11.87 MB / 0.6355 GB Notification: Performance of Templates: time 0.01235/0.2825, allocations: 7.565 MB / 1.017 GB, free: 4.395 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)