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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1297
RA = 335.391, Dec = -52.4307
tmin = 575510401, tmax = 575769601
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='268531', job_status='RUN', time_executed='2021-09-28 09:41:32.188440', time_epoch_executed='1632847292.19' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268531/ft1_4FGL_J2221.5-5225_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268531/ft1_4FGL_J2221.5-5225_daily_bin1297.fits outfile=/scratch/kocevski/268531/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1297.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=575510401.0 tmax=575769601.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.32
user 5.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/268531/ltcube_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.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/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits
.....................!
real 11.60
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/268531/ltcube_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.fits outfile=/scratch/kocevski/268531/expmap_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.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/268531/ltcube_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.fits
.....................!
real 190.16
user 185.06
sys 4.79

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/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits scfile=/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits outfile=/scratch/kocevski/268531/cmap_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits scfile=/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits outfile=/scratch/kocevski/268531/cmap_HighResolution_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/268531/ft2_4FGL_J2221.5-5225_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268531/Model_4FGL_J2221.5-5225_daily_bin1297.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/268531/ft1_filtered_4FGL_J2221.5-5225_daily_bin1297.fits.....................!
real 53.20
user 51.83
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58773E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3290       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2935       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94481       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88244       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=   7350.426     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2491 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0414        36.773        .90478E-05   -.48029E-04
   2  Prefactor     2.7218        6.4599        .56653E-05   -.34315E-03
   3  Prefactor     .10000E-03    18.037        .19848E-05** at limit **
   4  Prefactor     .10000E-03    1.0267       -.46488E-08** at limit **
   5  Prefactor     .10000E-03    101.52        .75774E-05** at limit **
   6  Prefactor     8.3236        6.0815       -.55130E-06   -.10957E-02
   7  Prefactor     .10000E-03    1.3462        .46629E-06** at limit **
   8  Prefactor     .10000E-03    39.360       -.64750E-06** at limit **
   9  norm          3.3636        3.4840       -.16806E-07   -.48172E-04
  10  Prefactor     .90839        2.3432        .32604E-06   -.15824E-03
  11  Prefactor     .10000E-03    7.9906        .23497E-06** at limit **
  12  Prefactor     5.6181        4.5010        .16985E-06   -.23165E-03
  13  Prefactor     .10000E-03    12.117        .21173E-06** at limit **
  14  Prefactor     .37390        5.4196        .26201E-06   -.96950E-04
  15  Prefactor     .10000E-03    22.418       -.20328E-05** at limit **
  16  Prefactor     5.0522        4.2349        .11668E-06   -.58906E-06
  17  Prefactor     .10000E-03    11.351       -.87758E-06** at limit **
  18  Prefactor     .10000E-03    3.6886       -.21053E-07** at limit **
  19  norm          4.2938        6.2924        .10655E-06   -.43745E-05
  20  norm          .10000E-03    1.7733       -.42666E-07** at limit **
  21  Prefactor     4.2581        3.8547        .29033E-06    .88908E-04
  22  Prefactor     .10000E-03    4.6684       -.82292E-07** at limit **
  23  norm          .10000E-03    .24531       -.21644E-07** at limit **
  24  Normalizat    .94477        .14361       -.66051E-06   -.91587E-03
  25  Prefactor     .88239        .11949       -.13422E-05   -.98389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04135
  Prefactor  = 2.72181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 8.32364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.36362
  Prefactor  = 0.908393
  Prefactor  = 0.0001
  Prefactor  = 5.61807
  Prefactor  = 0.0001
  Prefactor  = 0.373903
  Prefactor  = 0.0001
  Prefactor  = 5.05221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29382
  norm       = 0.0001
  Prefactor  = 4.25813
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.944767
  Prefactor  = 0.882386
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.426     FROM HESSE     STATUS=OK           427 CALLS     2918 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0414        36.811        .14480E-02   -1.5422    
   2  Prefactor     2.7218        6.4655        .12341E-02   -1.5378    
   3  Prefactor     .10000E-03    18.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0358        .84811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    102.15        .42150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3236        6.1145        .13891E-03   -1.5131    
   7  Prefactor     .10000E-03    5.5493        .19035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3636        3.4880        .15883E-03   -1.5341    
  10  Prefactor     .90839        2.3109        .19998E-03   -1.5517    
  11  Prefactor     .10000E-03    7.9929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6181        4.5029        .15431E-03   -1.5234    
  13  Prefactor     .10000E-03    12.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .37390        27.435        .38135E-02   -1.5586    
  15  Prefactor     .10000E-03    22.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0522        4.2353        .15735E-03   -1.5258    
  17  Prefactor     .10000E-03    11.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7036        .16079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2938        6.2838        .19443E-03   -1.5294    
  20  norm          .10000E-03    1.7772        .11148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2581        3.8472        .15558E-03   -1.5295    
  22  Prefactor     .10000E-03    4.6751        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .32048        .82609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94477        .16793        .22930E-03   -.94904    
  25  Prefactor     .88239        .14029        .20328E-03   -.96759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78662e-08
