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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin732
RA = 336.414, Dec = 21.3418
tmin = 429062401, tmax = 429321601
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='287687', job_status='RUN', time_executed='2021-09-28 10:46:03.191007', time_epoch_executed='1632851163.19' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287687/ft1_4FGL_J2225.6+2120_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287687/ft1_4FGL_J2225.6+2120_daily_bin732.fits outfile=/scratch/kocevski/287687/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin732.fits ra=336.414 dec=21.3418 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.33
user 6.05
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.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/287687/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/287687/ft1_filtered_4FGL_J2225.6+2120_daily_bin732.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/287687/ft1_filtered_4FGL_J2225.6+2120_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/287687/ltcube_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.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/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits
.....................!
real 13.34
user 13.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287687/ft1_filtered_4FGL_J2225.6+2120_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/287687/ltcube_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.fits outfile=/scratch/kocevski/287687/expmap_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.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/287687/ltcube_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.fits
.....................!
real 192.46
user 186.15
sys 5.40

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/287687/ft1_filtered_4FGL_J2225.6+2120_daily_bin732.fits scfile=/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits outfile=/scratch/kocevski/287687/cmap_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287687/ft1_filtered_4FGL_J2225.6+2120_daily_bin732.fits scfile=/scratch/kocevski/287687/ft2_4FGL_J2225.6+2120_daily_bin732.fits outfile=/scratch/kocevski/287687/cmap_HighResolution_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    32.752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9669       1.0000         .10000E-03   10000.    
     8 'norm      '    .64569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.009       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3609       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10012E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1643       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=   5118.912     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2958 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    299.33       -.10959E-03** at limit **
   2  norm          32.751        8.7613       -.61738E-06    .64889E-04
   3  Prefactor     .10000E-03    39.288        .12882E-05** at limit **
   4  norm          .10000E-03    .95669       -.35993E-07** at limit **
   5  Prefactor     .10000E-03    107.15       -.64005E-04** at limit **
   6  norm          1.1930        2.2884       -.40761E-06   -.89182E-03
   7  Prefactor     4.9674        65.973       -.36699E-05   -.62940E-04
   8  norm          .64505        10.091        .29008E-06   -.36221E-03
   9  Prefactor     .10000E-03    9.5487        .50494E-07** at limit **
  10  Prefactor     .10000E-03    136.84        .12015E-03** at limit **
  11  Prefactor     21.010        29.306        .79948E-07   -.80230E-04
  12  Prefactor     .59041        .34319        .53118E-07   -.26727E-03
  13  Prefactor     .10000E-03    6.5204        .64887E-07** at limit **
  14  norm          3.4879        1.8376       -.11882E-06   -.37121E-03
  15  Prefactor     .10000E-03    8.1361        .72500E-07** at limit **
  16  norm          .10000E-03    1.3957        .40916E-07** at limit **
  17  Prefactor     20.040        137.71       -.15460E-03    .16622E-04
  18  Prefactor     53.981        28.105       -.59826E-06   -.50099E-04
  19  Prefactor     .10000E-03    13.581       -.62942E-08** at limit **
  20  Prefactor     9.3609        .80554        .60846E-06   -.66486E-02
  21  Prefactor     16.072        15.191       -.16077E-06   -.39030E-04
  22  Prefactor     11.349        28.086       -.46196E-05    .65986E-05
  23  Prefactor     .10000E-03    21.124       -.75993E-07** at limit **
  24  Normalizat    .10000E-01    .51010        .40219E-05** at limit **
  25  Prefactor     1.1644        .16268        .19978E-05   -.33551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 32.7513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19296
  Prefactor  = 4.96735
  norm       = 0.645049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.01
  Prefactor  = 0.590406
  Prefactor  = 0.0001
  norm       = 3.48795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0396
  Prefactor  = 53.981
  Prefactor  = 0.0001
  Prefactor  = 9.36093
  Prefactor  = 16.0725
  Prefactor  = 11.3494
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.16435
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.912     FROM HESSE     STATUS=OK           429 CALLS     3387 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    299.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          32.751        8.7493        .70017E-04   -1.4563    
   3  Prefactor     .10000E-03    39.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .96594        .68306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1930        2.2325        .13549E-03   -1.5490    
   7  Prefactor     4.9674        65.377        .18045E-03   -1.5262    
   8  norm          .64505        34.525        .40896E-02   -1.5547    
   9  Prefactor     .10000E-03    9.5562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    137.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.010        29.072        .87386E-04   -1.4791    
  12  Prefactor     .59041        .33842        .30487E-04   -1.5554    
  13  Prefactor     .10000E-03    6.5219        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4879        1.8375        .67771E-04   -1.5334    
  15  Prefactor     .10000E-03    8.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4019        .82470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.040        138.71        .89280E-04   -1.4812    
  18  Prefactor     53.981        28.085        .54593E-04   -1.4237    
  19  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3609        .81266        .16080E-04   -1.5096    
  21  Prefactor     16.072        15.191        .99904E-04   -1.4906    
  22  Prefactor     11.349        28.167        .11892E-03   -1.5034    
  23  Prefactor     .10000E-03    21.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .83013        .27464       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1644        .18322        .21099E-03   -.87435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31944e-09
