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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1480
RA = 336.414, Dec = 21.3418
tmin = 622944001, tmax = 623203201
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='293742', job_status='RUN', time_executed='2021-09-28 11:03:21.581456', time_epoch_executed='1632852201.58' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293742/ft1_4FGL_J2225.6+2120_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293742/ft2_4FGL_J2225.6+2120_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293742/ft1_4FGL_J2225.6+2120_daily_bin1480.fits outfile=/scratch/kocevski/293742/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1480.fits ra=336.414 dec=21.3418 rad=12.0 tmin=622944001.0 tmax=623203201.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.01
user 2.80
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293742/ft1_filtered_4FGL_J2225.6+2120_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/293742/ft2_4FGL_J2225.6+2120_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/293742/ltcube_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.fits outfile=/scratch/kocevski/293742/expmap_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.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/293742/ltcube_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.fits
.....................!
real 191.12
user 185.67
sys 5.07

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/293742/ft1_filtered_4FGL_J2225.6+2120_daily_bin1480.fits scfile=/scratch/kocevski/293742/ft2_4FGL_J2225.6+2120_daily_bin1480.fits outfile=/scratch/kocevski/293742/cmap_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293742/ft1_filtered_4FGL_J2225.6+2120_daily_bin1480.fits scfile=/scratch/kocevski/293742/ft2_4FGL_J2225.6+2120_daily_bin1480.fits outfile=/scratch/kocevski/293742/cmap_HighResolution_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0095       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8713       1.0000         .10000E-03   10000.    
    14 'norm      '    .96457       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68403E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.707       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8858       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70426       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=   2589.880     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2887 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.50       -.73250E-06** at limit **
   2  norm          7.8097        5.6322        .22995E-06    .65274E-05
   3  Prefactor     .10000E-03    51.023        .52490E-06** at limit **
   4  norm          .10000E-03    .81226       -.28779E-07** at limit **
   5  Prefactor     .10000E-03    42.124       -.33528E-06** at limit **
   6  norm          .10000E-03    .54141       -.20822E-07** at limit **
   7  Prefactor     .10000E-03    35.925        .12976E-06** at limit **
   8  norm          .10000E-03    5.4521       -.51364E-07** at limit **
   9  Prefactor     .10000E-03    30.428       -.97361E-07** at limit **
  10  Prefactor     .10000E-03    112.71        .66073E-06** at limit **
  11  Prefactor     9.0107        23.472        .29892E-05    .17034E-04
  12  Prefactor     .97353        .63149       -.34703E-09   -.77063E-03
  13  Prefactor     8.8701        26.647        .13560E-06   -.98911E-05
  14  norm          .96357        2.4598        .31709E-06    .11016E-03
  15  Prefactor     .10000E-03    19.210       -.22780E-07** at limit **
  16  norm          .10000E-03    2.3802       -.13214E-06** at limit **
  17  Prefactor     .10000E-03    43.058        .90074E-07** at limit **
  18  Prefactor     27.470        40.497       -.87330E-06   -.13027E-03
  19  Prefactor     .10006E-03    831.99        .30847E-04** at limit **
  20  Prefactor     .10000E-03    .40935        .16914E-05** at limit **
  21  Prefactor     .10000E-03    18.768       -.63464E-07** at limit **
  22  Prefactor     50.861        93.421       -.51265E-05   -.11956E-03
  23  Prefactor     .10000E-03    59.179       -.29513E-06** at limit **
  24  Normalizat    1.8858        .47013       -.16051E-05   -.14804E-03
  25  Prefactor     .70432        .20343        .19320E-06   -.24281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 7.80966
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.01073
  Prefactor  = 0.973529
  Prefactor  = 8.87013
  norm       = 0.963565
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.47
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8609
  Prefactor  = 0.0001
  Normalizat = 1.88577
  Prefactor  = 0.704323
 **********
 **   18 **HESSE 
 **********

 FCN=   2589.880     FROM HESSE     STATUS=OK           417 CALLS     3304 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8097        5.6412        .94818E-04   -1.5149    
   3  Prefactor     .10000E-03    51.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .81944        .44754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .54468        .36553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.4659        .11605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    112.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0107        23.601        .66765E-03   -1.5108    
  12  Prefactor     .97353        .62841        .30661E-04   -1.5511    
  13  Prefactor     8.8701        26.722        .13457E-03   -1.5112    
  14  norm          .96357        2.2651        .12129E-02   -1.5512    
  15  Prefactor     .10000E-03    19.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3816        .76625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.470        40.526        .76444E-04   -1.4659    
  19  Prefactor     .10006E-03    838.80        .18737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .41965        .56931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.861        95.150        .28159E-03   -1.4280    
  23  Prefactor     .10000E-03    59.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8858        .58870        .31841E-03   -.67445    
  25  Prefactor     .70432        .25353        .21557E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09986e-10
Minuit parameter uncertainties:
  1  0.000743812
  2  5.64155
  3  0.00041605
  4  7.417e-07
  5  0.00018884
  6  8.91641e-08
  7  0.000121423
  8  3.60216e-06
  9  1.49167e-05
  10  0.00075917
  11  23.6255
  12  0.628416
  13  26.7578
  14  2.26527
  15  1.81663e-06
  16  1.24823e-06
  17  0.000146575
  18  40.567
  19  0.0147464
  20  9.6501e-06
  21  5.87479e-07
  22  95.4359
  23  0.000227415
  24  0.590959
  25  0.253949
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.011e+00  2.363e+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:  7.043e-01  2.539e-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.886e+00  5.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293742/likelihoodResults_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.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) = 2589.8762964
delta logL = 0.00337541601584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2589.8758887
delta logL = 0.00378311580107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6684       1.0000          .0000       10.000    
     3 'Normalizat'    1.8895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70282       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=   2589.876     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6976        25.732        .12868E-03   -.17582E-03
   2  Index         2.6684        1.5752        .12774E-01   -.51815E-04
   3  Normalizat    1.8885        .57388        .31822E-03   -.77839E-04
   4  Prefactor     .70326        .25286        .21571E-03   -.12375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.69763
  Index      = 2.66842
  Normalizat = 1.88848
  Prefactor  = 0.703262
 **********
 **   18 **HESSE 
 **********

 FCN=   2589.876     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6976        25.407        .51472E-05   -1.5085    
   2  Index         2.6684        1.5561        .51095E-03   -.48512    
   3  Normalizat    1.8885        .57477        .63645E-04   -.67376    
   4  Prefactor     .70326        .25319        .86285E-05   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53799e-10
Minuit parameter uncertainties:
  1  25.4349
  2  1.59017
  3  0.576866
  4  0.253609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293742': 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) = 2589.87588701
delta logL = 0.00378480193876

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.698e+00  2.543e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.668e+00  1.590e+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.033e-01  2.536e-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.888e+00  5.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/293742/cmap_HighResolution_622944001_623203201_4FGL_J2225.6+2120_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', job_status='DONE', photon_flux_upper_limit='3.03e-07', time_completed='2021-09-28 11:11:03.065959', job_id='293742', GAL2='0.70', fit_tolerance='1e-08', EG2='1.89', EG='1.89', time_epoch_completed='1632852663.07', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.78e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1480' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 293742: <4FGL_J2225.6+2120_daily_bin1480> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1480> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:42 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:00:43 2021
Terminated at Tue Sep 28 11:11:03 2021
Results reported at Tue Sep 28 11:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1480 336.414 21.3418 622944001 623203201 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 :                                   460.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

