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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1109
RA = 336.414, Dec = 21.3418
tmin = 526780801, tmax = 527040001
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='289442', job_status='RUN', time_executed='2021-09-28 10:51:21.841145', time_epoch_executed='1632851481.84' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289442/ft1_4FGL_J2225.6+2120_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289442/ft2_4FGL_J2225.6+2120_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289442/ft1_4FGL_J2225.6+2120_daily_bin1109.fits outfile=/scratch/kocevski/289442/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1109.fits ra=336.414 dec=21.3418 rad=12.0 tmin=526780801.0 tmax=527040001.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.32
user 4.10
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289442/ft1_filtered_4FGL_J2225.6+2120_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/289442/ft2_4FGL_J2225.6+2120_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/289442/ltcube_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.fits outfile=/scratch/kocevski/289442/expmap_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.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/289442/ltcube_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.fits
.....................!
real 190.03
user 185.14
sys 4.50

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/289442/ft1_filtered_4FGL_J2225.6+2120_daily_bin1109.fits scfile=/scratch/kocevski/289442/ft2_4FGL_J2225.6+2120_daily_bin1109.fits outfile=/scratch/kocevski/289442/cmap_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.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/289442/ft1_filtered_4FGL_J2225.6+2120_daily_bin1109.fits scfile=/scratch/kocevski/289442/ft2_4FGL_J2225.6+2120_daily_bin1109.fits outfile=/scratch/kocevski/289442/cmap_HighResolution_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.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.66
user 0.41
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    122.07       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6704       1.0000         .10000E-03   10000.    
     4 'norm      '    .70151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .83295E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.413       1.0000         .10000E-03   10000.    
     8 'norm      '    .77096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47429       1.0000         .10000E-03   10000.    
    10 'Prefactor '    116.76       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4313       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3164       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83601       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=   9406.777     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3731 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     122.07        106.10       -.68804E-07   -.69405E-05
   2  norm          2.3412        2.3022        .18116E-06   -.26799E-04
   3  Prefactor     3.6661        36.736       -.53861E-06   -.28435E-04
   4  norm          .70108        1.0613        .38099E-06    .65014E-03
   5  Prefactor     .10000E-03    11.744        .47396E-07** at limit **
   6  norm          .86228E-01    .40177       -.11486E-06    .20196E-03
   7  Prefactor     22.413        14.166        .75206E-08   -.22304E-04
   8  norm          .77146        4.0077        .23288E-05   -.24588E-03
   9  Prefactor     .40396        8.2032        .74968E-07   -.51540E-06
  10  Prefactor     116.69        115.15       -.79611E-05   -.27268E-03
  11  Prefactor     5.4001        10.571        .47348E-05   -.34342E-03
  12  Prefactor     3.3803        .40400       -.16344E-07    .13636E-03
  13  Prefactor     .10000E-03    3.2935        .40266E-07** at limit **
  14  norm          7.4878        1.8221        .85482E-07    .65697E-05
  15  Prefactor     7.4309        16.588        .17519E-06   -.97863E-05
  16  norm          .10000E-03    .54249        .65482E-07** at limit **
  17  Prefactor     .10000E-03    25.464        .11544E-05** at limit **
  18  Prefactor     .10000E-03    7.8361        .22724E-06** at limit **
  19  Prefactor     .10000E-03    6.5209        .11190E-06** at limit **
  20  Prefactor     1.1535        .22102       -.98882E-09   -.15855E-03
  21  Prefactor     .10000E-03    15.228        .53940E-06** at limit **
  22  Prefactor     11.146        15.208        .18101E-06   -.14887E-04
  23  Prefactor     .10000E-03    22.844       -.36336E-06** at limit **
  24  Normalizat    1.3165        .23810        .62549E-07   -.77073E-04
  25  Prefactor     .83595        .11086       -.83417E-06    .12823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 122.073
  norm       = 2.34116
  Prefactor  = 3.66612
  norm       = 0.701082
  Prefactor  = 0.0001
  norm       = 0.0862278
  Prefactor  = 22.4133
  norm       = 0.771465
  Prefactor  = 0.403964
  Prefactor  = 116.686
  Prefactor  = 5.40007
  Prefactor  = 3.38027
  Prefactor  = 0.0001
  norm       = 7.48776
  Prefactor  = 7.43089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15351
  Prefactor  = 0.0001
  Prefactor  = 11.1461
  Prefactor  = 0.0001
  Normalizat = 1.31652
  Prefactor  = 0.835952
 **********
 **   18 **HESSE 
 **********

 FCN=   9406.777     FROM HESSE     STATUS=OK           435 CALLS     4166 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     122.07        106.04        .36427E-04   -1.3494    
   2  norm          2.3412        2.2757        .13399E-03   -1.5402    
   3  Prefactor     3.6661        36.140        .21083E-03   -1.5325    
   4  norm          .70108        .93729        .11967E-02   -1.5541    
   5  Prefactor     .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .86228E-01    1.7944        .11557E-02   -1.5649    
   7  Prefactor     22.413        14.188        .84606E-04   -1.4761    
   8  norm          .77146        3.9611        .37379E-03   -1.5532    
   9  Prefactor     .40396        71.910        .52175E-02   -1.5581    
  10  Prefactor     116.69        122.73        .18618E-03   -1.3543    
  11  Prefactor     5.4001        10.720        .86454E-03   -1.5243    
  12  Prefactor     3.3803        .40426        .19972E-04   -1.5340    
  13  Prefactor     .10000E-03    3.2950        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4878        1.8266        .60251E-04   -1.5161    
  15  Prefactor     7.4309        16.581        .14712E-03   -1.5163    
  16  norm          .10000E-03    .54644        .69754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1535        .22193        .18707E-04   -1.5493    
  21  Prefactor     .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.146        15.233        .12000E-03   -1.5040    
  23  Prefactor     .10000E-03    22.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3165        .28467        .36178E-03   -.83075    
  25  Prefactor     .83595        .13232        .21504E-03   -.98416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47079e-08