Minuit parameter uncertainties:
  1  8.39171e-05
  2  8.74962
  3  3.63801e-05
  4  4.12609e-06
  5  1.86803e-05
  6  2.23269
  7  36.0896
  8  9.44333
  9  1.15408e-06
  10  0.000109153
  11  29.0919
  12  0.33842
  13  3.53763e-07
  14  1.83751
  15  3.02132e-06
  16  1.72633e-06
  17  105.798
  18  28.0918
  19  2.88009e-05
  20  0.812658
  21  15.1947
  22  28.2002
  23  2.58157e-05
  24  2.01161e-05
  25  0.183319
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.101e+01  2.909e+01  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:  1.164e+00  1.833e-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.000e-02  2.012e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 3.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287687/likelihoodResults_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.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) = 5118.62961702
delta logL = 0.282091227163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5118.62323069
delta logL = 0.288477559944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.304       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8118       1.0000          .0000       10.000    
     3 'Normalizat'    .10098E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1696       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5118.617     FROM MIGRAD    STATUS=FAILED       153 CALLS      341 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.199        36.497        .91160E-04    .86799E-04
   2  Index         1.7819        1.0439        .94685E-02   -.24320E-04
   3  Normalizat    .60642E-01    1.4872        .13984E-01    .33556E-03
   4  Prefactor     1.1485        .26843        .21223E-03    .56620E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5118.617     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      421 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.199        36.497        .37032E-03   -1.4855    
   2  Index         1.7819        1.0439        .10560E-02   -.69922    
   3  Normalizat    .60642E-01    1.4872        .23672E-02   -1.4283    
   4  Prefactor     1.1485        .26843        .28827E-03   -.87930    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5118.617     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      452 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.198        41.358        .36464E-05    .21201E-04
   2  Index         1.7819        1.1813        .37874E-03    .48028E-06
   3  Normalizat    .60645E-01    1.0514        .27969E-02    .24186E-05
   4  Prefactor     1.1485        .22319        .84893E-05   -.64280E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1984
  Index      = 1.7819
  Normalizat = 0.0606452
  Prefactor  = 1.14853
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.617     FROM HESSE     STATUS=OK            25 CALLS      477 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.198        41.149        .72928E-06   -1.4855    
   2  Index         1.7819        1.1790        .15150E-04   -.69922    
   3  Normalizat    .60645E-01    .97641        .11187E-03   -1.4283    
   4  Prefactor     1.1485        .21507        .16979E-05   -.87930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60653e-12
Minuit parameter uncertainties:
  1  41.2132
  2  1.19845
  3  0.453571
  4  0.215231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287687': 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) = 5118.6170148
delta logL = 0.294693452553

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.820e+01  4.121e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.782e+00  1.198e+00  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:  1.149e+00  2.152e-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:  6.065e-02  4.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 336.414 21.342
Photon Index (Free Index): 1.78 +/- 1.20
Photon Flux (Free Index): 3.55e-08 +/- 9.09e-08
Energy Flux (Free Index): 4.49e-05 +/- 8.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/287687/cmap_HighResolution_429062401_429321601_4FGL_J2225.6+2120_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-02', comment='SUCCESS', energy_flux2='4.49e-05', dlogl='2.95e-01', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-28 10:57:05.246167', photon_index_error2='1.20', photon_index2='1.78', ts='0.76', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='3.34e-07', energy_flux_error2='8.13e-05', EG='0.01', time_epoch_completed='1632851825.25', return_code='0', job_id='287687', GAL2='1.15', EG2='0.06', return_code2='0', photon_flux_error2='9.09e-08', ts2='1.29', photon_index='2.81' WHERE bin_id='732' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 287687: <4FGL_J2225.6+2120_daily_bin732> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin732> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:45 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:46 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:45:46 2021
Terminated at Tue Sep 28 10:57:05 2021
Results reported at Tue Sep 28 10:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin732 336.414 21.3418 429062401 429321601 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

