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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin557
RA = 336.414, Dec = 21.3418
tmin = 383702401, tmax = 383961601
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='287418', job_status='RUN', time_executed='2021-09-28 10:45:39.796312', time_epoch_executed='1632851139.8' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287418/ft1_4FGL_J2225.6+2120_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287418/ft1_4FGL_J2225.6+2120_daily_bin557.fits outfile=/scratch/kocevski/287418/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin557.fits ra=336.414 dec=21.3418 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.46
user 4.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287418/ft1_filtered_4FGL_J2225.6+2120_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/287418/ltcube_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.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/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits
.....................!
real 12.15
user 11.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287418/ft1_filtered_4FGL_J2225.6+2120_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/287418/ltcube_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.fits outfile=/scratch/kocevski/287418/expmap_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.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/287418/ltcube_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.fits
.....................!
real 189.84
user 185.45
sys 3.93

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/287418/ft1_filtered_4FGL_J2225.6+2120_daily_bin557.fits scfile=/scratch/kocevski/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits outfile=/scratch/kocevski/287418/cmap_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287418/ft1_filtered_4FGL_J2225.6+2120_daily_bin557.fits scfile=/scratch/kocevski/287418/ft2_4FGL_J2225.6+2120_daily_bin557.fits outfile=/scratch/kocevski/287418/cmap_HighResolution_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51033E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8880       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.7244       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.982       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6973       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7918       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76342       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1192       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=   9569.507     FROM MIGRAD    STATUS=CONVERGED   1021 CALLS     2967 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.041        .18142E-02** at limit **
   2  norm          2.5410        2.1196        .12219E-03    .45851E-03
   3  Prefactor     .10002E-03    27.926        .12573    ** at limit **
   4  norm          2.3016        1.2104        .75631E-04    .58022E-04
   5  Prefactor     .10000E-03    61.863        .18142E-02** at limit **
   6  norm          .10000E-03    .53136        .10978E-02** at limit **
   7  Prefactor     .10000E-03    5.7434        .18142E-02** at limit **
   8  norm          .10000E-03    4.9882        .36285E-03** at limit **
   9  Prefactor     14.543        15.125        .10500E-03    .61500E-04
  10  Prefactor     .10000E-03    18.919        .18142E-02** at limit **
  11  Prefactor     8.8904        10.875        .67222E-03    .45953E-03
  12  Prefactor     1.0063        .26994        .24425E-04    .10035E-02
  13  Prefactor     .10000E-03    3.3279        .17418E-02** at limit **
  14  norm          7.7243        1.7230        .57971E-04    .24710E-04
  15  Prefactor     .10000E-03    18.264        .18142E-02** at limit **
  16  norm          .65092        1.0412        .16034E-02    .41121E-02
  17  Prefactor     .10000E-03    55.320        .18142E-02** at limit **
  18  Prefactor     11.985        11.610        .11573E-03    .18645E-03
  19  Prefactor     6.6981        43.495        .15505E-03    .35194E-05
  20  Prefactor     1.3826        .27219        .18868E-04    .88089E-03
  21  Prefactor     .10000E-03    16.236        .18142E-02** at limit **
  22  Prefactor     .10000E-03    9.7300        .18142E-02** at limit **
  23  Prefactor     4.7934        32.603        .18379E-03    .27835E-04
  24  Normalizat    .76338        .27455        .45637E-03    .37915E-03
  25  Prefactor     1.1193        .12894        .18961E-03    .71894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 2.54098
  Prefactor  = 0.000100025
  norm       = 2.30156
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5431
  Prefactor  = 0.0001
  Prefactor  = 8.89044
  Prefactor  = 1.00626
  Prefactor  = 0.0001
  norm       = 7.72434
  Prefactor  = 0.0001
  norm       = 0.650917
  Prefactor  = 0.0001
  Prefactor  = 11.9847
  Prefactor  = 6.6981
  Prefactor  = 1.38259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79335
  Normalizat = 0.76338
  Prefactor  = 1.11925
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.507     FROM HESSE     STATUS=OK           413 CALLS     3380 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5410        2.1191        .48876E-05   -1.5389    
   3  Prefactor     .10002E-03    26.871        .12892       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3016        1.2104        .30253E-05   -1.5405    
   5  Prefactor     .10000E-03    61.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .53187        .21957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.543        15.126        .41999E-05   -1.4945    
  10  Prefactor     .10000E-03    18.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8904        10.873        .26889E-04   -1.5112    
  12  Prefactor     1.0063        .26994        .97701E-06   -1.5507    
  13  Prefactor     .10000E-03    3.3280        .34836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.7243        1.7230        .23188E-05   -1.5152    
  15  Prefactor     .10000E-03    18.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65092        1.0398        .32068E-03   -1.5547    
  17  Prefactor     .10000E-03    55.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.985        11.606        .46292E-05   -1.5015    
  19  Prefactor     6.6981        43.483        .62021E-05   -1.5190    
  20  Prefactor     1.3826        .27216        .75474E-06   -1.5473    
  21  Prefactor     .10000E-03    16.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.7320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7934        32.622        .73516E-05   -1.5270    
  24  Normalizat    .76338        .27464        .18255E-04   -1.0144    
  25  Prefactor     1.1193        .12901        .37922E-04   -.88854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7779e-09