Minuit parameter uncertainties:
  1  106.204
  2  2.27576
  3  23.0389
  4  0.937314
  5  5.17454e-06
  6  0.786279
  7  14.1899
  8  3.49632
  9  10.7913
  10  122.995
  11  10.7236
  12  0.404263
  13  2.8231e-06
  14  1.82666
  15  16.591
  16  9.75359e-07
  17  0.000201272
  18  5.64192e-06
  19  1.00408e-05
  20  0.221934
  21  3.08527e-05
  22  15.2381
  23  0.000117211
  24  0.28501
  25  0.13237
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  5.400e+00  1.072e+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:  8.360e-01  1.324e-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.317e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289442/likelihoodResults_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.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) = 9406.48798557
delta logL = 0.288789059419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9406.47989824
delta logL = 0.296876392038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3355       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7755       1.0000          .0000       10.000    
     3 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82639       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=   9406.480     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3405        8.4084        .39867E-02    .21461E-03
   2  Index         1.7761        .48439        .27266       -.14309E-03
   3  Normalizat    1.3393        .22389        .81109E-01    .14240E-03
   4  Prefactor     .82636        .10929        .44060E-01   -.55098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34046
  Index      = 1.7761
  Normalizat = 1.33927
  Prefactor  = 0.826361
 **********
 **   18 **HESSE 
 **********

 FCN=   9406.480     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3405        9.8984        .15947E-03   -1.5204    
   2  Index         1.7761        .83414        .12004E-01   -.70074    
   3  Normalizat    1.3393        .26664        .35904E-03   -.82402    
   4  Prefactor     .82636        .13016        .21606E-03   -.98764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10494e-10
Minuit parameter uncertainties:
  1  9.901
  2  0.840907
  3  0.266912
  4  0.130211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289442': 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) = 9406.47989792
delta logL = 0.29687670822

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.340e+00  9.901e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.776e+00  8.409e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.264e-01  1.302e-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.339e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 336.414 21.342

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/289442/cmap_HighResolution_526780801_527040001_4FGL_J2225.6+2120_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-28 11:07:25.995665', job_id='289442', GAL2='0.83', fit_tolerance='1e-08', EG2='1.34', EG='1.32', time_epoch_completed='1632852446.0', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.97e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1109' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 289442: <4FGL_J2225.6+2120_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1109 336.414 21.3418 526780801 527040001 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 :                                   961.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

