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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1605
RA = 336.414, Dec = 21.3418
tmin = 655344001, tmax = 655603201
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='484839', job_status='RUN', time_executed='2021-12-08 08:37:46.706042', time_epoch_executed='1638981466.71' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484839/ft1_4FGL_J2225.6+2120_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484839/ft1_4FGL_J2225.6+2120_daily_bin1605.fits outfile=/scratch/kocevski/484839/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1605.fits ra=336.414 dec=21.3418 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.74
user 2.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/484839/ltcube_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.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/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits
.....................!
real 15.09
user 14.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/484839/ltcube_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.fits outfile=/scratch/kocevski/484839/expmap_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.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/484839/ltcube_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.fits
.....................!
real 191.97
user 186.99
sys 4.13

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/484839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1605.fits scfile=/scratch/kocevski/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits outfile=/scratch/kocevski/484839/cmap_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1605.fits scfile=/scratch/kocevski/484839/ft2_4FGL_J2225.6+2120_daily_bin1605.fits outfile=/scratch/kocevski/484839/cmap_HighResolution_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21547E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .32526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56988E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    211.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2999       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75440       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=   2467.589     FROM MIGRAD    STATUS=CONVERGED   1018 CALLS     3749 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.112        .18142E-02** at limit **
   2  norm          2.9331        3.3609        .92513E-04    .68326E-03
   3  Prefactor     .10000E-03    10.642        .15828E-02** at limit **
   4  norm          1.4445        1.7106        .68374E-04    .28200E-03
   5  Prefactor     .10000E-03    308.50        .18142E-02** at limit **
   6  norm          .32436        .91709        .85994E-03   -.59373E-03
   7  Prefactor     .10000E-03    30.183        .18142E-02** at limit **
   8  norm          20.614        16.047        .88220E-04    .10406E-03
   9  Prefactor     .10000E-03    14.376        .18142E-02** at limit **
  10  Prefactor     .10000E-03    95.016        .18142E-02** at limit **
  11  Prefactor     .10000E-03    36.385        .18142E-02** at limit **
  12  Prefactor     .69899        .58512        .31360E-04   -.68934E-03
  13  Prefactor     .10004E-03    57.653        .96238E-01** at limit **
  14  norm          3.5395        2.8861        .73729E-04   -.77098E-05
  15  Prefactor     .10000E-03    37.239        .18142E-02** at limit **
  16  norm          .10000E-03    2.9590        .83252E-03** at limit **
  17  Prefactor     211.20        148.55        .13911E-03    .14072E-03
  18  Prefactor     .10007E-03    155.52        .18142E-02** at limit **
  19  Prefactor     .10000E-03    97.472        .18142E-02** at limit **
  20  Prefactor     1.6022        .72130        .26349E-04    .37909E-02
  21  Prefactor     .10000E-03    20.753        .18142E-02** at limit **
  22  Prefactor     .10001E-03    43.616        .18142E-02** at limit **
  23  Prefactor     .10001E-03    74.872        .18142E-02** at limit **
  24  Normalizat    1.3003        .51596        .34151E-03    .33747E-03
  25  Prefactor     .75421        .23450        .19868E-03    .79255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.93308
  Prefactor  = 0.0001
  norm       = 1.44448
  Prefactor  = 0.000100004
  norm       = 0.324356
  Prefactor  = 0.000100001
  norm       = 20.6143
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.698985
  Prefactor  = 0.000100045
  norm       = 3.53947
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 211.196
  Prefactor  = 0.000100072
  Prefactor  = 0.000100004
  Prefactor  = 1.60215
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100006
  Normalizat = 1.30032
  Prefactor  = 0.754209
 **********
 **   18 **HESSE 
 **********

 FCN=   2467.589     FROM HESSE     STATUS=OK           413 CALLS     4162 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9331        3.3608        .37005E-05   -1.5365    
   3  Prefactor     .10000E-03    10.642        .31656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4445        1.7106        .27350E-05   -1.5468    
   5  Prefactor     .10000E-03    308.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .32436        .91634        .34397E-04   -1.5594    
   7  Prefactor     .10000E-03    30.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.614        16.045        .35288E-05   -1.4800    
   9  Prefactor     .10000E-03    14.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    95.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .69899        .58492        .12544E-05   -1.5541    
  13  Prefactor     .10004E-03    54.484        .10017       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5395        2.8861        .29492E-05   -1.5332    
  15  Prefactor     .10000E-03    37.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9591        .16650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     211.20        148.55        .27821E-04   -1.2791    
  18  Prefactor     .10007E-03    155.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    97.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6022        .72131        .52699E-05   -1.5455    
  21  Prefactor     .10000E-03    20.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    43.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    74.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3003        .51643        .68302E-04   -.83557    
  25  Prefactor     .75421        .23475        .39737E-04   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06001e-09
