/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 148 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7418
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin120
RA = 335.497, Dec = -35.0712
tmin = 270432001, tmax = 270691201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='270168', job_status='RUN', time_executed='2021-09-28 09:48:06.481920', time_epoch_executed='1632847686.48' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270168

Creating custom pfile directory:
/scratch/kocevski/270168/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=270432001.0 && nMetStart<270691201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=270432001.0 && nMetStart<270691201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270168/ft1_4FGL_J2221.9-3504_daily_bin120.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=270432001.0 && nMetStart<270691201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270168/ft1_4FGL_J2221.9-3504_daily_bin120.fits outfile=/scratch/kocevski/270168/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin120.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=270432001.0 tmax=270691201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.63
user 1.44
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/270168/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin120.fits evtable="EVENTS" outfile="/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits" evtable="EVENTS" scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits sctable="SC_DATA" outfile=/scratch/kocevski/270168/ltcube_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits
.....................!
real 12.40
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits sctable="SC_DATA" expcube=/scratch/kocevski/270168/ltcube_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits outfile=/scratch/kocevski/270168/expmap_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/270168/ltcube_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits
.....................!
real 192.86
user 187.20
sys 5.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits outfile=/scratch/kocevski/270168/cmap_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.497 yref=-35.0712 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits outfile=/scratch/kocevski/270168/cmap_HighResolution_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.497 yref=-35.0712 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270168/Model_4FGL_J2221.9-3504_daily_bin120.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits.....................!
real 47.93
user 46.65
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits', '/scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits', expMap='/scratch/kocevski/270168/expmap_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits', expCube='/scratch/kocevski/270168/ltcube_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270168/Model_4FGL_J2221.9-3504_daily_bin120.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/270168/ft1_filtered_4FGL_J2221.9-3504_daily_bin120.fits
Spacecraft file(s): /scratch/kocevski/270168/ft2_4FGL_J2221.9-3504_daily_bin120.fits
Exposure map: /scratch/kocevski/270168/expmap_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits
Exposure cube: /scratch/kocevski/270168/ltcube_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270168/Model_4FGL_J2221.9-3504_daily_bin120.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6106.69039905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6106.67347188

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2795       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1669       1.0000         .10000E-03   10000.    
     4 'norm      '    17.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0867       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48804       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    286.59       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.364       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.6374       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13752E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7888       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.5581       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70310       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6106.673     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3582 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2797        4.7740       -.95870E-08   -.47023E-04
   2  Prefactor     .46080        10.160        .10242E-05   -.26018E-04
   3  Prefactor     5.1676        8.1728       -.52069E-06   -.19537E-03
   4  norm          17.303        10.780       -.14885E-06   -.17474E-03
   5  Prefactor     .10000E-03    8.1368        .51335E-06** at limit **
   6  Prefactor     .10000E-03    33.405       -.30894E-05** at limit **
   7  norm          .10000E-03    3.4356        .38832E-06** at limit **
   8  norm          1.3700        .42657        .66556E-08   -.40579E-03
   9  Prefactor     .10000E-03    18.528        .29701E-05** at limit **
  10  Prefactor     9.0840        23.553       -.17655E-06   -.46381E-04
  11  Prefactor     3.1087        5.8089       -.82109E-07   -.26973E-04
  12  Prefactor     .48781        4.6016       -.16305E-05   -.93228E-06
  13  norm          .10000E-03    7.7041       -.20075E-06** at limit **
  14  Prefactor     .10000E-03    47.201        .63656E-05** at limit **
  15  Prefactor     .10000E-03    15.054        .52169E-06** at limit **
  16  Prefactor     .10000E-03    14.567       -.10763E-05** at limit **
  17  norm          .10000E-03    1.4018        .16724E-06** at limit **
  18  Prefactor     286.58        83.598       -.30362E-06   -.44717E-04
  19  Prefactor     24.364        15.920        .22418E-06   -.50038E-04
  20  Prefactor     .10000E-03    4.2487        .63403E-07** at limit **
  21  norm          8.6372        4.9183        .24522E-07   -.15428E-03
  22  Prefactor     .10000E-03    5.6366       -.28865E-07** at limit **
  23  Prefactor     .10000E-03    100.17       -.18891E-04** at limit **
  24  norm          1.7886        .84850        .33769E-08   -.73486E-03
  25  Prefactor     .10000E-03    23.930       -.20902E-05** at limit **
  26  Prefactor     6.5563        10.191       -.80316E-06   -.10279E-03
  27  Normalizat    .70329        .21378       -.17900E-05   -.19720E-03
  28  Prefactor     1.3419        .18222       -.26885E-06   -.36234E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2797
  Prefactor  = 0.460796
  Prefactor  = 5.16759
  norm       = 17.3034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37
  Prefactor  = 0.0001
  Prefactor  = 9.08402
  Prefactor  = 3.10874
  Prefactor  = 0.487808
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 286.58
  Prefactor  = 24.3642
  Prefactor  = 0.0001
  norm       = 8.63718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78861
  Prefactor  = 0.0001
  Prefactor  = 6.55632
  Normalizat = 0.703293
  Prefactor  = 1.34193
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.673     FROM HESSE     STATUS=OK           523 CALLS     4105 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2797        4.7775        .14407E-03   -1.5207    
   2  Prefactor     .46080        65.067        .43053E-02   -1.5572    
   3  Prefactor     5.1676        8.2262        .17686E-03   -1.5253    
   4  norm          17.303        10.796        .96284E-04   -1.4876    
   5  Prefactor     .10000E-03    8.1466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5119        .14146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3700        .42676        .27452E-04   -1.5474    
   9  Prefactor     .10000E-03    18.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0840        23.570        .13296E-03   -1.5105    
  11  Prefactor     3.1087        5.8010        .22995E-03   -1.5355    
  12  Prefactor     .48781        4.6146        .31676E-03   -1.5568    
  13  norm          .10000E-03    7.7030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4119        .90123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     286.58        82.527        .11987E-03   -1.2306    
  19  Prefactor     24.364        15.975        .81154E-04   -1.4720    
  20  Prefactor     .10000E-03    4.2782        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.6372        4.8493        .12203E-03   -1.5120    
  22  Prefactor     .10000E-03    5.6401        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    97.053        .38600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7886        .78710        .42663E-04   -1.5440    
  25  Prefactor     .10000E-03    23.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.5563        10.105        .78354E-03   -1.5196    
  27  Normalizat    .70329        .25024        .33541E-03   -1.0376    
  28  Prefactor     1.3419        .21651        .22644E-03   -.82069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54015e-08
