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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1032
RA = 335.391, Dec = -52.4307
tmin = 506822401, tmax = 507081601
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='267117', job_status='RUN', time_executed='2021-09-28 09:39:14.658218', time_epoch_executed='1632847154.66' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267117/ft1_4FGL_J2221.5-5225_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267117/ft1_4FGL_J2221.5-5225_daily_bin1032.fits outfile=/scratch/kocevski/267117/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1032.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=506822401.0 tmax=507081601.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.51
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.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/267117/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/267117/ltcube_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.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/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits
.....................!
real 11.87
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/267117/ltcube_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits outfile=/scratch/kocevski/267117/expmap_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.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/267117/ltcube_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits
.....................!
real 190.38
user 185.44
sys 4.58

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/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits outfile=/scratch/kocevski/267117/cmap_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits outfile=/scratch/kocevski/267117/cmap_HighResolution_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.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/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267117/Model_4FGL_J2221.5-5225_daily_bin1032.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/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits.....................!
real 49.44
user 48.09
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits', '/scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits', expMap='/scratch/kocevski/267117/expmap_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits', expCube='/scratch/kocevski/267117/ltcube_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267117/Model_4FGL_J2221.5-5225_daily_bin1032.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/267117/ft1_filtered_4FGL_J2221.5-5225_daily_bin1032.fits
Spacecraft file(s): /scratch/kocevski/267117/ft2_4FGL_J2221.5-5225_daily_bin1032.fits
Exposure map: /scratch/kocevski/267117/expmap_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits
Exposure cube: /scratch/kocevski/267117/ltcube_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267117/Model_4FGL_J2221.5-5225_daily_bin1032.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) = 6735.78199636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.883       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2918       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .79742E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11593E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96679E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71870       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0106       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=   6735.658     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2507 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.818        28.299        .19331E-05   -.16224E-05
   2  Prefactor     1.9008        4.7464       -.10120E-05   -.86698E-03
   3  Prefactor     .10000E-03    5.0985        .12443E-05** at limit **
   4  Prefactor     4.6714        3.5276       -.11522E-06   -.29230E-03
   5  Prefactor     .10000E-03    11.470        .71147E-05** at limit **
   6  Prefactor     26.886        10.012        .43183E-07    .10280E-03
   7  Prefactor     3.5196        3.0727       -.43582E-07   -.16851E-03
   8  Prefactor     .10000E-03    40.934       -.20456E-04** at limit **
   9  norm          1.2922        4.4283       -.14948E-05   -.95025E-03
  10  Prefactor     .10000E-03    1.5817        .31259E-07** at limit **
  11  Prefactor     .10000E-03    22.629        .13097E-06** at limit **
  12  Prefactor     12.557        6.2619       -.19416E-06    .84776E-04
  13  Prefactor     .10000E-03    18.633       -.13650E-04** at limit **
  14  Prefactor     .10000E-03    5.3608        .42958E-06** at limit **
  15  Prefactor     .10000E-03    26.257        .12281E-04** at limit **
  16  Prefactor     .10000E-03    4.8137       -.14048E-05** at limit **
  17  Prefactor     39.575        32.274        .28826E-05    .26820E-04
  18  Prefactor     .10000E-03    3.3988       -.45319E-07** at limit **
  19  norm          .10000E-03    9.2846       -.35991E-05** at limit **
  20  norm          .10000E-03    3.8547        .20383E-06** at limit **
  21  Prefactor     24.984        8.8786       -.93189E-08   -.34613E-03
  22  Prefactor     .10000E-03    32.609        .15251E-04** at limit **
  23  norm          .96463E-01    .49434       -.50857E-06   -.16997E-02
  24  Normalizat    .71865        .15721        .19503E-06    .87859E-04
  25  Prefactor     1.0106        .13142        .75399E-08    .99853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8181
  Prefactor  = 1.90082
  Prefactor  = 0.0001
  Prefactor  = 4.67136
  Prefactor  = 0.0001
  Prefactor  = 26.8865
  Prefactor  = 3.51963
  Prefactor  = 0.0001
  norm       = 1.29219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5746
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.984
  Prefactor  = 0.0001
  norm       = 0.0964634
  Normalizat = 0.718646
  Prefactor  = 1.01061
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.658     FROM HESSE     STATUS=OK           421 CALLS     2928 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.818        28.294        .74634E-04   -1.4634    
   2  Prefactor     1.9008        4.7869        .27567E-03   -1.5432    
   3  Prefactor     .10000E-03    5.0998        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6714        3.5231        .12810E-03   -1.5276    
   5  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.886        10.007        .77265E-04   -1.4670    
   7  Prefactor     3.5196        3.0633        .12857E-03   -1.5333    
   8  Prefactor     .10000E-03    40.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2922        4.4598        .31662E-03   -1.5481    
  10  Prefactor     .10000E-03    7.1171        .19661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.557        6.2687        .11303E-03   -1.4999    
  13  Prefactor     .10000E-03    18.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9173        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.575        32.259        .31859E-03   -1.4449    
  18  Prefactor     .10000E-03    3.4011        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.3357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9040        .15703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.984        8.7635        .80150E-04   -1.4708    
  22  Prefactor     .10000E-03    32.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96463E-01    .81154        .10981E-02   -1.5646    
  24  Normalizat    .71865        .18055        .27183E-03   -1.0316    
  25  Prefactor     1.0106        .15306        .20090E-03   -.92377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99137e-09
