/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 169 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin305
RA = 335.391, Dec = -52.4307
tmin = 318384001, tmax = 318643201
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='264375', job_status='RUN', time_executed='2021-09-28 09:28:24.346625', time_epoch_executed='1632846504.35' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264375/ft1_4FGL_J2221.5-5225_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264375/ft1_4FGL_J2221.5-5225_daily_bin305.fits outfile=/scratch/kocevski/264375/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin305.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=318384001.0 tmax=318643201.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.30
user 3.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/264375/ltcube_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.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/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits
.....................!
real 11.80
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/264375/ltcube_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.fits outfile=/scratch/kocevski/264375/expmap_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.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/264375/ltcube_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.fits
.....................!
real 191.31
user 186.55
sys 4.45

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/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits scfile=/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits outfile=/scratch/kocevski/264375/cmap_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits scfile=/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits outfile=/scratch/kocevski/264375/cmap_HighResolution_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.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/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/264375/ft2_4FGL_J2221.5-5225_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264375/Model_4FGL_J2221.5-5225_daily_bin305.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/264375/ft1_filtered_4FGL_J2221.5-5225_daily_bin305.fits.....................!
real 55.45
user 54.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55100E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46830E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9780       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 '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.710       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58265       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=   7535.983     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2950 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.839        .38275E-05** at limit **
   2  Prefactor     19.116        7.7795       -.97616E-08   -.10503E-04
   3  Prefactor     30.935        21.804        .11977E-06   -.47458E-05
   4  Prefactor     6.9800        4.1835       -.29982E-07    .88774E-04
   5  Prefactor     1.3656        83.200        .59007E-05    .97727E-04
   6  Prefactor     .10165E-03    12.288       -.45768E-05** at limit **
   7  Prefactor     .10000E-03    1.1997        .90899E-07** at limit **
   8  Prefactor     .10000E-03    29.430       -.15025E-05** at limit **
   9  norm          .10000E-03    5.3608       -.69897E-06** at limit **
  10  Prefactor     1.2561        3.7767        .11960E-05    .63577E-03
  11  Prefactor     .10000E-03    48.858       -.15385E-05** at limit **
  12  Prefactor     .10001E-03    3.0853       -.65365E-06** at limit **
  13  Prefactor     22.885        25.626        .81456E-06    .26682E-03
  14  Prefactor     .10000E-03    5.1482        .55958E-06** at limit **
  15  Prefactor     .10000E-03    32.179       -.36279E-05** at limit **
  16  Prefactor     .10000E-03    3.7581       -.40109E-07** at limit **
  17  Prefactor     .10000E-03    13.719       -.98401E-06** at limit **
  18  Prefactor     3.9784        10.245        .28638E-05    .67720E-03
  19  norm          .10000E-03    2.9408        .76275E-07** at limit **
  20  norm          .10000E-03    2.5617        .29019E-07** at limit **
  21  Prefactor     .10000E-03    2.7790       -.51372E-07** at limit **
  22  Prefactor     .10000E-03    8.7290        .37725E-06** at limit **
  23  norm          16.710        2.3235       -.45144E-07    .11864E-03
  24  Normalizat    1.3387        .16945        .16695E-07    .44091E-03
  25  Prefactor     .58254        .12842       -.75102E-06    .99626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 19.1164
  Prefactor  = 30.9351
  Prefactor  = 6.98003
  Prefactor  = 1.36558
  Prefactor  = 0.000101649
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.25611
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 22.885
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97842
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7099
  Normalizat = 1.33873
  Prefactor  = 0.582535
 **********
 **   18 **HESSE 
 **********

 FCN=   7535.983     FROM HESSE     STATUS=OK           431 CALLS     3381 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.116        7.7794        .91605E-04   -1.4833    
   3  Prefactor     30.935        21.794        .72038E-04   -1.4595    
   4  Prefactor     6.9800        4.1790        .13025E-03   -1.5180    
   5  Prefactor     1.3656        85.125        .36735E-03   -1.5474    
   6  Prefactor     .10165E-03    3.6569        .53598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9788        .18427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.4420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2561        3.8233        .27088E-03   -1.5484    
  11  Prefactor     .10000E-03    49.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    35.137        .26916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.885        24.964        .83718E-04   -1.4751    
  14  Prefactor     .10000E-03    5.2028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8390        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9784        10.486        .10111E-02   -1.5309    
  19  norm          .10000E-03    2.9414        .14539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5652        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7991        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.710        2.3279        .46881E-04   -1.4890    
  24  Normalizat    1.3387        .20195        .22487E-03   -.82418    
  25  Prefactor     .58254        .15276        .26500E-03   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05433e-09
Minuit parameter uncertainties:
  1  0.000628674
  2  7.77979
  3  21.7995
  4  4.17917
  5  21.5948
  6  0.00491226
  7  1.99658e-05
  8  0.000266048
  9  4.68831e-05
  10  3.82404
  11  0.000410557
  12  0.0011964
  13  24.9758
  14  3.33223e-05
  15  0.000712828
  16  2.41982e-06
  17  0.000123945
  18  10.4908
  19  4.7084e-06
  20  1.68016e-06
  21  2.15935e-06
  22  4.00693e-05
  23  2.32788
  24  0.202067
  25  0.152872
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  4.688e-05  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:  5.825e-01  1.529e-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.339e+00  2.021e-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: 2.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264375/likelihoodResults_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.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) = 7535.98392234
delta logL = -0.000874897041285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7535.98304597
delta logL = 1.46833463077e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6704       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58256       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=   7535.983     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      283 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    9.1215        .36285E-03** at limit **
   2  alpha         1.7540        3.3345        .50000       -.64149E-04
   3  Normalizat    1.3387        .18222        .22487E-03    .10774E-03
   4  Prefactor     .58254        .14803        .26500E-03    .15049E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100041
  alpha      = 1.75401
  Normalizat = 1.33872
  Prefactor  = 0.582538
 **********
 **   18 **HESSE 
 **********

 FCN=   7535.983     FROM HESSE     STATUS=OK            29 CALLS      312 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    9.0137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7540        3.3326        .50000       -.30301    
   3  Normalizat    1.3387        .18236        .44974E-04   -.82418    
   4  Prefactor     .58254        .14814        .10600E-04   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45008e-09
Minuit parameter uncertainties:
  1  0.00121525
  2  2.38681
  3  0.182447
  4  0.148243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264375': 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) = 7535.98304379
delta logL = 3.64894276572e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.215e-03  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.754e+00  2.387e+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:  5.825e-01  1.482e-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.339e+00  1.824e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/264375/cmap_HighResolution_318384001_318643201_4FGL_J2221.5-5225_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2021-09-28 09:41:55.672928', job_id='264375', GAL2='0.58', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632847315.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='305' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:41:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 264375: <4FGL_J2221.5-5225_daily_bin305> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin305> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:26 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:27 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:25:27 2021
Terminated at Tue Sep 28 09:41:56 2021
Results reported at Tue Sep 28 09:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin305 335.391 -52.4307 318384001 318643201 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 :                                   811.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

