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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin671
RA = 335.391, Dec = -52.4307
tmin = 413251201, tmax = 413510401
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='265643', job_status='RUN', time_executed='2021-09-28 09:32:43.438112', time_epoch_executed='1632846763.44' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265643/ft1_4FGL_J2221.5-5225_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265643/ft1_4FGL_J2221.5-5225_daily_bin671.fits outfile=/scratch/kocevski/265643/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin671.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.73
user 5.49
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.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/265643/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/265643/ltcube_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.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/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits
.....................!
real 14.63
user 14.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/265643/ltcube_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.fits outfile=/scratch/kocevski/265643/expmap_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.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/265643/ltcube_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.fits
.....................!
real 190.99
user 185.34
sys 5.35

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/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits outfile=/scratch/kocevski/265643/cmap_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits outfile=/scratch/kocevski/265643/cmap_HighResolution_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/265643/ft2_4FGL_J2221.5-5225_daily_bin671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265643/Model_4FGL_J2221.5-5225_daily_bin671.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/265643/ft1_filtered_4FGL_J2221.5-5225_daily_bin671.fits.....................!
real 37.05
user 35.78
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.048       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4819       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11811E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82788E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14639E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.837       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.557       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.488       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67491       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1771       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=   4054.409     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2885 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.055        57.033        .72842E-05   -.18940E-04
   2  Prefactor     .10000E-03    6.0543       -.10276E-06** at limit **
   3  Prefactor     .10000E-03    20.061        .21130E-05** at limit **
   4  Prefactor     4.5936        5.6759        .35573E-05   -.42368E-03
   5  Prefactor     7.5047        91.201        .26711E-04   -.69129E-04
   6  Prefactor     .10001E-03    30.183        .11554E-04** at limit **
   7  Prefactor     1.6815        3.6603       -.73792E-06   -.59975E-03
   8  Prefactor     .10000E-03    315.20        .29878E-07** at limit **
   9  norm          .10002E-03    7.5944       -.11102E-06** at limit **
  10  Prefactor     7.2190        6.1213       -.43601E-05   -.29085E-03
  11  Prefactor     .10000E-03    79.582        .27841E-04** at limit **
  12  Prefactor     .10000E-03    4.0384       -.27658E-06** at limit **
  13  Prefactor     30.642        54.258        .38001E-04    .13045E-03
  14  Prefactor     .10005E-03    31.866       -.15205E-04** at limit **
  15  Prefactor     .10000E-03    75.203       -.23797E-04** at limit **
  16  Prefactor     9.4181        13.135        .18491E-06   -.51582E-04
  17  Prefactor     .10000E-03    21.061       -.40164E-05** at limit **
  18  Prefactor     26.818        41.351       -.35109E-05    .11045E-04
  19  norm          .10000E-03    9.8703       -.26223E-09** at limit **
  20  norm          10.557        15.553        .85177E-07   -.17431E-05
  21  Prefactor     .10000E-03    7.5924       -.13712E-06** at limit **
  22  Prefactor     .10000E-03    16.543        .46750E-06** at limit **
  23  norm          23.490        5.9928        .53770E-06    .45201E-04
  24  Normalizat    .67455        .27294       -.12323E-04   -.24842E-04
  25  Prefactor     1.1774        .19396        .12544E-05   -.32562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59365
  Prefactor  = 7.50466
  Prefactor  = 0.000100012
  Prefactor  = 1.68152
  Prefactor  = 0.000100005
  norm       = 0.000100017
  Prefactor  = 7.21905
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.6415
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 9.41814
  Prefactor  = 0.0001
  Prefactor  = 26.8181
  norm       = 0.0001
  norm       = 10.5569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.4898
  Normalizat = 0.674549
  Prefactor  = 1.1774
 **********
 **   18 **HESSE 
 **********

 FCN=   4054.409     FROM HESSE     STATUS=OK           423 CALLS     3308 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.055        57.008        .64143E-04   -1.4457    
   2  Prefactor     .10000E-03    6.1107        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5936        5.6323        .15580E-03   -1.5279    
   5  Prefactor     7.5047        89.340        .14662E-03   -1.5160    
   6  Prefactor     .10001E-03    30.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6815        3.6216        .17261E-03   -1.5449    
   8  Prefactor     .10000E-03    315.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    32.798        .34144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2190        6.1483        .13847E-03   -1.5171    
  11  Prefactor     .10000E-03    79.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0481        .12494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.642        55.029        .72448E-04   -1.4600    
  14  Prefactor     .10005E-03    33.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    75.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4181        13.128        .13059E-03   -1.5094    
  17  Prefactor     .10000E-03    21.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.818        41.416        .77331E-04   -1.4672    
  19  norm          .10000E-03    9.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.557        15.558        .12331E-03   -1.5058    
  21  Prefactor     .10000E-03    7.6071        .17132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.490        6.0049        .69585E-04   -1.4738    
  24  Normalizat    .67455        .31221        .34068E-03   -1.0491    
  25  Prefactor     1.1774        .22455        .20187E-03   -.87030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42865e-09