Minuit parameter uncertainties:
  1  17.3491
  2  6.46714
  3  8.29381e-05
  4  3.18628e-07
  5  0.00114872
  6  6.115
  7  3.26194e-05
  8  3.89463e-05
  9  3.48823
  10  2.31113
  11  9.24441e-06
  12  4.50316
  13  6.67077e-06
  14  6.40782
  15  0.000125033
  16  4.23556
  17  3.70929e-05
  18  9.05062e-07
  19  6.28479
  20  4.01828e-06
  21  3.84738
  22  1.25515e-05
  23  1.80242e-07
  24  0.168019
  25  0.140343
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.364e+00  3.488e+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:  8.824e-01  1.403e-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:  9.448e-01  1.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 5.61e-09 +/- 5.82e-09
Energy Flux (Fixed Index): 1.14e-05 +/- 1.18e-05

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) = 7350.41940066
delta logL = 0.00691662450117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7350.4193282
delta logL = 0.0069890894838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3337       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4847       1.0000          .0000       5.0000    
     3 'Normalizat'    .94550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88228       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=   7350.419     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3336        3.4858        .15878E-03   -.14678E-04
   2  alpha         1.4847        .97678        .31768E-01   -.52567E-05
   3  Normalizat    .94548        .16003        .22922E-03   -.61004E-05
   4  Prefactor     .88230        .13827        .20329E-03   -.12471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3336
  alpha      = 1.48469
  Normalizat = 0.945475
  Prefactor  = 0.882303
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.419     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3336        3.5017        .63511E-05   -1.5343    
   2  alpha         1.4847        .98097        .12707E-02   -.41821    
   3  Normalizat    .94548        .16017        .91690E-05   -.94880    
   4  Prefactor     .88230        .13840        .81318E-05   -.96762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4605e-13
Minuit parameter uncertainties:
  1  3.50193
  2  1.01393
  3  0.160252
  4  0.138458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268531': 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) = 7350.41932819
delta logL = 0.0069891005005

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.334e+00  3.502e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.485e+00  1.014e+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:  8.823e-01  1.385e-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:  9.455e-01  1.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.48 +/- 1.01
Photon Flux (Free Index): 4.79e-09 +/- 7.77e-09
Energy Flux (Free Index): 1.33e-05 +/- 2.30e-05

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/268531/cmap_HighResolution_575510401_575769601_4FGL_J2221.5-5225_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-09', energy_flux2='1.33e-05', photon_flux_error='5.82e-09', dlogl='6.99e-03', energy_flux='1.14e-05', photon_flux2='4.79e-09', job_status='DONE', time_completed='2021-09-28 09:52:38.512598', photon_index_error2='1.01', photon_index2='1.48', ts='4.24', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='0.94', time_epoch_completed='1632847958.51', return_code='0', job_id='268531', GAL2='0.88', EG2='0.95', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='7.77e-09', ts2='4.25', photon_index='1.61' WHERE bin_id='1297' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:52:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 268531: <4FGL_J2221.5-5225_daily_bin1297> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1297> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:40:16 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:40:18 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:18 2021
Terminated at Tue Sep 28 09:52:39 2021
Results reported at Tue Sep 28 09:52:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1297 335.391 -52.4307 575510401 575769601 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 :                                   664.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

