Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.224/2.224, allocations: 251.3 MB / 266.2 MB, free: 11.52 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.00132/0.00132, allocations: 183.1 kB / 325.8 MB, free: 2.801 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.695/2.695, allocations: 205.4 MB / 0.5767 GB, free: 20.76 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.001282/0.001282, allocations: 89.98 kB / 0.6812 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006778/0.0006781, allocations: 12.03 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2609, allocations: 106.3 MB / 0.899 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005705/0.2666, allocations: 3.87 MB / 0.9028 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004509/0.2712, allocations: 2.106 MB / 0.9049 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.2718, allocations: 7.938 kB / 0.9049 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003568/0.2721, allocations: 67.42 kB / 0.905 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.2732, allocations: 254.6 kB / 0.9052 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.2747, allocations: 295.4 kB / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001186/0.2759, allocations: 0.8333 MB / 0.9063 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.2775, allocations: 0.773 MB / 0.907 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004209/0.2779, allocations: 235 kB / 0.9073 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005386/0.2785, allocations: 302.8 kB / 0.9076 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/0.2786, allocations: 20 kB / 0.9076 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005333/0.2791, allocations: 187.8 kB / 0.9078 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.2793, allocations: 147.5 kB / 0.9079 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.2795, allocations: 129.4 kB / 0.908 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008861/0.2804, allocations: 0.7211 MB / 0.9087 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.2804, allocations: 4 kB / 0.9087 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2804, allocations: 7.875 kB / 0.9087 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.2804, allocations: 4 kB / 0.9087 GB, free: 55.4 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.002969/0.2834, allocations: 0.8287 MB / 0.9096 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.2835, allocations: 16.03 kB / 0.9096 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.2853, allocations: 124.1 kB / 0.9097 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.2868, allocations: 423.2 kB / 0.9101 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-05/0.2869, allocations: 41.36 kB / 0.9101 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/0.2871, allocations: 48.38 kB / 0.9102 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.2901, allocations: 0.6968 MB / 0.9109 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.059e-05/0.2902, allocations: 0 / 0.9109 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.2904, allocations: 31.92 kB / 0.9109 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/0.2905, allocations: 48.97 kB / 0.9109 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/0.2931, allocations: 0.566 MB / 0.9115 GB, free: 52.46 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007389/0.3006, allocations: 2.912 MB / 0.9143 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3032, allocations: 0.5653 MB / 0.9149 GB, free: 48.72 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.3043, allocations: 257.4 kB / 0.9151 GB, free: 48.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007172/0.3051, allocations: 0.5662 MB / 0.9157 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.3065, allocations: 401.9 kB / 0.9161 GB, free: 47.36 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 5.28e-06/0.3066, allocations: 0 / 0.9161 GB, free: 47.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.003481/0.3101, allocations: 0.7433 MB / 0.9168 GB, free: 46.61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.3102, allocations: 89.05 kB / 0.9169 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006982/0.3109, allocations: 353.7 kB / 0.9172 GB, free: 46.15 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.3111, allocations: 37.7 kB / 0.9172 GB, free: 46.11 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.3114, allocations: 280.5 kB / 0.9175 GB, free: 45.83 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.3117, allocations: 149.8 kB / 0.9177 GB, free: 45.68 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.458e-05/0.3118, allocations: 12 kB / 0.9177 GB, free: 45.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3119, allocations: 358.7 kB / 0.918 GB, free: 45.31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.3131, allocations: 233 kB / 0.9182 GB, free: 45.08 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.3143, allocations: 362.8 kB / 0.9186 GB, free: 44.68 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.3155, allocations: 293.6 kB / 0.9189 GB, free: 44.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.3156, allocations: 4 kB / 0.9189 GB, free: 44.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002888/0.3185, allocations: 0.6835 MB / 0.9195 GB, free: 43.69 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/0.3187, allocations: 193.1 kB / 0.9197 GB, free: 43.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3187, allocations: 4 kB / 0.9197 GB, free: 43.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.521e-05/0.3188, allocations: 4 kB / 0.9197 GB, free: 43.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.3203, allocations: 115.8 kB / 0.9198 GB, free: 43.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/0.3203, allocations: 7.938 kB / 0.9198 GB, free: 43.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.3216, allocations: 75.58 kB / 0.9199 GB, free: 43.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-05/0.3218, allocations: 23.98 kB / 0.9199 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3218, allocations: 3.938 kB / 0.9199 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002554/0.3244, allocations: 0.5793 MB / 0.9205 GB, free: 42.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3244, allocations: 0 / 0.9205 GB, free: 42.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3245, allocations: 8 kB / 0.9205 GB, free: 42.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.3257, allocations: 103.8 kB / 0.9206 GB, free: 42.53 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.3258, allocations: 8 kB / 0.9206 GB, free: 42.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.3269, allocations: 71.7 kB / 0.9207 GB, free: 42.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.996e-05/0.327, allocations: 20 kB / 0.9207 GB, free: 42.43 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.0006247/0.3277, allocations: 307.2 kB / 0.921 GB, free: 42.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.3279, allocations: 47.44 kB / 0.921 GB, free: 42.08 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/0.3304, allocations: 0.5878 MB / 0.9216 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.3305, allocations: 4 kB / 0.9216 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.3305, allocations: 4 kB / 0.9216 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.3305, allocations: 3.984 kB / 0.9216 GB, free: 41.47 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.332, allocations: 0.6218 MB / 0.9222 GB, free: 40.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.332, allocations: 0 / 0.9222 GB, free: 40.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/0.3336, allocations: 103.8 kB / 0.9223 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.3337, allocations: 192 / 0.9223 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/0.3337, allocations: 15.98 kB / 0.9223 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.3338, allocations: 4 kB / 0.9224 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3338, allocations: 0 / 0.9224 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003631/0.3374, allocations: 0.89 MB / 0.9232 GB, free: 39.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004705/0.338, allocations: 172.5 kB / 0.9234 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3382, allocations: 15.98 kB / 0.9234 GB, free: 39.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009159/0.3391, allocations: 43.95 kB / 0.9234 GB, free: 39.53 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.3394, allocations: 47.92 kB / 0.9235 GB, free: 39.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-05/0.3395, allocations: 15.94 kB / 0.9235 GB, free: 39.46 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005116/0.34, allocations: 243.2 kB / 0.9237 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.22e-07/0.34, allocations: 0 / 0.9237 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001538/0.3416, allocations: 267.1 kB / 0.924 GB, free: 38.96 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.0003478/0.342, allocations: 129.4 kB / 0.9241 GB, free: 38.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00388/0.3459, allocations: 0.9724 MB / 0.9251 GB, free: 37.83 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/0.346, allocations: 0 / 0.9251 GB, free: 37.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3472, allocations: 280 kB / 0.9253 GB, free: 37.56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.3495, allocations: 166.3 kB / 0.9255 GB, free: 37.39 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.3538, allocations: 1.245 MB / 0.9267 GB, free: 36.12 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005805/0.3544, allocations: 0.8911 MB / 0.9276 GB, free: 35.2 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001359/0.3558, allocations: 140.3 kB / 0.9277 GB, free: 35.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.3562, allocations: 47.42 kB / 0.9278 GB, free: 35.02 MB / 0.6042 GB Notification: Performance of SimCode: time 1.793e-06/0.3562, allocations: 3.938 kB / 0.9278 GB, free: 35.01 MB / 0.6042 GB Notification: Performance of Templates: time 0.0281/0.3843, allocations: 7.552 MB / 0.9351 GB, free: 27.54 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)