Minuit parameter uncertainties:
  1  0.000328517
  2  3.36106
  3  4.76293e-06
  4  1.71068
  5  0.00226724
  6  0.916381
  7  0.000301781
  8  16.0487
  9  6.79587e-05
  10  0.000663622
  11  0.000624776
  12  0.58493
  13  0.00312475
  14  2.88619
  15  0.000382421
  16  7.90558e-05
  17  148.817
  18  0.00671212
  19  0.00125295
  20  0.721313
  21  0.000136326
  22  0.00131881
  23  0.00129965
  24  0.518495
  25  0.235055
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  6.248e-04  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.542e-01  2.351e-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.300e+00  5.185e-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: 3.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484839/likelihoodResults_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.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) = 2467.58898229
delta logL = -0.000130888622607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2467.58885242
delta logL = -1.01624118543e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0590       1.0000          .0000       10.000    
     3 'Normalizat'    1.3004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75420       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=   2467.540     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      344 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31331E-01    .84016E-01    .55519E-02    .29947E-02
   2  Index         7.8489        1.4216        .32951        .16442E-04
   3  Normalizat    1.2140        .51284        .34151E-02   -.17852E-03
   4  Prefactor     .78196        .23413        .19868E-03   -.40485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.031331
  Index      = 7.8489
  Normalizat = 1.214
  Prefactor  = 0.781963
 **********
 **   18 **HESSE 
 **********

 FCN=   2467.540     FROM HESSE     STATUS=OK            31 CALLS      375 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31331E-01    .14349        .22926E-03   -1.5743    
   2  Index         7.8489        2.6835        .16884E-01    2.5354    
   3  Normalizat    1.2140        .57618        .13660E-03   -.86171    
   4  Prefactor     .78196        .24974        .39737E-04   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0405e-09
Minuit parameter uncertainties:
  1  0.133888
  2  2.92412
  3  0.579242
  4  0.250105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484839': 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) = 2467.53981849
delta logL = 0.0490329056279

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.133e-02  1.339e-01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  7.849e+00  2.924e+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:  7.820e-01  2.501e-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.214e+00  5.792e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/484839/cmap_HighResolution_655344001_655603201_4FGL_J2225.6+2120_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-02', job_status='DONE', photon_flux_upper_limit='3.22e-07', time_completed='2021-12-08 08:45:46.628870', job_id='484839', GAL2='0.78', fit_tolerance='1e-08', EG2='1.21', EG='1.30', time_epoch_completed='1638981946.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.90e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1605' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:45:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 484839: <4FGL_J2225.6+2120_daily_bin1605> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1605> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:35:13 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:35:27 2021
Terminated at Wed Dec  8 08:45:47 2021
Results reported at Wed Dec  8 08:45:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1605 336.414 21.3418 655344001 655603201 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 :                                   478.56 sec.
    Max Memory :                                 1131 MB
    Average Memory :                             279.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            634 sec.

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

