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.001306/0.001307, allocations: 108.8 kB / 16.38 MB, free: 6.473 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.001304/0.001304, allocations: 184 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.1 MB / 223.2 MB, free: 12.31 MB / 190.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.943/1.943, allocations: 292.3 MB / 0.5496 GB, free: 17.53 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.001481/0.001481, allocations: 67.91 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.287, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.5709/0.858, allocations: 4.405 MB / 0.7891 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.003789/0.8618, allocations: 2.207 MB / 0.7913 GB, free: 46.1 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002939/0.8621, allocations: 13.06 kB / 0.7913 GB, free: 46.1 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.8635, allocations: 416.8 kB / 0.7917 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0007648/0.8642, allocations: 341.3 kB / 0.792 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00096/0.8652, allocations: 408.7 kB / 0.7924 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0008441/0.8661, allocations: 0.815 MB / 0.7932 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.8671, allocations: 0.5697 MB / 0.7937 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004123/0.8675, allocations: 322.1 kB / 0.794 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004858/0.868, allocations: 354 kB / 0.7944 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 9.769e-05/0.8681, allocations: 69.38 kB / 0.7945 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005963/0.8687, allocations: 318.8 kB / 0.7948 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.8689, allocations: 199.9 kB / 0.7949 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000323/0.8693, allocations: 336.3 kB / 0.7953 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0008547/0.8701, allocations: 0.9769 MB / 0.7962 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8702, allocations: 0 / 0.7962 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.774e-06/0.8702, allocations: 0 / 0.7962 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.522e-05/0.8702, allocations: 0 / 0.7962 GB, free: 45.39 MB / 0.6544 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.001696/0.8719, allocations: 0.949 MB / 0.7971 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.8719, allocations: 14.75 kB / 0.7972 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006471/0.8726, allocations: 128.9 kB / 0.7973 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.8732, allocations: 446.7 kB / 0.7977 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.537e-05/0.8732, allocations: 41.95 kB / 0.7978 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.504e-05/0.8733, allocations: 48.66 kB / 0.7978 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.8744, allocations: 0.6966 MB / 0.7985 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.8744, allocations: 0 / 0.7985 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.8745, allocations: 22.19 kB / 0.7985 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-05/0.8746, allocations: 54.34 kB / 0.7986 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.8756, allocations: 0.5551 MB / 0.7991 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.8789, allocations: 2.89 MB / 0.8019 GB, free: 41.61 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.8801, allocations: 0.5537 MB / 0.8025 GB, free: 41.38 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.8805, allocations: 251.8 kB / 0.8027 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004306/0.881, allocations: 0.5669 MB / 0.8032 GB, free: 40.62 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007722/0.8818, allocations: 395.9 kB / 0.8036 GB, free: 40.45 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 2.084e-06/0.8818, allocations: 0 / 0.8036 GB, free: 40.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.00163/0.8834, allocations: 0.741 MB / 0.8044 GB, free: 40.16 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.8835, allocations: 81.86 kB / 0.8044 GB, free: 40.07 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.8839, allocations: 347.6 kB / 0.8048 GB, free: 39.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.884, allocations: 43.86 kB / 0.8048 GB, free: 39.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.8842, allocations: 281.3 kB / 0.8051 GB, free: 39.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.8844, allocations: 147.1 kB / 0.8052 GB, free: 39.5 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.8846, allocations: 115.8 kB / 0.8053 GB, free: 39.44 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.8847, allocations: 354.6 kB / 0.8057 GB, free: 39.11 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.8853, allocations: 239.1 kB / 0.8059 GB, free: 39.02 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005943/0.8859, allocations: 359.7 kB / 0.8062 GB, free: 38.79 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.8869, allocations: 0.5719 MB / 0.8068 GB, free: 38.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.8869, allocations: 0.6562 kB / 0.8068 GB, free: 38.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001362/0.8883, allocations: 0.6792 MB / 0.8075 GB, free: 38.15 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.8883, allocations: 39.12 kB / 0.8075 GB, free: 38.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.8884, allocations: 4.125 kB / 0.8075 GB, free: 38.11 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.708e-05/0.8884, allocations: 5.719 kB / 0.8075 GB, free: 38.11 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.889, allocations: 108.1 kB / 0.8076 GB, free: 38.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.889, allocations: 9.438 kB / 0.8076 GB, free: 38.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/0.8895, allocations: 78.28 kB / 0.8077 GB, free: 38.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.8896, allocations: 20.66 kB / 0.8077 GB, free: 38.06 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006704/0.8902, allocations: 365.1 kB / 0.8081 GB, free: 37.87 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005459/0.8908, allocations: 331.2 kB / 0.8084 GB, free: 37.65 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000883/0.8917, allocations: 0.5228 MB / 0.8089 GB, free: 37.34 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.457e-06/0.8917, allocations: 4.625 kB / 0.8089 GB, free: 37.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001165/0.8929, allocations: 0.6198 MB / 0.8095 GB, free: 37.05 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.8929, allocations: 34.34 kB / 0.8095 GB, free: 37.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.8929, allocations: 2.375 kB / 0.8095 GB, free: 37.02 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.893, allocations: 6.188 kB / 0.8095 GB, free: 37.02 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.8934, allocations: 109.7 kB / 0.8096 GB, free: 37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.8934, allocations: 10.72 kB / 0.8096 GB, free: 37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.8939, allocations: 65.59 kB / 0.8097 GB, free: 36.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.8939, allocations: 20.27 kB / 0.8097 GB, free: 36.97 MB / 0.6544 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000205/0.8941, allocations: 221 kB / 0.8099 GB, free: 36.76 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.074e-05/0.8942, allocations: 44.39 kB / 0.81 GB, free: 36.74 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.8954, allocations: 0.5771 MB / 0.8105 GB, free: 36.49 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.8955, allocations: 1.969 kB / 0.8105 GB, free: 36.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.8955, allocations: 1.969 kB / 0.8105 GB, free: 36.49 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.8957, allocations: 172.1 kB / 0.8107 GB, free: 36.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.8958, allocations: 17.73 kB / 0.8107 GB, free: 36.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.8962, allocations: 53.86 kB / 0.8108 GB, free: 36.33 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.8964, allocations: 45.78 kB / 0.8108 GB, free: 36.32 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00143/0.8978, allocations: 0.7359 MB / 0.8115 GB, free: 35.94 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00174/0.8996, allocations: 1.116 MB / 0.8126 GB, free: 35.33 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000505/0.9001, allocations: 262.2 kB / 0.8129 GB, free: 35.23 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002764/0.9004, allocations: 246.8 kB / 0.8131 GB, free: 35.11 MB / 0.6544 GB Notification: Performance of Backend: time 2.71e-07/0.9004, allocations: 0 / 0.8131 GB, free: 35.11 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00221/0.9026, allocations: 0.9675 MB / 0.8141 GB, free: 34.66 MB / 0.6544 GB Notification: Performance of SimCode: time 0.002412/0.905, allocations: 1.423 MB / 0.8155 GB, free: 33.69 MB / 0.6544 GB Notification: Performance of Templates: time 0.02955/0.9346, allocations: 11.83 MB / 0.827 GB, free: 32.9 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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)