Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.403/1.403, allocations: 252 MB / 267.6 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 180.8 kB / 327.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.903/1.903, allocations: 205.4 MB / 0.5783 GB, free: 20.52 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009212/0.0009212, allocations: 87.97 kB / 0.6829 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003433, allocations: 6 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2145, allocations: 106.3 MB / 0.9008 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.00384/0.2184, allocations: 3.871 MB / 0.9046 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002831/0.2212, allocations: 2.079 MB / 0.9066 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.2215, allocations: 11.94 kB / 0.9066 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.2218, allocations: 67.42 kB / 0.9067 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005508/0.2223, allocations: 258.6 kB / 0.907 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007127/0.223, allocations: 298.2 kB / 0.9072 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005821/0.2236, allocations: 0.8216 MB / 0.908 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000947/0.2246, allocations: 0.7221 MB / 0.9088 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.2249, allocations: 235 kB / 0.909 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.2252, allocations: 298.8 kB / 0.9093 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.2253, allocations: 20 kB / 0.9093 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003207/0.2256, allocations: 191.8 kB / 0.9095 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.2258, allocations: 147.5 kB / 0.9096 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.896e-05/0.2258, allocations: 129.4 kB / 0.9097 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004988/0.2264, allocations: 0.725 MB / 0.9104 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2264, allocations: 0 / 0.9104 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2264, allocations: 0 / 0.9104 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.51e-05/0.2264, allocations: 0 / 0.9104 GB, free: 54.38 MB / 0.6042 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.001309/0.2277, allocations: 0.8441 MB / 0.9113 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2277, allocations: 8.031 kB / 0.9113 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005727/0.2283, allocations: 131.1 kB / 0.9114 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.2288, allocations: 421.9 kB / 0.9118 GB, free: 52.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.2289, allocations: 44.98 kB / 0.9118 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.202e-05/0.2289, allocations: 51.98 kB / 0.9119 GB, free: 52.79 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009577/0.2299, allocations: 0.6887 MB / 0.9126 GB, free: 52.07 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.2299, allocations: 3.984 kB / 0.9126 GB, free: 52.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-05/0.23, allocations: 27.98 kB / 0.9126 GB, free: 52.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.587e-05/0.2301, allocations: 48.97 kB / 0.9126 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/0.2309, allocations: 0.5698 MB / 0.9132 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.2336, allocations: 2.908 MB / 0.916 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008893/0.2345, allocations: 0.5627 MB / 0.9166 GB, free: 47.69 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.2349, allocations: 261.6 kB / 0.9168 GB, free: 47.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003583/0.2352, allocations: 0.5661 MB / 0.9174 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005782/0.2358, allocations: 404.2 kB / 0.9178 GB, free: 46.32 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.287e-06/0.2358, allocations: 0 / 0.9178 GB, free: 46.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001284/0.2371, allocations: 0.7433 MB / 0.9185 GB, free: 45.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.2372, allocations: 81.11 kB / 0.9186 GB, free: 45.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.2375, allocations: 353.5 kB / 0.9189 GB, free: 45.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.2375, allocations: 45.69 kB / 0.919 GB, free: 45.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.2377, allocations: 284.4 kB / 0.9192 GB, free: 44.78 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.347e-05/0.2378, allocations: 145.9 kB / 0.9194 GB, free: 44.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.2378, allocations: 16.12 kB / 0.9194 GB, free: 44.62 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.46e-05/0.2379, allocations: 350.8 kB / 0.9197 GB, free: 44.27 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.2383, allocations: 237 kB / 0.9199 GB, free: 44.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.2387, allocations: 362.6 kB / 0.9203 GB, free: 43.64 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.2392, allocations: 290.3 kB / 0.9206 GB, free: 43.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2392, allocations: 4.047 kB / 0.9206 GB, free: 43.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00102/0.2402, allocations: 0.687 MB / 0.9212 GB, free: 42.65 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.151e-05/0.2403, allocations: 201 kB / 0.9214 GB, free: 42.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2403, allocations: 4 kB / 0.9214 GB, free: 42.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.2403, allocations: 4 kB / 0.9214 GB, free: 42.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.2409, allocations: 115.8 kB / 0.9215 GB, free: 42.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.2409, allocations: 4 kB / 0.9216 GB, free: 42.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.2414, allocations: 75.52 kB / 0.9216 GB, free: 42.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.2414, allocations: 24 kB / 0.9216 GB, free: 42.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/0.2414, allocations: 4 kB / 0.9217 GB, free: 42.18 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008988/0.2423, allocations: 0.5798 MB / 0.9222 GB, free: 41.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2424, allocations: 8.062 kB / 0.9222 GB, free: 41.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.923e-06/0.2424, allocations: 8 kB / 0.9222 GB, free: 41.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.2428, allocations: 99.88 kB / 0.9223 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2428, allocations: 11.94 kB / 0.9223 GB, free: 41.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.2432, allocations: 63.58 kB / 0.9224 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.2432, allocations: 23.98 kB / 0.9224 GB, free: 41.38 MB / 0.6042 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.0003422/0.2436, allocations: 299.2 kB / 0.9227 GB, free: 41.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.2437, allocations: 43.44 kB / 0.9227 GB, free: 41.04 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000952/0.2446, allocations: 0.5879 MB / 0.9233 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2446, allocations: 4 kB / 0.9233 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2447, allocations: 0 / 0.9233 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.2447, allocations: 4 kB / 0.9233 GB, free: 40.43 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005816/0.2453, allocations: 0.6219 MB / 0.9239 GB, free: 39.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2453, allocations: 0 / 0.9239 GB, free: 39.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005065/0.2458, allocations: 103.8 kB / 0.924 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2458, allocations: 0 / 0.924 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.2458, allocations: 12 kB / 0.924 GB, free: 39.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.2458, allocations: 7.938 kB / 0.9241 GB, free: 39.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2458, allocations: 4 kB / 0.9241 GB, free: 39.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.2471, allocations: 0.8862 MB / 0.9249 GB, free: 38.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.2473, allocations: 172.5 kB / 0.9251 GB, free: 38.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.445e-05/0.2473, allocations: 12 kB / 0.9251 GB, free: 38.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.2477, allocations: 39.95 kB / 0.9251 GB, free: 38.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2478, allocations: 47.92 kB / 0.9252 GB, free: 38.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.2478, allocations: 12 kB / 0.9252 GB, free: 38.44 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002057/0.248, allocations: 251.2 kB / 0.9254 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.248, allocations: 3.938 kB / 0.9254 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006765/0.2487, allocations: 267.1 kB / 0.9257 GB, free: 37.93 MB / 0.6042 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.0002067/0.2489, allocations: 128.7 kB / 0.9258 GB, free: 37.79 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001383/0.2503, allocations: 0.9724 MB / 0.9268 GB, free: 36.79 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2503, allocations: 0.9375 kB / 0.9268 GB, free: 36.79 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.2508, allocations: 280.1 kB / 0.927 GB, free: 36.52 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007792/0.2516, allocations: 161.8 kB / 0.9272 GB, free: 36.36 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.2533, allocations: 1.298 MB / 0.9285 GB, free: 35.03 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.2536, allocations: 0.8989 MB / 0.9293 GB, free: 34.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.2537, allocations: 43.42 kB / 0.9294 GB, free: 34.06 MB / 0.6042 GB Notification: Performance of SimCode: time 4.91e-07/0.2537, allocations: 0 / 0.9294 GB, free: 34.06 MB / 0.6042 GB Notification: Performance of Templates: time 0.009641/0.2634, allocations: 7.792 MB / 0.937 GB, free: 26.33 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)