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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1124
RA = 336.414, Dec = 21.3418
tmin = 530668801, tmax = 530928001
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='290606', job_status='RUN', time_executed='2021-09-28 10:58:24.284641', time_epoch_executed='1632851904.28' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290606/ft1_4FGL_J2225.6+2120_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290606/ft1_4FGL_J2225.6+2120_daily_bin1124.fits outfile=/scratch/kocevski/290606/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1124.fits ra=336.414 dec=21.3418 rad=12.0 tmin=530668801.0 tmax=530928001.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.65
user 3.41
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.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/290606/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/290606/ltcube_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.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/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits
.....................!
real 11.92
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/290606/ltcube_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits outfile=/scratch/kocevski/290606/expmap_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.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/290606/ltcube_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits
.....................!
real 191.71
user 185.82
sys 5.39

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

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits outfile=/scratch/kocevski/290606/cmap_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.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=336.414 yref=21.3418 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits outfile=/scratch/kocevski/290606/cmap_HighResolution_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.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=336.414 yref=21.3418 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290606/Model_4FGL_J2225.6+2120_daily_bin1124.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/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits.....................!
real 90.29
user 88.85
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits', '/scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits', expMap='/scratch/kocevski/290606/expmap_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits', expCube='/scratch/kocevski/290606/ltcube_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290606/Model_4FGL_J2225.6+2120_daily_bin1124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/290606/ft1_filtered_4FGL_J2225.6+2120_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/290606/ft2_4FGL_J2225.6+2120_daily_bin1124.fits
Exposure map: /scratch/kocevski/290606/expmap_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits
Exposure cube: /scratch/kocevski/290606/ltcube_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290606/Model_4FGL_J2225.6+2120_daily_bin1124.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) = 8895.17169096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .96600E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1402       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.843       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4295       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2042       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.198       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8895.139     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2485 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.328       -.35441E-05** at limit **
   2  norm          4.9776        3.1585       -.90516E-06   -.15087E-02
   3  Prefactor     .10002E-03    290.28       -.12582E-03** at limit **
   4  norm          .10000E-03    .39935       -.17440E-06** at limit **
   5  Prefactor     .10000E-03    16.639        .42789E-06** at limit **
   6  norm          1.1402        1.2005       -.24137E-05    .66827E-03
   7  Prefactor     .10000E-03    9.8209       -.20377E-05** at limit **
   8  norm          .10000E-03    1.4364        .11435E-06** at limit **
   9  Prefactor     8.2374        15.758        .33678E-05    .10682E-03
  10  Prefactor     19.928        105.79       -.40135E-04   -.84147E-04
  11  Prefactor     .10000E-03    4.4599       -.34415E-06** at limit **
  12  Prefactor     3.3583        .41072       -.67008E-07    .31519E-02
  13  Prefactor     .10000E-03    9.8829       -.85326E-06** at limit **
  14  norm          3.7624        1.4913        .69694E-07    .76466E-03
  15  Prefactor     .10000E-03    11.298        .48244E-07** at limit **
  16  norm          4.4294        1.9875       -.31937E-07    .12777E-03
  17  Prefactor     23.656        23.132        .31196E-06    .50795E-05
  18  Prefactor     .10000E-03    5.6265       -.42666E-06** at limit **
  19  Prefactor     .10000E-03    9.0341        .97699E-06** at limit **
  20  Prefactor     1.2042        .21818       -.15090E-07    .15385E-02
  21  Prefactor     .10000E-03    5.0306        .53896E-07** at limit **
  22  Prefactor     .10000E-03    3.2966       -.38535E-07** at limit **
  23  Prefactor     17.185        26.110        .61029E-06    .69194E-04
  24  Normalizat    1.3463        .23772        .78011E-06   -.37330E-03
  25  Prefactor     .73398        .10720        .14826E-05   -.97743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.97759
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.23745
  Prefactor  = 19.9276
  Prefactor  = 0.0001
  Prefactor  = 3.35832
  Prefactor  = 0.0001
  norm       = 3.76237
  Prefactor  = 0.0001
  norm       = 4.4294
  Prefactor  = 23.6562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1847
  Normalizat = 1.34628
  Prefactor  = 0.733984
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.139     FROM HESSE     STATUS=OK           431 CALLS     2916 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9776        3.1464        .12028E-03   -1.5262    
   3  Prefactor     .10002E-03    34.977        .13258       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .68044        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1402        1.2227        .21773E-03   -1.5494    
   7  Prefactor     .10000E-03    9.8585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4400        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2374        15.841        .13985E-03   -1.5134    
  10  Prefactor     19.928        108.95        .89915E-04   -1.4815    
  11  Prefactor     .10000E-03    4.4724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3583        .41285        .19521E-04   -1.5341    
  13  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7624        1.4949        .68410E-04   -1.5320    
  15  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4294        1.9883        .86539E-04   -1.5287    
  17  Prefactor     23.656        23.158        .82326E-04   -1.4735    
  18  Prefactor     .10000E-03    5.6491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2042        .21892        .17772E-04   -1.5488    
  21  Prefactor     .10000E-03    5.0448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2998        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.185        26.178        .96578E-04   -1.4879    
  24  Normalizat    1.3463        .28370        .35043E-03   -.82195    
  25  Prefactor     .73398        .12798        .21663E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91821e-09
Minuit parameter uncertainties:
  1  0.000485953
  2  3.14648
  3  0.001632
  4  7.34525e-06
  5  2.73792e-05
  6  1.2227
  7  7.58884e-05
  8  5.6154e-06
  9  15.849
  10  93.4525
  11  2.60892e-06
  12  0.412855
  13  6.8684e-06
  14  1.49495
  15  2.80978e-05
  16  1.9883
  17  23.1671
  18  4.32979e-05
  19  9.65334e-06
  20  0.218921
  21  3.61715e-05
  22  8.88105e-06
  23  26.1952
  24  0.284034
  25  0.128027
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.609e-06  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.340e-01  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.346e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290606/likelihoodResults_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.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) = 8895.14032866
delta logL = -0.00106369094647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8895.13926498
delta logL = -1.17543095257e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8129       1.0000          .0000       10.000    
     3 'Normalizat'    1.3463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   8895.139     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    407.26        .18142E-02** at limit **
   2  Index         2.9688        6.5319        .50000       -.58617E-07
   3  Normalizat    1.3463        .62382E-01    .35043E-03    .18946E-03
   4  Prefactor     .73398        .29608E-01    .21663E-03    .32514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.96882
  Normalizat = 1.34629
  Prefactor  = 0.733982
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.139     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9688        8.5122        .50000       -.41833    
   3  Normalizat    1.3463        .26830        .14017E-04   -.82195    
   4  Prefactor     .73398        .12742        .43326E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23256e-10
Minuit parameter uncertainties:
  1  1.47244e-05
  2  507.875
  3  0.268579
  4  0.127466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290606': 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) = 8895.13926491
delta logL = 6.71952875564e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.472e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.969e+00  5.079e+02  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.340e-01  1.275e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.346e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

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/290606/cmap_HighResolution_530668801_530928001_4FGL_J2225.6+2120_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='7.98e-08', time_completed='2021-09-28 11:11:47.269968', job_id='290606', GAL2='0.73', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632852707.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='6.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1124' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:11:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 290606: <4FGL_J2225.6+2120_daily_bin1124> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:12 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:55:14 2021
Terminated at Tue Sep 28 11:11:48 2021
Results reported at Tue Sep 28 11:11:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1124 336.414 21.3418 530668801 530928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

