Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 103.5 kB / 16.38 MB, free: 6.477 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.001842/0.001842, allocations: 193.4 kB / 17.32 MB, free: 5.82 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.57/1.57, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.877/1.877, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.002666/0.002666, allocations: 71.39 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2853, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.4844/0.7697, allocations: 6.018 MB / 0.7907 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.005065/0.7748, allocations: 2.203 MB / 0.7928 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.7753, allocations: 12.47 kB / 0.7928 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.7769, allocations: 422.5 kB / 0.7933 GB, free: 45.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.7781, allocations: 334.5 kB / 0.7936 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.7795, allocations: 417.1 kB / 0.794 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.001108/0.7806, allocations: 0.8084 MB / 0.7948 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.7817, allocations: 0.5717 MB / 0.7953 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000467/0.7821, allocations: 323.6 kB / 0.7956 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006849/0.7828, allocations: 357.6 kB / 0.796 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.783, allocations: 66.44 kB / 0.796 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007307/0.7837, allocations: 318.9 kB / 0.7963 GB, free: 45.07 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.784, allocations: 205.8 kB / 0.7965 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003527/0.7843, allocations: 327.8 kB / 0.7968 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.7856, allocations: 0.9785 MB / 0.7978 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.7857, allocations: 0 / 0.7978 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7857, allocations: 0 / 0.7978 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.7857, allocations: 0 / 0.7978 GB, free: 44.7 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.002209/0.7879, allocations: 0.9541 MB / 0.7987 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.788, allocations: 9.906 kB / 0.7987 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.7891, allocations: 130.6 kB / 0.7989 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008159/0.7899, allocations: 442.2 kB / 0.7993 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.79, allocations: 38.62 kB / 0.7993 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.7901, allocations: 53.77 kB / 0.7994 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.7918, allocations: 0.6896 MB / 0.8 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.7919, allocations: 0 / 0.8 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.7919, allocations: 35.55 kB / 0.8001 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/0.7921, allocations: 45.3 kB / 0.8001 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.7939, allocations: 0.5626 MB / 0.8007 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/0.799, allocations: 2.887 MB / 0.8035 GB, free: 40.79 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.8008, allocations: 0.552 MB / 0.804 GB, free: 40.56 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008133/0.8016, allocations: 256 kB / 0.8043 GB, free: 40.46 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005759/0.8022, allocations: 0.5623 MB / 0.8048 GB, free: 39.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001219/0.8035, allocations: 398.2 kB / 0.8052 GB, free: 39.63 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 3.597e-06/0.8035, allocations: 1.281 kB / 0.8052 GB, free: 39.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.002629/0.8061, allocations: 0.7366 MB / 0.8059 GB, free: 39.34 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.8062, allocations: 86.31 kB / 0.806 GB, free: 39.24 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000618/0.8068, allocations: 344.7 kB / 0.8063 GB, free: 39.06 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.934e-05/0.8069, allocations: 44.33 kB / 0.8064 GB, free: 39.02 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003172/0.8073, allocations: 281 kB / 0.8066 GB, free: 38.8 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.8075, allocations: 145.8 kB / 0.8068 GB, free: 38.68 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.8078, allocations: 114.9 kB / 0.8069 GB, free: 38.62 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.8079, allocations: 351.7 kB / 0.8072 GB, free: 38.29 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.8087, allocations: 250.5 kB / 0.8075 GB, free: 38.19 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008554/0.8096, allocations: 351.1 kB / 0.8078 GB, free: 37.97 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.8111, allocations: 0.5823 MB / 0.8084 GB, free: 37.62 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.8111, allocations: 1.312 kB / 0.8084 GB, free: 37.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002075/0.8132, allocations: 0.6834 MB / 0.809 GB, free: 37.31 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.024e-05/0.8133, allocations: 35.03 kB / 0.8091 GB, free: 37.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.8133, allocations: 4.391 kB / 0.8091 GB, free: 37.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.525e-05/0.8134, allocations: 4.938 kB / 0.8091 GB, free: 37.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008666/0.8142, allocations: 108.5 kB / 0.8092 GB, free: 37.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.439e-05/0.8143, allocations: 6.156 kB / 0.8092 GB, free: 37.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007564/0.8151, allocations: 74.73 kB / 0.8093 GB, free: 37.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.889e-05/0.8151, allocations: 20.55 kB / 0.8093 GB, free: 37.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001055/0.8162, allocations: 369.2 kB / 0.8096 GB, free: 37.04 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008794/0.8171, allocations: 331.1 kB / 0.81 GB, free: 36.82 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001486/0.8186, allocations: 0.5278 MB / 0.8105 GB, free: 36.5 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.533e-06/0.8186, allocations: 1.125 kB / 0.8105 GB, free: 36.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001979/0.8206, allocations: 0.6209 MB / 0.8111 GB, free: 36.22 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.8207, allocations: 35.69 kB / 0.8111 GB, free: 36.19 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.8207, allocations: 1.438 kB / 0.8111 GB, free: 36.19 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.8207, allocations: 7.938 kB / 0.8111 GB, free: 36.19 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006869/0.8214, allocations: 101.1 kB / 0.8112 GB, free: 36.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.8215, allocations: 5.875 kB / 0.8112 GB, free: 36.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.8222, allocations: 75.03 kB / 0.8113 GB, free: 36.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-05/0.8222, allocations: 19.92 kB / 0.8113 GB, free: 36.14 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.0002506/0.8225, allocations: 223.4 kB / 0.8115 GB, free: 35.93 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.8226, allocations: 42.36 kB / 0.8116 GB, free: 35.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.8244, allocations: 0.5794 MB / 0.8121 GB, free: 35.66 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.8244, allocations: 2.906 kB / 0.8121 GB, free: 35.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.8245, allocations: 5.188 kB / 0.8121 GB, free: 35.66 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/0.8248, allocations: 169.3 kB / 0.8123 GB, free: 35.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.8249, allocations: 16.12 kB / 0.8123 GB, free: 35.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006435/0.8256, allocations: 54.08 kB / 0.8124 GB, free: 35.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.8258, allocations: 49.16 kB / 0.8124 GB, free: 35.48 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002214/0.828, allocations: 0.7359 MB / 0.8131 GB, free: 35.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002564/0.8306, allocations: 1.116 MB / 0.8142 GB, free: 34.5 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007832/0.8314, allocations: 265.4 kB / 0.8145 GB, free: 34.4 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004709/0.8319, allocations: 247.6 kB / 0.8147 GB, free: 34.27 MB / 0.6544 GB Notification: Performance of Backend: time 9.01e-07/0.8319, allocations: 0 / 0.8147 GB, free: 34.27 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003594/0.8355, allocations: 0.9559 MB / 0.8156 GB, free: 33.84 MB / 0.6544 GB Notification: Performance of SimCode: time 0.003061/0.8386, allocations: 1.429 MB / 0.817 GB, free: 32.86 MB / 0.6544 GB Notification: Performance of Templates: time 0.03383/0.8725, allocations: 11.82 MB / 0.8286 GB, free: 31.96 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)