Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 80.88 kB / 21.55 MB, free: 2.945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 163.7 kB / 24.97 MB, free: 8.656 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.093/1.093, allocations: 177.1 MB / 205.4 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.977/1.977, allocations: 389.6 MB / 0.6362 GB, free: 12.32 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.7759 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.809e-05, allocations: 3.562 kB / 0.7759 GB, free: 5.41 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.006161/0.006189, allocations: 3.574 MB / 0.7794 GB, free: 1.859 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.003504/0.009693, allocations: 1.59 MB / 0.781 GB, free: 272 kB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003888/0.01008, allocations: 19.88 kB / 0.781 GB, free: 252 kB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0005743/0.01066, allocations: 155.7 kB / 0.7812 GB, free: 96 kB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0004389/0.01109, allocations: 205.6 kB / 0.7814 GB, free: 15.89 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008263/0.01192, allocations: 462.3 kB / 0.7818 GB, free: 15.45 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0009273/0.01285, allocations: 0.9828 MB / 0.7828 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008807/0.01373, allocations: 0.9193 MB / 0.7837 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004302/0.01416, allocations: 0.5106 MB / 0.7842 GB, free: 13.02 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004313/0.01459, allocations: 323 kB / 0.7845 GB, free: 12.7 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.01467, allocations: 83.38 kB / 0.7845 GB, free: 12.62 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.0149, allocations: 147.7 kB / 0.7847 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.01505, allocations: 235.3 kB / 0.7849 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.01523, allocations: 251.4 kB / 0.7851 GB, free: 12 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0006148/0.01584, allocations: 0.6537 MB / 0.7858 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.01585, allocations: 0 / 0.7858 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.012e-06/0.01585, allocations: 0 / 0.7858 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.01586, allocations: 0 / 0.7858 GB, free: 11.34 MB / 0.7448 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.0009995/0.01686, allocations: 0.8735 MB / 0.7866 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.0169, allocations: 9.344 kB / 0.7866 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006079/0.01751, allocations: 205.4 kB / 0.7868 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004102/0.01792, allocations: 301.6 kB / 0.7871 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.522e-05/0.01797, allocations: 67.16 kB / 0.7872 GB, free: 9.859 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.593e-05/0.01806, allocations: 92.28 kB / 0.7873 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007503/0.01881, allocations: 0.6783 MB / 0.7879 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.01883, allocations: 12.11 kB / 0.788 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.905e-05/0.01888, allocations: 33.83 kB / 0.788 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.697e-05/0.01894, allocations: 49.92 kB / 0.788 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003441/0.01928, allocations: 223.7 kB / 0.7882 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.02161, allocations: 2.629 MB / 0.7908 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.02192, allocations: 238.1 kB / 0.791 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.0221, allocations: 143.5 kB / 0.7912 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.02212, allocations: 13.31 kB / 0.7912 GB, free: 5.535 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.02236, allocations: 230 kB / 0.7914 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=51): time 2.044e-06/0.02237, allocations: 5.062 kB / 0.7914 GB, free: 5.273 MB / 0.7448 GB Notification: Performance of matching and sorting (n=51): time 0.0003372/0.0227, allocations: 263.5 kB / 0.7917 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.02277, allocations: 195.9 kB / 0.7919 GB, free: 4.781 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.02297, allocations: 339.6 kB / 0.7922 GB, free: 4.438 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.02301, allocations: 53.69 kB / 0.7922 GB, free: 4.379 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.02316, allocations: 321 kB / 0.7925 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.404e-05/0.02325, allocations: 155.7 kB / 0.7927 GB, free: 3.906 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.02339, allocations: 162.5 kB / 0.7928 GB, free: 3.742 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.02349, allocations: 366.6 kB / 0.7932 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.749e-05/0.02358, allocations: 69.55 kB / 0.7933 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.02379, allocations: 349.9 kB / 0.7936 GB, free: 2.859 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.02412, allocations: 417.6 kB / 0.794 GB, free: 2.359 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.02413, allocations: 8 kB / 0.794 GB, free: 2.352 MB / 0.7448 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0003887/0.02452, allocations: 398.6 kB / 0.7944 GB, free: 1.965 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.02454, allocations: 8 kB / 0.7944 GB, free: 1.957 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.02455, allocations: 8 kB / 0.7944 GB, free: 1.949 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.02456, allocations: 15 kB / 0.7944 GB, free: 1.938 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.0248, allocations: 115.8 kB / 0.7945 GB, free: 1.824 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.02482, allocations: 23.86 kB / 0.7945 GB, free: 1.801 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.02497, allocations: 67.52 kB / 0.7946 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.025, allocations: 23.94 kB / 0.7946 GB, free: 1.711 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001709/0.02517, allocations: 168.9 kB / 0.7948 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001963/0.02536, allocations: 333.2 kB / 0.7951 GB, free: 1.113 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003005/0.02566, allocations: 409.7 kB / 0.7955 GB, free: 0.625 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.115e-06/0.02567, allocations: 7.938 kB / 0.7955 GB, free: 0.6172 MB / 0.7448 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.000372/0.02604, allocations: 396.4 kB / 0.7959 GB, free: 232 kB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.02605, allocations: 8 kB / 0.7959 GB, free: 224 kB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.02606, allocations: 8 kB / 0.7959 GB, free: 216 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.02607, allocations: 8.938 kB / 0.7959 GB, free: 208 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.02626, allocations: 115.8 kB / 0.796 GB, free: 92 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.02627, allocations: 20.92 kB / 0.796 GB, free: 72 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.02641, allocations: 59.62 kB / 0.7961 GB, free: 12 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.02644, allocations: 25.11 kB / 0.7961 GB, free: 15.98 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.activeSteps,toOff.enableFire,toOff.localCondition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.localCondition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.localCondition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.localCondition,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,toOn.t_start,$PRE.toOn.t_start,toHold.t_start,$PRE.toHold.t_start,toDischarge.t_start,$PRE.toDischarge.t_start,toOff.t_start,$PRE.toOff.t_start,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0001464/0.02659, allocations: 254.3 kB / 0.7964 GB, free: 15.73 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.02664, allocations: 43.97 kB / 0.7964 GB, free: 15.69 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.055e-05/0.0267, allocations: 57.44 kB / 0.7965 GB, free: 15.63 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.0267, allocations: 0 / 0.7965 GB, free: 15.63 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.0267, allocations: 0 / 0.7965 GB, free: 15.63 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.02678, allocations: 52.56 kB / 0.7965 GB, free: 15.58 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.02682, allocations: 23.92 kB / 0.7965 GB, free: 15.56 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.589e-05/0.02689, allocations: 12 kB / 0.7965 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.776e-05/0.02697, allocations: 44.64 kB / 0.7966 GB, free: 15.5 MB / 0.7605 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003773/0.02734, allocations: 0.6631 MB / 0.7972 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004758/0.02782, allocations: 0.8347 MB / 0.798 GB, free: 13.98 MB / 0.7605 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001006/0.02792, allocations: 99.61 kB / 0.7981 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 7.295e-05/0.02799, allocations: 104.6 kB / 0.7982 GB, free: 13.78 MB / 0.7605 GB Notification: Performance of Backend: time 2.51e-07/0.02799, allocations: 0.8125 kB / 0.7982 GB, free: 13.78 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0009712/0.02896, allocations: 0.5657 MB / 0.7988 GB, free: 13.21 MB / 0.7605 GB Notification: Performance of SimCode: time 0.001649/0.03061, allocations: 1.568 MB / 0.8003 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of Templates: time 0.0121/0.04272, allocations: 8.76 MB / 0.8089 GB, free: 3.066 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=240 -lv LOG_STATS > Buildings_13_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.188139990903437]