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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1224
RA = 336.414, Dec = 21.3418
tmin = 556588801, tmax = 556848001
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='290837', job_status='RUN', time_executed='2021-09-28 10:59:16.893852', time_epoch_executed='1632851956.89' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290837/ft1_4FGL_J2225.6+2120_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290837/ft1_4FGL_J2225.6+2120_daily_bin1224.fits outfile=/scratch/kocevski/290837/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1224.fits ra=336.414 dec=21.3418 rad=12.0 tmin=556588801.0 tmax=556848001.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.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.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/290837/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/290837/ltcube_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.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/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits
.....................!
real 11.76
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/290837/ltcube_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits outfile=/scratch/kocevski/290837/expmap_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.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/290837/ltcube_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits
.....................!
real 191.73
user 186.73
sys 4.65

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/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits scfile=/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits outfile=/scratch/kocevski/290837/cmap_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits scfile=/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits outfile=/scratch/kocevski/290837/cmap_HighResolution_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.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.56
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits', '/scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits', expMap='/scratch/kocevski/290837/expmap_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits', expCube='/scratch/kocevski/290837/ltcube_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290837/Model_4FGL_J2225.6+2120_daily_bin1224.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/290837/ft1_filtered_4FGL_J2225.6+2120_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/290837/ft2_4FGL_J2225.6+2120_daily_bin1224.fits
Exposure map: /scratch/kocevski/290837/expmap_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits
Exposure cube: /scratch/kocevski/290837/ltcube_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290837/Model_4FGL_J2225.6+2120_daily_bin1224.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) = 7595.32124377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1416       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.808       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47343E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41633E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11546E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57397       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3686       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.612       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23839E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4243       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2769       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7595.317     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2485 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    45.583        .14579E-05** at limit **
   2  norm          6.8029        3.5563        .17701E-06   -.80293E-04
   3  Prefactor     .10000E-03    14.865       -.24473E-05** at limit **
   4  norm          1.1415        1.2229        .58634E-07   -.17768E-04
   5  Prefactor     61.843        6.2792        .30755E-06   -.12071E-01
   6  norm          1.0166        1.0112        .13353E-06   -.37550E-04
   7  Prefactor     .10000E-03    10.844        .48888E-06** at limit **
   8  norm          .10000E-03    1.6025        .32925E-06** at limit **
   9  Prefactor     .10033E-03    198.13       -.60499E-05** at limit **
  10  Prefactor     .20259E-03    1.8767       -.98181E-06** at limit **
  11  Prefactor     .10015E-03    41.846       -.38050E-05** at limit **
  12  Prefactor     .33295        .19964        .17426E-06    .20691E-03
  13  Prefactor     .10000E-03    6.0302       -.10697E-05** at limit **
  14  norm          6.7584        2.0259       -.10917E-06   -.21227E-03
  15  Prefactor     .10000E-03    11.150        .56938E-06** at limit **
  16  norm          .57419        1.3510        .62693E-06    .12767E-03
  17  Prefactor     15.420        1.1179        .33592E-07   -.16904E-03
  18  Prefactor     9.3608        6.5722       -.63094E-06   -.72629E-02
  19  Prefactor     27.611        1.0219        .91062E-08   -.33437E-04
  20  Prefactor     1.1414        .21430        .11189E-06    .42456E-03
  21  Prefactor     .10002E-03    6.8574       -.10132E-05** at limit **
  22  Prefactor     3.4232        1.0158        .52383E-09    .10465E-03
  23  Prefactor     17.351        1.4668       -.60846E-07    .69290E-03
  24  Normalizat    1.2770        .30138       -.70304E-05   -.10425E-03
  25  Prefactor     .87054        .14416        .45948E-06   -.15286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100158
  norm       = 6.80289
  Prefactor  = 0.0001
  norm       = 1.14146
  Prefactor  = 61.8431
  norm       = 1.01659
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100326
  Prefactor  = 0.000202594
  Prefactor  = 0.000100153
  Prefactor  = 0.332948
  Prefactor  = 0.0001
  norm       = 6.75838
  Prefactor  = 0.0001
  norm       = 0.57419
  Prefactor  = 15.4196
  Prefactor  = 9.36084
  Prefactor  = 27.6109
  Prefactor  = 1.14143
  Prefactor  = 0.000100017
  Prefactor  = 3.42316
  Prefactor  = 17.3511
  Normalizat = 1.27699
  Prefactor  = 0.870539
 **********
 **   18 **HESSE 
 **********

 FCN=   7595.317     FROM HESSE     STATUS=OK           493 CALLS     2978 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    59.798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8029        3.5646        .38452E-02   -1.5186    
   3  Prefactor     .10000E-03    14.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1415        1.2361        .10872E-01   -1.5494    
   5  Prefactor     61.843        68.915        .12760E-02   -1.4134    
   6  norm          1.0166        1.0368        .12899E-01   -1.5506    
   7  Prefactor     .10000E-03    10.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10033E-03    14.291        .10371       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20259E-03    899.06        .10623E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10015E-03    52.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33295        .21519        .64367E-02   -1.5593    
  13  Prefactor     .10000E-03    5.9741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7584        2.0287        .38587E-02   -1.5188    
  15  Prefactor     .10000E-03    11.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57419        1.5084        .34897E-01   -1.5556    
  17  Prefactor     15.420        19.022        .25497E-02   -1.4922    
  18  Prefactor     9.3608        10.911        .32733E-02   -1.5096    
  19  Prefactor     27.611        21.599        .19060E-02   -1.4657    
  20  Prefactor     1.1414        .22205        .37449E-02   -1.5494    
  21  Prefactor     .10002E-03    5.9270        .10032       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4232        11.586        .54649E-02   -1.5338    
  23  Prefactor     17.351        23.533        .24043E-02   -1.4875    
  24  Normalizat    1.2770        .25922        .81551E-01   -.84256    
  25  Prefactor     .87054        .12181        .44628E-01   -.97178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31803e-06