Minuit parameter uncertainties:
  1  28.3075
  2  4.78782
  3  1.8542e-06
  4  3.52322
  5  2.17249e-06
  6  10.0077
  7  3.0634
  8  7.76762e-06
  9  4.46095
  10  2.95716e-05
  11  1.17184e-06
  12  6.26901
  13  2.84975e-05
  14  6.46929e-06
  15  1.32445e-06
  16  5.26959e-06
  17  32.2729
  18  1.63948e-08
  19  4.15718e-06
  20  1.71945e-05
  21  8.7639
  22  2.7667e-05
  23  0.559305
  24  0.180695
  25  0.153121
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.292e+00  4.461e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.011e+00  1.531e-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:  7.186e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 2.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267117/likelihoodResults_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.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) = 6735.45798167
delta logL = 0.20024435595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6735.45171987
delta logL = 0.206506147793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2188       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3831       1.0000          .0000       5.0000    
     3 'Normalizat'    .71650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       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.

 FCN=   6735.452     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      201 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2188        59.682        .10219E-01    .18396E-02
   2  alpha         2.3831        3.6714        .41209        .86230E-04
   3  Normalizat    .71650        .35491E-01    .61518E-01    .15426E-04
   4  Prefactor     1.0088        .29344E-01    .43505E-01   -.18781E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21884
  alpha      = 2.38306
  Normalizat = 0.716499
  Prefactor  = 1.00882
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.452     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2188        3.4947        .15556E-03   -1.5487    
   2  alpha         2.3831        1.2855        .17123E-01   -.46795E-01
   3  Normalizat    .71650        .17364        .27213E-03   -1.0325    
   4  Prefactor     1.0088        .15097        .20097E-03   -.92436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2263e-10
Minuit parameter uncertainties:
  1  3.49531
  2  1.35037
  3  0.173771
  4  0.151038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267117': 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) = 6735.45171987
delta logL = 0.206506147813

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.219e+00  3.495e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.383e+00  1.350e+00  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:  1.009e+00  1.510e-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:  7.165e-01  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/267117/cmap_HighResolution_506822401_507081601_4FGL_J2221.5-5225_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', job_status='DONE', photon_flux_upper_limit='2.80e-08', time_completed='2021-09-28 09:50:54.978941', job_id='267117', GAL2='1.01', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632847854.98', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.07e-01', ts2='0.52', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1032' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 267117: <4FGL_J2221.5-5225_daily_bin1032> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1032> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:35:24 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:35:26 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:35:26 2021
Terminated at Tue Sep 28 09:50:55 2021
Results reported at Tue Sep 28 09:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1032 335.391 -52.4307 506822401 507081601 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 :                                   700.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