Minuit parameter uncertainties:
  1  57.0875
  2  6.02753e-06
  3  2.47298e-05
  4  5.6329
  5  51.8835
  6  0.00119151
  7  3.62207
  8  0.00244526
  9  0.00150737
  10  6.14889
  11  0.000499839
  12  6.36802e-05
  13  55.1207
  14  0.00245462
  15  0.000322029
  16  13.1325
  17  4.92905e-05
  18  41.4603
  19  3.13562e-06
  20  15.5639
  21  5.78744e-06
  22  4.59978e-06
  23  6.00501
  24  0.313033
  25  0.224734
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.507e-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:  1.177e+00  2.247e-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:  6.745e-01  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265643/likelihoodResults_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.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): 102
logL (Free Index) = 4054.40905065
delta logL = -0.000143532465245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4054.39444938
delta logL = 0.0144577410738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92161       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0158       1.0000          .0000       5.0000    
     3 'Normalizat'    .67520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1757       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4054.394     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      397 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92161        8.9398        .37180E-03    .30747E-03
   2  alpha         1.0158        1.5841        .54067E-01    .33276E-04
   3  Normalizat    .67522        .28486        .34051E-03   -.20032E-06
   4  Prefactor     1.1757        .21953        .20199E-03   -.12270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.921607
  alpha      = 1.01581
  Normalizat = 0.675222
  Prefactor  = 1.17568
 **********
 **   18 **HESSE 
 **********

 FCN=   4054.394     FROM HESSE     STATUS=OK            25 CALLS      422 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92161        9.3352        .14872E-04   -1.5516    
   2  alpha         1.0158        1.6094        .21627E-02   -.63562    
   3  Normalizat    .67522        .28513        .13621E-04   -1.0488    
   4  Prefactor     1.1757        .21973        .80797E-05   -.87083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73359e-09
Minuit parameter uncertainties:
  1  5.86717
  2  1.86555
  3  0.285756
  4  0.219903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265643': 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) = 4054.39444938
delta logL = 0.014457744423

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  9.216e-01  5.867e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.016e+00  1.866e+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.176e+00  2.199e-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:  6.752e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/265643/cmap_HighResolution_413251201_413510401_4FGL_J2221.5-5225_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-05', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2021-09-28 09:42:22.416391', job_id='265643', GAL2='1.18', fit_tolerance='1e-08', EG2='0.68', EG='0.67', time_epoch_completed='1632847342.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.45e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='671' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:42:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 265643: <4FGL_J2221.5-5225_daily_bin671> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin671> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:37 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:39 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:30:39 2021
Terminated at Tue Sep 28 09:42:22 2021
Results reported at Tue Sep 28 09:42:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin671 335.391 -52.4307 413251201 413510401 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 :                                   578.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            705 sec.

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