Minuit parameter uncertainties:
  1  0.00616198
  2  3.56475
  3  5.40079e-05
  4  1.23612
  5  69.0037
  6  1.03685
  7  9.55834e-05
  8  1.46584e-06
  9  0.00431524
  10  0.616904
  11  0.0057022
  12  0.215193
  13  7.23518e-06
  14  2.02869
  15  0.000113489
  16  1.50853
  17  19.0296
  18  10.9137
  19  21.6048
  20  0.222055
  21  0.000634678
  22  11.5936
  23  23.5451
  24  0.259479
  25  0.121853
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.002e-04  5.702e-03  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:  8.705e-01  1.219e-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.277e+00  2.595e-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: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290837/likelihoodResults_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7595.31686717
delta logL = -8.68613642524e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7595.31678076
delta logL = -4.45168552687e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7505       1.0000          .0000       10.000    
     3 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87055       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.

 FCN=   7595.317     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      249 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    60.195        .10289    ** at limit **
   2  Index         2.8666        5.3957        .50000       -.29618E-04
   3  Normalizat    1.2770        .15429E-01    .81551E-01    .85144E-04
   4  Prefactor     .87054        .75431E-02    .44629E-01    .44849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100311
  Index      = 2.86664
  Normalizat = 1.277
  Prefactor  = 0.870538
 **********
 **   18 **HESSE 
 **********

 FCN=   7595.317     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      286 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    7841.5        .54536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8666        6.7772        .50000       -.44081    
   3  Normalizat    1.2770        .66516E-01    .36103E-03   -.84256    
   4  Prefactor     .87054        .32118E-01    .20834E-03   -.97178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42826e-07
Minuit parameter uncertainties:
  1  0.0951782
  2  41.929
  3  0.0665208
  4  0.0321185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290837': 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): 102
logL (Free Index) = 7595.31677996
delta logL = 3.55148586095e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.003e-04  9.518e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.867e+00  4.193e+01  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:  8.705e-01  3.212e-02  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.277e+00  6.652e-02  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/290837/cmap_HighResolution_556588801_556848001_4FGL_J2225.6+2120_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-28 11:11:06.749502', job_id='290837', GAL2='0.87', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632852666.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1224' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:11:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 290837: <4FGL_J2225.6+2120_daily_bin1224> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1224> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:26 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55: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 10:55:27 2021
Terminated at Tue Sep 28 11:11:07 2021
Results reported at Tue Sep 28 11:11:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1224 336.414 21.3418 556588801 556848001 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 :                                   708.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

