/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 24 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1402
RA = 335.391, Dec = -52.4307
tmin = 602726401, tmax = 602985601
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='268680', job_status='RUN', time_executed='2021-09-28 09:41:00.963595', time_epoch_executed='1632847260.96' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268680/ft1_4FGL_J2221.5-5225_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268680/ft1_4FGL_J2221.5-5225_daily_bin1402.fits outfile=/scratch/kocevski/268680/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1402.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.12
user 2.88
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.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/268680/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/268680/ltcube_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.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/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits
.....................!
real 12.81
user 12.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/268680/ltcube_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits outfile=/scratch/kocevski/268680/expmap_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.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/268680/ltcube_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits
.....................!
real 190.59
user 185.32
sys 4.87

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits outfile=/scratch/kocevski/268680/cmap_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.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.391 yref=-52.4307 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits outfile=/scratch/kocevski/268680/cmap_HighResolution_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.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.391 yref=-52.4307 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268680/Model_4FGL_J2221.5-5225_daily_bin1402.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/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits.....................!
real 18.66
user 17.44
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits', '/scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits', expMap='/scratch/kocevski/268680/expmap_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits', expCube='/scratch/kocevski/268680/ltcube_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268680/Model_4FGL_J2221.5-5225_daily_bin1402.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268680/ft1_filtered_4FGL_J2221.5-5225_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/268680/ft2_4FGL_J2221.5-5225_daily_bin1402.fits
Exposure map: /scratch/kocevski/268680/expmap_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits
Exposure cube: /scratch/kocevski/268680/ltcube_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268680/Model_4FGL_J2221.5-5225_daily_bin1402.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) = 907.648520902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7962.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54737E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57258E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1806.4       1.0000         .10000E-03   10000.    
    10 'Prefactor '    259.08       1.0000         .10000E-03   10000.    
    11 'Prefactor '    390.34       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3526.5       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.762       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   907.3751     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     3842 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    193.17        .17950E-03** at limit **
   2  Prefactor     .10000E-03    14.628        .68370E-06** at limit **
   3  Prefactor     .10000E-03    23.817        .12517E-05** at limit **
   4  Prefactor     .10000E-03    5.4276        .28510E-07** at limit **
   5  Prefactor     7961.9        7816.2       -.41917E-05    .13051E-05
   6  Prefactor     .10001E-03    1047.0       -.12414E-03** at limit **
   7  Prefactor     .10000E-03    17.144       -.22789E-06** at limit **
   8  Prefactor     .10000E-03    7583.0       -.36721E-03** at limit **
   9  norm          1806.0        3145.5       -.10034E-03    .42766E-05
  10  Prefactor     259.12        200.94        .26543E-04    .20575E-04
  11  Prefactor     390.24        610.02       -.50592E-04    .24596E-05
  12  Prefactor     .10000E-03    121.50       -.98505E-04** at limit **
  13  Prefactor    10000.0        1896.8        .29822E-03** at limit **
  14  Prefactor     3525.8        2324.1       -.13529E-03    .83031E-05
  15  Prefactor     .10000E-03    605.88       -.33518E-03** at limit **
  16  Prefactor     .10000E-03    28.771       -.16637E-05** at limit **
  17  Prefactor     .10000E-03    80.907        .18755E-04** at limit **
  18  Prefactor     .10000E-03    8.4575        .60367E-07** at limit **
  19  norm          .10000E-03    10.766       -.24418E-06** at limit **
  20  norm          .10000E-03    4.0980        .62318E-07** at limit **
  21  Prefactor     .10000E-03    3.6249        .17333E-07** at limit **
  22  Prefactor     26.758        22.328        .28125E-06    .10589E-04
  23  norm          .10000E-03    .41859        .19666E-07** at limit **
  24  Normalizat    .10000E-01    .65396E-01    .12274E-05** at limit **
  25  Prefactor     .88658        .18367        .65413E-05   -.20179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7961.94
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1806.03
  Prefactor  = 259.124
  Prefactor  = 390.24
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 3525.83
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.758
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.886579
 **********
 **   18 **HESSE 
 **********

 FCN=   907.3751     FROM HESSE     STATUS=OK           403 CALLS     4245 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    193.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.629        .11257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.820        .14366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4288        .68553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7961.9        7817.2        .49649E-04    .63402    
   6  Prefactor     .10001E-03    1046.8        .21112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.149        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7583.2        .21089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1806.0        3148.2        .51986E-04   -.69293    
  10  Prefactor     259.12        200.96        .12590E-03   -1.2474    
  11  Prefactor     390.24        610.12        .10327E-03   -1.1731    
  12  Prefactor     .10000E-03    121.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        1895.7        .20913E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3525.8        2322.5        .41859E-04   -.29928    
  15  Prefactor     .10000E-03    606.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.005        .15783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4624        .85582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.768        .96564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0981        .59570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6269        .56017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.758        22.324        .77439E-04   -1.4673    
  23  norm          .10000E-03    .41898        .19035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .65784E-01    .47214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .88658        .18311        .17699E-03   -.96612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86051e-10
