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.728/1.728, allocations: 288.4 MB / 303.7 MB, free: 8.125 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.0009839/0.0009841, allocations: 183.4 kB / 372.3 MB, free: 10.12 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.709/1.709, allocations: 205.4 MB / 0.631 GB, free: 9.789 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.0008236/0.0008236, allocations: 92.81 kB / 0.7444 GB, free: 5.711 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003761, allocations: 10.88 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2046, allocations: 115.3 MB / 0.9801 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005563/0.2102, allocations: 5.348 MB / 0.9854 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003031/0.2133, allocations: 2.083 MB / 0.9874 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.2138, allocations: 7.938 kB / 0.9874 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003225/0.2141, allocations: 63.42 kB / 0.9875 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.2152, allocations: 294.5 kB / 0.9877 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009718/0.2162, allocations: 300.9 kB / 0.988 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0009303/0.2171, allocations: 0.8293 MB / 0.9888 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.2184, allocations: 0.795 MB / 0.9896 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.2188, allocations: 231 kB / 0.9898 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005085/0.2194, allocations: 302.8 kB / 0.9901 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.2195, allocations: 24 kB / 0.9901 GB, free: 17 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006025/0.2201, allocations: 315.4 kB / 0.9904 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2203, allocations: 151.5 kB / 0.9906 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.2205, allocations: 276.4 kB / 0.9909 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.2212, allocations: 0.7444 MB / 0.9916 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2212, allocations: 0 / 0.9916 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2212, allocations: 4 kB / 0.9916 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.89e-05/0.2212, allocations: 0 / 0.9916 GB, free: 15.52 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.001598/0.2228, allocations: 0.8269 MB / 0.9924 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2229, allocations: 8.031 kB / 0.9924 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006741/0.2236, allocations: 132.1 kB / 0.9925 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.2242, allocations: 434.9 kB / 0.9929 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.2242, allocations: 37.38 kB / 0.993 GB, free: 14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.827e-05/0.2243, allocations: 60.27 kB / 0.993 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.2254, allocations: 0.6929 MB / 0.9937 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.2254, allocations: 11.88 kB / 0.9937 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.2255, allocations: 19.98 kB / 0.9937 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.189e-05/0.2255, allocations: 52.97 kB / 0.9938 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009649/0.2265, allocations: 0.566 MB / 0.9943 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002969/0.2295, allocations: 2.916 MB / 0.9972 GB, free: 9.406 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.2304, allocations: 0.5662 MB / 0.9977 GB, free: 8.824 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003699/0.2308, allocations: 261.6 kB / 0.998 GB, free: 8.562 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003509/0.2311, allocations: 0.5622 MB / 0.9985 GB, free: 7.871 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005712/0.2317, allocations: 400.2 kB / 0.9989 GB, free: 7.461 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.124e-06/0.2317, allocations: 0 / 0.9989 GB, free: 7.461 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.00126/0.233, allocations: 0.7469 MB / 0.9997 GB, free: 6.707 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.233, allocations: 89.05 kB / 0.9997 GB, free: 6.602 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.2333, allocations: 341.6 kB / 1 GB, free: 6.266 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.2334, allocations: 45.7 kB / 1 GB, free: 6.215 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.2336, allocations: 280.4 kB / 1 GB, free: 5.934 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.544e-05/0.2337, allocations: 146 kB / 1.001 GB, free: 5.789 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.2337, allocations: 16.12 kB / 1.001 GB, free: 5.773 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.359e-05/0.2338, allocations: 362.8 kB / 1.001 GB, free: 5.41 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.2342, allocations: 236.9 kB / 1.001 GB, free: 5.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.2346, allocations: 354.7 kB / 1.001 GB, free: 4.785 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000742/0.2354, allocations: 0.5782 MB / 1.002 GB, free: 4.164 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2354, allocations: 0 / 1.002 GB, free: 4.164 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009961/0.2364, allocations: 0.6871 MB / 1.003 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.657e-05/0.2365, allocations: 193 kB / 1.003 GB, free: 3.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.954e-06/0.2365, allocations: 4 kB / 1.003 GB, free: 3.227 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.2365, allocations: 4 kB / 1.003 GB, free: 3.223 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.237, allocations: 111.8 kB / 1.003 GB, free: 3.113 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.237, allocations: 11.98 kB / 1.003 GB, free: 3.102 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.2375, allocations: 75.42 kB / 1.003 GB, free: 3.027 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.2375, allocations: 27.92 kB / 1.003 GB, free: 3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.2375, allocations: 4 kB / 1.003 GB, free: 2.996 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008659/0.2384, allocations: 0.5717 MB / 1.004 GB, free: 2.418 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.2384, allocations: 4.375 kB / 1.004 GB, free: 2.414 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.802e-06/0.2384, allocations: 4 kB / 1.004 GB, free: 2.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.2388, allocations: 112 kB / 1.004 GB, free: 2.301 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2388, allocations: 8 kB / 1.004 GB, free: 2.293 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003771/0.2392, allocations: 63.64 kB / 1.004 GB, free: 2.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.2393, allocations: 20 kB / 1.004 GB, free: 2.211 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.0002938/0.2396, allocations: 303.1 kB / 1.004 GB, free: 1.906 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.2396, allocations: 51.42 kB / 1.004 GB, free: 1.855 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000988/0.2406, allocations: 0.5878 MB / 1.005 GB, free: 1.258 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2406, allocations: 7.938 kB / 1.005 GB, free: 1.25 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2407, allocations: 0 / 1.005 GB, free: 1.25 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2407, allocations: 3.984 kB / 1.005 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005333/0.2412, allocations: 0.6219 MB / 1.005 GB, free: 0.5742 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2412, allocations: 0 / 1.005 GB, free: 0.5742 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.2417, allocations: 99.84 kB / 1.005 GB, free: 488 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2417, allocations: 4 kB / 1.005 GB, free: 484 kB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.2417, allocations: 8 kB / 1.005 GB, free: 476 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2418, allocations: 0 / 1.005 GB, free: 476 kB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2418, allocations: 3.984 kB / 1.005 GB, free: 472 kB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.2431, allocations: 0.8939 MB / 1.006 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/0.2434, allocations: 176.4 kB / 1.007 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/0.2434, allocations: 16 kB / 1.007 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.2437, allocations: 47.81 kB / 1.007 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.2439, allocations: 43.94 kB / 1.007 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.244, allocations: 19.98 kB / 1.007 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002556/0.2442, allocations: 243.2 kB / 1.007 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.2e-07/0.2442, allocations: 0 / 1.007 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007587/0.245, allocations: 259.1 kB / 1.007 GB, free: 14.73 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.0001994/0.2452, allocations: 131.2 kB / 1.007 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001633/0.2468, allocations: 0.9668 MB / 1.008 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2469, allocations: 0 / 1.008 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000486/0.2473, allocations: 284.2 kB / 1.008 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.2482, allocations: 165.8 kB / 1.009 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.25, allocations: 1.249 MB / 1.01 GB, free: 11.89 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.2505, allocations: 0.8989 MB / 1.011 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000504/0.251, allocations: 140.3 kB / 1.011 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.2511, allocations: 43.42 kB / 1.011 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of SimCode: time 4.3e-07/0.2511, allocations: 0 / 1.011 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of Templates: time 0.01267/0.2638, allocations: 7.641 MB / 1.018 GB, free: 3.23 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)