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.686/1.686, allocations: 288.4 MB / 304.3 MB, free: 8.125 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.0009724/0.0009724, allocations: 186.7 kB / 372.9 MB, free: 10.16 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.471/1.471, allocations: 205.4 MB / 0.6316 GB, free: 9.926 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.0007675/0.0007674, allocations: 90.25 kB / 0.745 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003623, allocations: 11.56 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2182, allocations: 115.3 MB / 0.9807 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005181/0.2235, allocations: 5.34 MB / 0.986 GB, free: 22 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002751/0.2263, allocations: 2.079 MB / 0.988 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.2266, allocations: 11.94 kB / 0.988 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.2268, allocations: 63.42 kB / 0.9881 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006364/0.2275, allocations: 294.5 kB / 0.9883 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.2282, allocations: 292.6 kB / 0.9886 GB, free: 19.26 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006391/0.2288, allocations: 0.8371 MB / 0.9894 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.23, allocations: 0.7921 MB / 0.9902 GB, free: 17.59 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.2302, allocations: 235 kB / 0.9904 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.2306, allocations: 298.8 kB / 0.9907 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.2307, allocations: 20 kB / 0.9907 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004664/0.2311, allocations: 319.4 kB / 0.991 GB, free: 16.74 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.2313, allocations: 147.5 kB / 0.9912 GB, free: 16.59 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.2315, allocations: 280.4 kB / 0.9915 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005384/0.232, allocations: 0.7405 MB / 0.9922 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.232, allocations: 3.984 kB / 0.9922 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.923e-06/0.232, allocations: 3.938 kB / 0.9922 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.2321, allocations: 0 / 0.9922 GB, free: 15.56 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.001299/0.2334, allocations: 0.8257 MB / 0.993 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2334, allocations: 8.031 kB / 0.993 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006386/0.2341, allocations: 124.1 kB / 0.9931 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004561/0.2345, allocations: 442.9 kB / 0.9935 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.2346, allocations: 37.38 kB / 0.9936 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.2347, allocations: 52.28 kB / 0.9936 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009442/0.2356, allocations: 0.6968 MB / 0.9943 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2356, allocations: 3.938 kB / 0.9943 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.2357, allocations: 27.94 kB / 0.9943 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.826e-05/0.2358, allocations: 48.97 kB / 0.9944 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008925/0.2367, allocations: 0.5699 MB / 0.9949 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.2394, allocations: 2.92 MB / 0.9978 GB, free: 9.449 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009108/0.2404, allocations: 0.558 MB / 0.9983 GB, free: 8.875 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.2408, allocations: 257.6 kB / 0.9986 GB, free: 8.617 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003337/0.2411, allocations: 0.5701 MB / 0.9991 GB, free: 7.918 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000606/0.2417, allocations: 404.2 kB / 0.9995 GB, free: 7.504 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.585e-06/0.2417, allocations: 0 / 0.9995 GB, free: 7.504 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001271/0.243, allocations: 0.7431 MB / 1 GB, free: 6.754 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.2431, allocations: 89.11 kB / 1 GB, free: 6.648 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.2434, allocations: 341.6 kB / 1.001 GB, free: 6.312 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/0.2434, allocations: 45.69 kB / 1.001 GB, free: 6.262 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.2436, allocations: 284.4 kB / 1.001 GB, free: 5.977 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.576e-05/0.2437, allocations: 142 kB / 1.001 GB, free: 5.836 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.2437, allocations: 8 kB / 1.001 GB, free: 5.828 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.159e-05/0.2438, allocations: 358.8 kB / 1.001 GB, free: 5.469 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.2442, allocations: 237 kB / 1.002 GB, free: 5.238 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.2446, allocations: 358.8 kB / 1.002 GB, free: 4.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007664/0.2454, allocations: 0.5859 MB / 1.003 GB, free: 4.211 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2454, allocations: 0 / 1.003 GB, free: 4.211 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001004/0.2464, allocations: 0.6833 MB / 1.003 GB, free: 3.516 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.199e-05/0.2465, allocations: 192.9 kB / 1.003 GB, free: 3.281 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2465, allocations: 4 kB / 1.003 GB, free: 3.277 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.2466, allocations: 4 kB / 1.003 GB, free: 3.273 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.247, allocations: 111.8 kB / 1.004 GB, free: 3.164 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.2471, allocations: 7.984 kB / 1.004 GB, free: 3.156 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.2475, allocations: 83.41 kB / 1.004 GB, free: 3.074 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.2475, allocations: 27.94 kB / 1.004 GB, free: 3.047 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.741e-06/0.2475, allocations: 4 kB / 1.004 GB, free: 3.043 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008569/0.2484, allocations: 0.5756 MB / 1.004 GB, free: 2.461 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2484, allocations: 4 kB / 1.004 GB, free: 2.457 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.53e-06/0.2484, allocations: 4 kB / 1.004 GB, free: 2.453 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.2488, allocations: 103.8 kB / 1.004 GB, free: 2.352 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2488, allocations: 4.375 kB / 1.004 GB, free: 2.348 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.2492, allocations: 71.84 kB / 1.004 GB, free: 2.277 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.2492, allocations: 20 kB / 1.004 GB, free: 2.258 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.0002534/0.2495, allocations: 307.2 kB / 1.005 GB, free: 1.949 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.2495, allocations: 47.38 kB / 1.005 GB, free: 1.902 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009241/0.2505, allocations: 0.5877 MB / 1.005 GB, free: 1.305 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2505, allocations: 3.938 kB / 1.005 GB, free: 1.301 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2505, allocations: 0 / 1.005 GB, free: 1.301 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.2507, allocations: 176.4 kB / 1.006 GB, free: 1.109 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.037e-05/0.2507, allocations: 11.98 kB / 1.006 GB, free: 1.098 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.2511, allocations: 59.92 kB / 1.006 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.2513, allocations: 51.86 kB / 1.006 GB, free: 0.9883 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001145/0.2524, allocations: 0.7459 MB / 1.006 GB, free: 240 kB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001584/0.254, allocations: 1.124 MB / 1.007 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004472/0.2545, allocations: 263.9 kB / 1.008 GB, free: 14.83 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002494/0.2547, allocations: 243.2 kB / 1.008 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of Backend: time 8.22e-07/0.2547, allocations: 0 / 1.008 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002024/0.2568, allocations: 0.9727 MB / 1.009 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of SimCode: time 0.002144/0.2589, allocations: 1.63 MB / 1.01 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of Templates: time 0.01856/0.2775, allocations: 10.87 MB / 1.021 GB, free: 1.148 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)