Minuit parameter uncertainties:
  1  0.000709464
  2  7.05342e-07
  3  1.26657e-05
  4  1.82946e-06
  5  4825.56
  6  0.00548154
  7  0.000172133
  8  0.00591757
  9  3687.51
  10  201.499
  11  620.694
  12  4.91553e-05
  13  0.00549333
  14  2425.33
  15  0.000132123
  16  0.000245979
  17  1.25168e-05
  18  3.46698e-05
  19  2.56935e-06
  20  1.46945e-06
  21  6.46374e-06
  22  22.3313
  23  1.59004e-06
  24  1.23549e-06
  25  0.183237
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.806e+03  3.688e+03  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.866e-01  1.832e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.000e-02  1.235e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 1.37e-05 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268680/likelihoodResults_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.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) = 886.393035848
delta logL = 20.9820762708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 886.022980758
delta logL = 21.3521313613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    95.560       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3898       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+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=   886.0230     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      326 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          95.299        152.15        .20558E-03    .79874E-04
   2  alpha         4.3909        .57901        .15076E-03    .38478E-04
   3  Normalizat    .10000E-01    .42307E-01    .18847E-02** at limit **
   4  Prefactor     .62760        .15448        .17629E-03   -.22176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 95.2987
  alpha      = 4.39088
  Normalizat = 0.01
  Prefactor  = 0.627597
 **********
 **   18 **HESSE 
 **********

 FCN=   886.0230     FROM HESSE     STATUS=OK            23 CALLS      349 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          95.299        142.45        .82233E-05   -1.3752    
   2  alpha         4.3909        .54328        .60303E-05    .85772    
   3  Normalizat    .10000E-01    .42307E-01    .37694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62760        .15387        .35257E-04   -1.0644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98e-12
Minuit parameter uncertainties:
  1  142.965
  2  0.553808
  3  6.56881e-08
  4  0.153973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268680': 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) = 886.022969123
delta logL = 21.3521429964

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  9.530e+01  1.430e+02  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  4.391e+00  5.538e-01  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  6.276e-01  1.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.000e-02  6.569e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.26
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 4.39 +/- 0.55
Photon Flux (Free Index): 1.19e-04 +/- 2.88e-05
Energy Flux (Free Index): 1.82e-02 +/- 4.25e-03

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/268680/cmap_HighResolution_602726401_602985601_4FGL_J2221.5-5225_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-02', comment='SUCCESS', energy_flux2='1.82e-02', dlogl='2.14e+01', photon_flux2='1.19e-04', job_status='DONE', time_completed='2021-09-28 09:47:29.284610', photon_index_error2='0.55', photon_index2='4.39', ts='0.35', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.37e-05', energy_flux_error2='4.25e-03', EG='0.01', time_epoch_completed='1632847649.28', return_code='0', job_id='268680', GAL2='0.63', EG2='0.01', return_code2='0', photon_flux_error2='2.88e-05', ts2='43.26', photon_index='1.61' WHERE bin_id='1402' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 268680: <4FGL_J2221.5-5225_daily_bin1402> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1402> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:40:27 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:40: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:40:29 2021
Terminated at Tue Sep 28 09:47:30 2021
Results reported at Tue Sep 28 09:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1402 335.391 -52.4307 602726401 602985601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   388.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   420 sec.
    Turnaround time :                            423 sec.

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

