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.679/1.679, allocations: 288.3 MB / 303.2 MB, free: 8.07 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.001114/0.001114, allocations: 179.7 kB / 371.8 MB, free: 10.3 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.992/1.992, allocations: 205.4 MB / 0.6306 GB, free: 9.953 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.001045/0.001045, allocations: 106.8 kB / 0.7439 GB, free: 5.871 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004173/0.0004173, allocations: 10.75 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2733, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006652/0.28, allocations: 5.247 MB / 0.9846 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002671/0.2827, allocations: 2.048 MB / 0.9866 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.2829, allocations: 11.94 kB / 0.9866 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.2831, allocations: 67.48 kB / 0.9866 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.2836, allocations: 243.2 kB / 0.9869 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.2842, allocations: 288.2 kB / 0.9871 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.2846, allocations: 475 kB / 0.9876 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009941/0.2856, allocations: 0.7278 MB / 0.9883 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.2859, allocations: 215.2 kB / 0.9885 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.2863, allocations: 242.9 kB / 0.9887 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.2863, allocations: 24 kB / 0.9888 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.2866, allocations: 175.7 kB / 0.9889 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.2867, allocations: 135.5 kB / 0.9891 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.2868, allocations: 129.4 kB / 0.9892 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005604/0.2874, allocations: 0.7366 MB / 0.9899 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2874, allocations: 4 kB / 0.9899 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.194e-06/0.2874, allocations: 0 / 0.9899 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.567e-06/0.2874, allocations: 0 / 0.9899 GB, free: 16.91 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.001454/0.2889, allocations: 0.8296 MB / 0.9907 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2889, allocations: 16.02 kB / 0.9907 GB, free: 16.01 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006219/0.2896, allocations: 139.1 kB / 0.9909 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005417/0.2901, allocations: 421.9 kB / 0.9913 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.2902, allocations: 40.98 kB / 0.9913 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.199e-05/0.2903, allocations: 48 kB / 0.9913 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009376/0.2912, allocations: 0.6848 MB / 0.992 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2912, allocations: 4 kB / 0.992 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.2913, allocations: 23.97 kB / 0.992 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.567e-05/0.2914, allocations: 56.91 kB / 0.9921 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009191/0.2923, allocations: 0.566 MB / 0.9926 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.2951, allocations: 2.912 MB / 0.9955 GB, free: 10.81 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009081/0.2961, allocations: 0.5701 MB / 0.996 GB, free: 10.22 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004113/0.2965, allocations: 0.5622 MB / 0.9966 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006111/0.2971, allocations: 392.5 kB / 0.997 GB, free: 9.129 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 1.553e-06/0.2971, allocations: 0 / 0.997 GB, free: 9.129 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001299/0.2984, allocations: 0.7497 MB / 0.9977 GB, free: 8.371 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.2985, allocations: 81.19 kB / 0.9978 GB, free: 8.273 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.2988, allocations: 341.7 kB / 0.9981 GB, free: 7.938 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.2989, allocations: 45.7 kB / 0.9982 GB, free: 7.887 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.2991, allocations: 292.3 kB / 0.9984 GB, free: 7.594 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.611e-05/0.2992, allocations: 150 kB / 0.9986 GB, free: 7.445 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.2992, allocations: 12 kB / 0.9986 GB, free: 7.434 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2993, allocations: 354.8 kB / 0.9989 GB, free: 7.078 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.2997, allocations: 241 kB / 0.9992 GB, free: 6.844 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.3002, allocations: 354.7 kB / 0.9995 GB, free: 6.449 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004277/0.3006, allocations: 286.5 kB / 0.9998 GB, free: 6.164 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3006, allocations: 0 / 0.9998 GB, free: 6.164 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009817/0.3016, allocations: 0.6916 MB / 1 GB, free: 5.461 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002817/0.3019, allocations: 1.073 MB / 1.001 GB, free: 4.301 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3019, allocations: 4 kB / 1.001 GB, free: 4.297 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.3019, allocations: 8 kB / 1.001 GB, free: 4.289 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000448/0.3024, allocations: 107.9 kB / 1.002 GB, free: 4.184 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.3024, allocations: 11.92 kB / 1.002 GB, free: 4.172 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/0.3028, allocations: 79.48 kB / 1.002 GB, free: 4.094 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.3029, allocations: 27.94 kB / 1.002 GB, free: 4.066 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.3029, allocations: 4 kB / 1.002 GB, free: 4.062 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008841/0.3038, allocations: 0.5719 MB / 1.002 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3038, allocations: 4.375 kB / 1.002 GB, free: 3.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.52e-06/0.3038, allocations: 4 kB / 1.002 GB, free: 3.477 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.3042, allocations: 103.8 kB / 1.002 GB, free: 3.375 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3042, allocations: 11.98 kB / 1.002 GB, free: 3.363 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.3046, allocations: 63.83 kB / 1.002 GB, free: 3.301 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.3046, allocations: 24 kB / 1.002 GB, free: 3.277 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.0002644/0.3049, allocations: 295 kB / 1.003 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.3049, allocations: 51.39 kB / 1.003 GB, free: 2.93 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000955/0.3059, allocations: 0.5853 MB / 1.003 GB, free: 2.336 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3059, allocations: 8 kB / 1.003 GB, free: 2.328 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3059, allocations: 0 / 1.003 GB, free: 2.328 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3059, allocations: 3.938 kB / 1.003 GB, free: 2.324 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005321/0.3065, allocations: 0.618 MB / 1.004 GB, free: 1.656 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3065, allocations: 0 / 1.004 GB, free: 1.656 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.307, allocations: 99.84 kB / 1.004 GB, free: 1.559 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.307, allocations: 11.95 kB / 1.004 GB, free: 1.547 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.307, allocations: 4 kB / 1.004 GB, free: 1.543 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.307, allocations: 4 kB / 1.004 GB, free: 1.539 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.307, allocations: 0 / 1.004 GB, free: 1.539 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.3083, allocations: 0.8996 MB / 1.005 GB, free: 0.6094 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.3085, allocations: 176.5 kB / 1.005 GB, free: 428 kB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.975e-05/0.3085, allocations: 16 kB / 1.005 GB, free: 412 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.3088, allocations: 43.94 kB / 1.005 GB, free: 368 kB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.309, allocations: 47.88 kB / 1.005 GB, free: 320 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.309, allocations: 20.12 kB / 1.005 GB, free: 300 kB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002035/0.3092, allocations: 243.2 kB / 1.006 GB, free: 56 kB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.3092, allocations: 0 / 1.006 GB, free: 56 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000669/0.3099, allocations: 259.2 kB / 1.006 GB, free: 15.8 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.0002312/0.3101, allocations: 131.9 kB / 1.006 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.3118, allocations: 0.9712 MB / 1.007 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3118, allocations: 11.88 kB / 1.007 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.3123, allocations: 279.4 kB / 1.007 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.3131, allocations: 148 kB / 1.007 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.3151, allocations: 1.248 MB / 1.008 GB, free: 12.96 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005273/0.3156, allocations: 0.9028 MB / 1.009 GB, free: 12.04 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0004886/0.3161, allocations: 148.2 kB / 1.009 GB, free: 11.89 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.3163, allocations: 43.42 kB / 1.01 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.3163, allocations: 0 / 1.01 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of Templates: time 0.01609/0.3324, allocations: 7.554 MB / 1.017 GB, free: 4.383 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)