Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.473/2.473, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 188.8 kB / 325.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.64/2.64, allocations: 205.4 MB / 0.5766 GB, free: 20.73 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 91.86 kB / 0.6811 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004703/0.0004704, allocations: 8.625 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2132, allocations: 106.3 MB / 0.8989 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.007774/0.2211, allocations: 5.251 MB / 0.904 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00451/0.2256, allocations: 2.095 MB / 0.9061 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005172/0.2262, allocations: 7.938 kB / 0.9061 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002846/0.2265, allocations: 59.5 kB / 0.9061 GB, free: 58 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0009795/0.2275, allocations: 247.2 kB / 0.9064 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.2288, allocations: 293 kB / 0.9066 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001038/0.2298, allocations: 471 kB / 0.9071 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.2314, allocations: 0.7221 MB / 0.9078 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.2319, allocations: 211.2 kB / 0.908 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000456/0.2323, allocations: 242.9 kB / 0.9082 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.052e-05/0.2324, allocations: 23.98 kB / 0.9083 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.233, allocations: 179.7 kB / 0.9084 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.2332, allocations: 143.5 kB / 0.9086 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.2333, allocations: 129.4 kB / 0.9087 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000913/0.2342, allocations: 0.725 MB / 0.9094 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2343, allocations: 0 / 0.9094 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2343, allocations: 0 / 0.9094 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.2343, allocations: 3.938 kB / 0.9094 GB, free: 54.6 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.002155/0.2365, allocations: 0.8362 MB / 0.9102 GB, free: 53.71 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2365, allocations: 8.031 kB / 0.9102 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.2376, allocations: 143 kB / 0.9104 GB, free: 53.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008151/0.2384, allocations: 417.9 kB / 0.9108 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.343e-05/0.2385, allocations: 41 kB / 0.9108 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.2387, allocations: 47.98 kB / 0.9108 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.2403, allocations: 0.6848 MB / 0.9115 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.2404, allocations: 11.94 kB / 0.9115 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.213e-05/0.2405, allocations: 27.97 kB / 0.9115 GB, free: 52.26 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.2406, allocations: 48.94 kB / 0.9116 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.2423, allocations: 0.566 MB / 0.9121 GB, free: 51.65 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004765/0.2471, allocations: 2.908 MB / 0.915 GB, free: 48.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.2487, allocations: 0.5639 MB / 0.9155 GB, free: 47.91 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005265/0.2493, allocations: 0.5668 MB / 0.9161 GB, free: 47.22 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.2503, allocations: 390.5 kB / 0.9165 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.737e-06/0.2504, allocations: 3.938 kB / 0.9165 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.002242/0.2526, allocations: 0.7498 MB / 0.9172 GB, free: 46.06 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.2527, allocations: 85.17 kB / 0.9173 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/0.2532, allocations: 357.5 kB / 0.9176 GB, free: 45.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.982e-05/0.2533, allocations: 41.7 kB / 0.9177 GB, free: 45.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.2535, allocations: 276.5 kB / 0.9179 GB, free: 45.28 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.2537, allocations: 153.9 kB / 0.9181 GB, free: 45.12 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.2538, allocations: 16 kB / 0.9181 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.2539, allocations: 346.8 kB / 0.9184 GB, free: 44.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007029/0.2546, allocations: 241 kB / 0.9187 GB, free: 44.53 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000766/0.2554, allocations: 358.7 kB / 0.919 GB, free: 44.13 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/0.2561, allocations: 289.5 kB / 0.9193 GB, free: 43.84 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.2561, allocations: 0 / 0.9193 GB, free: 43.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001851/0.258, allocations: 0.6834 MB / 0.9199 GB, free: 43.15 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000282/0.2583, allocations: 1.077 MB / 0.921 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.2584, allocations: 4 kB / 0.921 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.2584, allocations: 4 kB / 0.921 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009375/0.2593, allocations: 111.8 kB / 0.9211 GB, free: 41.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.2594, allocations: 15.89 kB / 0.9211 GB, free: 41.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008215/0.2602, allocations: 75.64 kB / 0.9212 GB, free: 41.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.2603, allocations: 23.94 kB / 0.9212 GB, free: 41.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.2603, allocations: 0 / 0.9212 GB, free: 41.75 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001591/0.2619, allocations: 0.5795 MB / 0.9218 GB, free: 41.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2619, allocations: 3.938 kB / 0.9218 GB, free: 41.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.262, allocations: 8 kB / 0.9218 GB, free: 41.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007877/0.2628, allocations: 99.81 kB / 0.9219 GB, free: 41.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.2628, allocations: 12.23 kB / 0.9219 GB, free: 41.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007252/0.2635, allocations: 71.48 kB / 0.922 GB, free: 40.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-05/0.2636, allocations: 20 kB / 0.922 GB, free: 40.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004505/0.2641, allocations: 295.2 kB / 0.9223 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.2642, allocations: 47.53 kB / 0.9223 GB, free: 40.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.2659, allocations: 0.5894 MB / 0.9229 GB, free: 40.02 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2659, allocations: 4 kB / 0.9229 GB, free: 40.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.266, allocations: 4 kB / 0.9229 GB, free: 40.01 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.266, allocations: 0 / 0.9229 GB, free: 40.01 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009524/0.2669, allocations: 0.6219 MB / 0.9235 GB, free: 39.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.267, allocations: 4 kB / 0.9235 GB, free: 39.34 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009912/0.268, allocations: 99.83 kB / 0.9236 GB, free: 39.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.268, allocations: 0 / 0.9236 GB, free: 39.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.378e-05/0.2681, allocations: 12 kB / 0.9236 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.2681, allocations: 4 kB / 0.9236 GB, free: 39.22 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2681, allocations: 0 / 0.9236 GB, free: 39.22 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.2704, allocations: 0.9073 MB / 0.9245 GB, free: 38.29 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003178/0.2708, allocations: 172.5 kB / 0.9247 GB, free: 38.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.2709, allocations: 16 kB / 0.9247 GB, free: 38.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005748/0.2715, allocations: 39.95 kB / 0.9247 GB, free: 38.05 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.2717, allocations: 47.92 kB / 0.9248 GB, free: 38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.234e-05/0.2718, allocations: 19.98 kB / 0.9248 GB, free: 37.98 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003373/0.2721, allocations: 243.2 kB / 0.925 GB, free: 37.75 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2721, allocations: 0 / 0.925 GB, free: 37.75 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001028/0.2732, allocations: 263.1 kB / 0.9253 GB, free: 37.49 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 (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.000256/0.2734, allocations: 135.3 kB / 0.9254 GB, free: 37.35 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002455/0.2759, allocations: 0.9682 MB / 0.9263 GB, free: 36.35 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.276, allocations: 0 / 0.9263 GB, free: 36.35 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007643/0.2767, allocations: 283.8 kB / 0.9266 GB, free: 36.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.278, allocations: 165.7 kB / 0.9268 GB, free: 35.91 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.2807, allocations: 1.241 MB / 0.928 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2813, allocations: 0.8989 MB / 0.9289 GB, free: 33.72 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0009144/0.2822, allocations: 152.2 kB / 0.929 GB, free: 33.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.2825, allocations: 43.44 kB / 0.929 GB, free: 33.52 MB / 0.6042 GB Notification: Performance of SimCode: time 1.273e-06/0.2825, allocations: 0 / 0.929 GB, free: 33.52 MB / 0.6042 GB Notification: Performance of Templates: time 0.02019/0.3027, allocations: 7.537 MB / 0.9364 GB, free: 26.07 MB / 0.6042 GB