Minuit parameter uncertainties:
  1  0.000811916
  2  2.1192
  3  0.00162988
  4  1.2104
  5  0.000838356
  6  3.48539e-05
  7  1.72964e-05
  8  4.45469e-05
  9  15.1296
  10  0.000134345
  11  10.8749
  12  0.269937
  13  8.79169e-07
  14  1.72297
  15  2.69071e-05
  16  1.03983
  17  2.68333e-05
  18  11.6077
  19  34.1685
  20  0.272156
  21  4.36609e-05
  22  6.61779e-06
  23  25.0289
  24  0.275138
  25  0.129042
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.890e+00  1.087e+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.119e+00  1.290e-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:  7.634e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 8.10e-06 +/- 9.90e-06

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

Saving results to:
/scratch/kocevski/287418/likelihoodResults_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.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) = 9569.0392273
delta logL = 0.467454112551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9569.02908604
delta logL = 0.477595375032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.469       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9812       1.0000          .0000       10.000    
     3 'Normalizat'    .78705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1101       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=   9569.029     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.469        10.608        .30958E-02   -.31548E-02
   2  Index         1.9812        .47211        .25898       -.93698E-04
   3  Normalizat    .78706        .22951        .10149        .66627E-04
   4  Prefactor     1.1101        .11377        .37216E-01    .52072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4691
  Index      = 1.98118
  Normalizat = 0.787063
  Prefactor  = 1.11009
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.029     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.469        11.678        .12383E-03   -1.5061    
   2  Index         1.9812        .69312        .10999E-01   -.64821    
   3  Normalizat    .78706        .25685        .44980E-03   -1.0055    
   4  Prefactor     1.1101        .12746        .19020E-03   -.89145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36223e-08
Minuit parameter uncertainties:
  1  11.6805
  2  0.696661
  3  0.257244
  4  0.127495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287418': 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) = 9569.02908604
delta logL = 0.477595377582

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.047e+01  1.168e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.981e+00  6.967e-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:  1.110e+00  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:  7.871e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 336.414 21.342
Photon Index (Free Index): 1.98 +/- 0.70
Photon Flux (Free Index): 2.22e-08 +/- 2.94e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.11e-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/287418/cmap_HighResolution_383702401_383961601_4FGL_J2225.6+2120_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='1.61e-05', photon_flux_error='4.45e-08', dlogl='4.78e-01', energy_flux='8.10e-06', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-28 11:00:04.948900', photon_index_error2='0.70', photon_index2='1.98', ts='1.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='2.11e-05', EG='0.76', time_epoch_completed='1632852004.95', return_code='0', job_id='287418', GAL2='1.11', EG2='0.79', return_code2='0', energy_flux_error='9.90e-06', photon_flux_error2='2.94e-08', ts2='1.94', photon_index='2.81' WHERE bin_id='557' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:00:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 287418: <4FGL_J2225.6+2120_daily_bin557> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin557 336.414 21.3418 383702401 383961601 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 :                                   864.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

