Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009294/0.0009295, allocations: 100.4 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009428/0.0009428, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.65/1.65, allocations: 292.5 MB / 0.5497 GB, free: 14.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005757/0.0005758, allocations: 14.62 kB / 0.6735 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2897, allocations: 116.3 MB / 0.7871 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005201/0.2949, allocations: 3.805 MB / 0.7908 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003852/0.2988, allocations: 2.048 MB / 0.7928 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005196/0.2994, allocations: 11.94 kB / 0.7928 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.2997, allocations: 59.55 kB / 0.7929 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.3008, allocations: 243.2 kB / 0.7931 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.3019, allocations: 294 kB / 0.7934 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001064/0.3029, allocations: 467 kB / 0.7939 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.3042, allocations: 0.722 MB / 0.7946 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003829/0.3046, allocations: 215.2 kB / 0.7948 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004855/0.3051, allocations: 239 kB / 0.795 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.414e-05/0.3052, allocations: 23.94 kB / 0.795 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004257/0.3057, allocations: 179.8 kB / 0.7952 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.3058, allocations: 139.5 kB / 0.7953 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.306, allocations: 129.4 kB / 0.7954 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.3068, allocations: 0.7365 MB / 0.7962 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3068, allocations: 0 / 0.7962 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3068, allocations: 4 kB / 0.7962 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.347e-06/0.3068, allocations: 0 / 0.7962 GB, free: 2.605 MB / 0.6075 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.00147/0.3083, allocations: 0.8287 MB / 0.797 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3083, allocations: 8.031 kB / 0.797 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006347/0.309, allocations: 143 kB / 0.7971 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.3096, allocations: 425.8 kB / 0.7975 GB, free: 1.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.3096, allocations: 37 kB / 0.7976 GB, free: 1.078 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/0.3097, allocations: 48 kB / 0.7976 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3107, allocations: 0.6887 MB / 0.7983 GB, free: 316 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3108, allocations: 0 / 0.7983 GB, free: 316 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.3108, allocations: 31.97 kB / 0.7983 GB, free: 284 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.427e-05/0.3109, allocations: 52.97 kB / 0.7984 GB, free: 232 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009574/0.3119, allocations: 0.5659 MB / 0.7989 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003084/0.315, allocations: 2.912 MB / 0.8018 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009385/0.3159, allocations: 0.56 MB / 0.8023 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004448/0.3164, allocations: 0.5623 MB / 0.8029 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005924/0.317, allocations: 400.5 kB / 0.8032 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=46): time 1.713e-06/0.317, allocations: 0 / 0.8032 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46): time 0.001302/0.3183, allocations: 0.7497 MB / 0.804 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.3183, allocations: 81.11 kB / 0.804 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.3187, allocations: 345.6 kB / 0.8044 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.207e-05/0.3188, allocations: 41.7 kB / 0.8044 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.3189, allocations: 280.4 kB / 0.8047 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3191, allocations: 154.1 kB / 0.8048 GB, free: 9.145 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.3191, allocations: 12 kB / 0.8048 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3192, allocations: 354.8 kB / 0.8052 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004028/0.3197, allocations: 237.1 kB / 0.8054 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.3201, allocations: 370.5 kB / 0.8058 GB, free: 8.141 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.3206, allocations: 282.4 kB / 0.806 GB, free: 7.859 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3206, allocations: 0 / 0.806 GB, free: 7.859 MB / 0.6231 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001058/0.3217, allocations: 0.6879 MB / 0.8067 GB, free: 7.16 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.000393/0.3221, allocations: 1.081 MB / 0.8078 GB, free: 5.992 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.3221, allocations: 4 kB / 0.8078 GB, free: 5.988 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3221, allocations: 4 kB / 0.8078 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.3226, allocations: 111.8 kB / 0.8079 GB, free: 5.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.3226, allocations: 4 kB / 0.8079 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.3231, allocations: 79.47 kB / 0.808 GB, free: 5.793 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.3231, allocations: 23.95 kB / 0.808 GB, free: 5.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/0.3231, allocations: 7.984 kB / 0.808 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009256/0.3241, allocations: 0.5755 MB / 0.8085 GB, free: 5.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.3241, allocations: 4 kB / 0.8085 GB, free: 5.176 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.393e-06/0.3241, allocations: 8 kB / 0.8086 GB, free: 5.168 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.3245, allocations: 99.81 kB / 0.8086 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.3245, allocations: 11.98 kB / 0.8087 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.3249, allocations: 67.48 kB / 0.8087 GB, free: 4.992 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.3249, allocations: 28.52 kB / 0.8088 GB, free: 4.965 MB / 0.6231 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.0002987/0.3252, allocations: 291.3 kB / 0.809 GB, free: 4.668 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.265e-05/0.3253, allocations: 43.48 kB / 0.8091 GB, free: 4.625 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.3264, allocations: 0.5968 MB / 0.8097 GB, free: 4.02 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.3264, allocations: 8 kB / 0.8097 GB, free: 4.012 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3264, allocations: 48 / 0.8097 GB, free: 4.012 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.3265, allocations: 7.984 kB / 0.8097 GB, free: 4.004 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000708/0.3272, allocations: 0.6103 MB / 0.8103 GB, free: 3.344 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3272, allocations: 4 kB / 0.8103 GB, free: 3.34 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004864/0.3277, allocations: 99.84 kB / 0.8104 GB, free: 3.242 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.3277, allocations: 3.953 kB / 0.8104 GB, free: 3.238 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3277, allocations: 12 kB / 0.8104 GB, free: 3.227 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3277, allocations: 4 kB / 0.8104 GB, free: 3.223 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3277, allocations: 0 / 0.8104 GB, free: 3.223 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.3291, allocations: 0.9034 MB / 0.8113 GB, free: 2.297 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.3294, allocations: 180.4 kB / 0.8114 GB, free: 2.102 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.746e-05/0.3294, allocations: 12 kB / 0.8114 GB, free: 2.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.3298, allocations: 43.94 kB / 0.8115 GB, free: 2.047 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3299, allocations: 51.88 kB / 0.8115 GB, free: 1.996 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.3299, allocations: 15.98 kB / 0.8116 GB, free: 1.98 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002385/0.3302, allocations: 243.2 kB / 0.8118 GB, free: 1.746 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3302, allocations: 0 / 0.8118 GB, free: 1.746 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006799/0.3309, allocations: 263.1 kB / 0.812 GB, free: 1.488 MB / 0.6231 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.000195/0.3311, allocations: 127.2 kB / 0.8122 GB, free: 1.355 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001547/0.3326, allocations: 0.9759 MB / 0.8131 GB, free: 360 kB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3326, allocations: 4.125 kB / 0.8131 GB, free: 356 kB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.3331, allocations: 283.5 kB / 0.8134 GB, free: 72 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.3338, allocations: 141.4 kB / 0.8135 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.3358, allocations: 1.252 MB / 0.8147 GB, free: 14.65 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/0.3363, allocations: 0.9028 MB / 0.8156 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004527/0.3368, allocations: 149.1 kB / 0.8158 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.3369, allocations: 43.42 kB / 0.8158 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of SimCode: time 2.4e-07/0.3369, allocations: 0 / 0.8158 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of Templates: time 0.01235/0.3493, allocations: 7.541 MB / 0.8232 GB, free: 6.082 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: