Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.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.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.343/1.343, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.001048/0.001048, allocations: 180.5 kB / 326.5 MB, free: 2.688 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.673/1.673, allocations: 205 MB / 0.5767 GB, free: 20.97 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.0008313/0.0008312, allocations: 86.34 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003287, allocations: 9.062 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.194, allocations: 105.4 MB / 0.8967 GB, free: 68.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.003837/0.1979, allocations: 3.948 MB / 0.9006 GB, free: 64.24 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002426/0.2004, allocations: 2.018 MB / 0.9026 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.2007, allocations: 15.94 kB / 0.9026 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0008354/0.2015, allocations: 350.6 kB / 0.9029 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.2019, allocations: 214.9 kB / 0.9031 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008211/0.2027, allocations: 395.5 kB / 0.9035 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0007814/0.2035, allocations: 1.041 MB / 0.9045 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007505/0.2043, allocations: 0.7536 MB / 0.9053 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.2045, allocations: 266.8 kB / 0.9055 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.2048, allocations: 326.4 kB / 0.9058 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.836e-05/0.2049, allocations: 28 kB / 0.9058 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.2052, allocations: 199.6 kB / 0.906 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.2053, allocations: 171.4 kB / 0.9062 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.2055, allocations: 302.2 kB / 0.9065 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000517/0.206, allocations: 0.829 MB / 0.9073 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.206, allocations: 0 / 0.9073 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.483e-06/0.206, allocations: 4 kB / 0.9073 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.206, allocations: 0 / 0.9073 GB, free: 57.34 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001007/0.2071, allocations: 0.8009 MB / 0.9081 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2071, allocations: 8.031 kB / 0.9081 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004301/0.2075, allocations: 124 kB / 0.9082 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.208, allocations: 436.8 kB / 0.9086 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.208, allocations: 62.38 kB / 0.9087 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.025e-05/0.2081, allocations: 76.38 kB / 0.9088 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009904/0.2091, allocations: 0.8809 MB / 0.9096 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.2092, allocations: 0 / 0.9096 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/0.2092, allocations: 35.98 kB / 0.9097 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.775e-05/0.2093, allocations: 49.98 kB / 0.9097 GB, free: 54.72 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007486/0.21, allocations: 0.5698 MB / 0.9103 GB, free: 54.15 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002709/0.2128, allocations: 3.712 MB / 0.9139 GB, free: 50.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004577/0.2132, allocations: 320.3 kB / 0.9142 GB, free: 49.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.2135, allocations: 217.5 kB / 0.9144 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.2136, allocations: 8.359 kB / 0.9144 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.2139, allocations: 251.9 kB / 0.9146 GB, free: 49.41 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 1.914e-06/0.2139, allocations: 0 / 0.9146 GB, free: 49.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.0006549/0.2146, allocations: 448.4 kB / 0.9151 GB, free: 48.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.2146, allocations: 93.05 kB / 0.9152 GB, free: 48.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.2149, allocations: 417.3 kB / 0.9156 GB, free: 48.44 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.215, allocations: 53.69 kB / 0.9156 GB, free: 48.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.2151, allocations: 339.5 kB / 0.9159 GB, free: 48.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.136e-05/0.2152, allocations: 134.3 kB / 0.9161 GB, free: 47.91 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.2153, allocations: 97.66 kB / 0.9162 GB, free: 47.81 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.885e-05/0.2154, allocations: 354.8 kB / 0.9165 GB, free: 47.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.2156, allocations: 157.9 kB / 0.9166 GB, free: 47.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.2159, allocations: 400.4 kB / 0.917 GB, free: 46.81 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.2163, allocations: 0.5039 MB / 0.9175 GB, free: 46.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.2164, allocations: 4 kB / 0.9175 GB, free: 46.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006807/0.217, allocations: 0.5962 MB / 0.9181 GB, free: 45.61 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.2172, allocations: 301.9 kB / 0.9184 GB, free: 45.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.2172, allocations: 4 kB / 0.9184 GB, free: 45.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.2172, allocations: 12 kB / 0.9184 GB, free: 45.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.2175, allocations: 103.8 kB / 0.9185 GB, free: 45.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.2175, allocations: 19.92 kB / 0.9185 GB, free: 45.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.2178, allocations: 79.22 kB / 0.9186 GB, free: 44.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.2178, allocations: 31.98 kB / 0.9186 GB, free: 44.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/0.2178, allocations: 4 kB / 0.9186 GB, free: 44.96 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006128/0.2185, allocations: 0.524 MB / 0.9191 GB, free: 44.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2185, allocations: 8.969 kB / 0.9192 GB, free: 44.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.2185, allocations: 12 kB / 0.9192 GB, free: 44.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2188, allocations: 103.8 kB / 0.9193 GB, free: 44.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2188, allocations: 19.92 kB / 0.9193 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.219, allocations: 75.27 kB / 0.9194 GB, free: 44.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.2191, allocations: 28 kB / 0.9194 GB, free: 44.19 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.activeSteps,toOff.enableFire,toOff.condition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.condition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.condition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.condition,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition1,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * 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.0002642/0.2193, allocations: 320.8 kB / 0.9197 GB, free: 43.87 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.2194, allocations: 55.36 kB / 0.9197 GB, free: 43.81 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005511/0.22, allocations: 393.1 kB / 0.9201 GB, free: 43.42 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.22, allocations: 7.984 kB / 0.9201 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.22, allocations: 3.938 kB / 0.9201 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.2201, allocations: 152.4 kB / 0.9203 GB, free: 43.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.2202, allocations: 12 kB / 0.9203 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.2203, allocations: 15.98 kB / 0.9203 GB, free: 43.21 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.2204, allocations: 36.39 kB / 0.9203 GB, free: 43.18 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000597/0.221, allocations: 0.5223 MB / 0.9208 GB, free: 42.64 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006733/0.2217, allocations: 0.7663 MB / 0.9216 GB, free: 41.86 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001863/0.2219, allocations: 171.4 kB / 0.9218 GB, free: 41.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001682/0.2221, allocations: 255.2 kB / 0.922 GB, free: 41.45 MB / 0.6042 GB Notification: Performance of Backend: time 7.41e-07/0.2221, allocations: 0 / 0.922 GB, free: 41.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001247/0.2234, allocations: 0.7662 MB / 0.9227 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001468/0.2248, allocations: 1.649 MB / 0.9244 GB, free: 38.98 MB / 0.6042 GB Notification: Performance of Templates: time 0.01037/0.2352, allocations: 7.485 MB / 0.9317 GB, free: 31.55 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)