Minuit parameter uncertainties:
  1  4.77782
  2  10.9622
  3  8.22797
  4  10.7969
  5  1.89508e-06
  6  0.000252013
  7  2.017e-05
  8  0.426766
  9  0.00011972
  10  23.5944
  11  5.80203
  12  3.00068
  13  1.47553e-05
  14  0.000335612
  15  2.64969e-05
  16  0.000103391
  17  4.2866e-06
  18  82.5611
  19  15.9776
  20  2.12608e-05
  21  4.8495
  22  1.83172e-06
  23  0.000426632
  24  0.7871
  25  0.00013865
  26  10.1078
  27  0.250643
  28  0.216659
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6106.67347092

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.109e+00  5.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.342e+00  2.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.033e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270168/likelihoodResults_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6106.584246
delta logL = 0.0892249165036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6106.57935186
delta logL = 0.0941190536223

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6540       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1357       1.0000          .0000       10.000    
     3 'Normalizat'    .71062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6106.579     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      267 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6539        6.1094        .21132E-03    .28782E-04
   2  Index         2.1353        1.0994        .12877E-01   -.46714E-05
   3  Normalizat    .71063        .23364        .33372E-03   -.82782E-05
   4  Prefactor     1.3369        .21174        .22675E-03   -.12534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65386
  Index      = 2.13527
  Normalizat = 0.710635
  Prefactor  = 1.33693
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.579     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6539        6.1562        .84529E-05   -1.5326    
   2  Index         2.1353        1.1081        .51506E-03   -.61010    
   3  Normalizat    .71063        .23383        .13349E-04   -1.0347    
   4  Prefactor     1.3369        .21190        .45351E-04   -.82215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07809e-12
Minuit parameter uncertainties:
  1  6.15725
  2  1.12205
  3  0.234158
  4  0.212037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270168': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6106.5793518
delta logL = 0.0941191177917

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.654e+00  6.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.135e+00  1.122e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.337e+00  2.120e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  7.106e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/270168/cmap_HighResolution_270432001_270691201_4FGL_J2221.9-3504_daily_bin120.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/270168

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2021-09-28 10:00:33.168259', job_id='270168', GAL2='1.34', fit_tolerance='1e-08', EG2='0.71', EG='0.70', time_epoch_completed='1632848433.17', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='9.41e-02', ts2='0.59', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='120' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 270168: <4FGL_J2221.9-3504_daily_bin120> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin120> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:28 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:45:29 2021
Terminated at Tue Sep 28 10:00:34 2021
Results reported at Tue Sep 28 10:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin120 335.497 -35.0712 270432001 270691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

The output (if any) is above this job summary.

