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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin653
RA = 336.414, Dec = 21.3418
tmin = 408585601, tmax = 408844801
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='287567', job_status='RUN', time_executed='2021-09-28 10:45:46.465658', time_epoch_executed='1632851146.47' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287567/ft1_4FGL_J2225.6+2120_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287567/ft1_4FGL_J2225.6+2120_daily_bin653.fits outfile=/scratch/kocevski/287567/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin653.fits ra=336.414 dec=21.3418 rad=12.0 tmin=408585601.0 tmax=408844801.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.27
user 4.08
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287567/ft1_filtered_4FGL_J2225.6+2120_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/287567/ltcube_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.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/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits
.....................!
real 11.78
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287567/ft1_filtered_4FGL_J2225.6+2120_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/287567/ltcube_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.fits outfile=/scratch/kocevski/287567/expmap_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.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/287567/ltcube_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.fits
.....................!
real 192.10
user 187.06
sys 4.72

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/287567/ft1_filtered_4FGL_J2225.6+2120_daily_bin653.fits scfile=/scratch/kocevski/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits outfile=/scratch/kocevski/287567/cmap_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287567/ft1_filtered_4FGL_J2225.6+2120_daily_bin653.fits scfile=/scratch/kocevski/287567/ft2_4FGL_J2225.6+2120_daily_bin653.fits outfile=/scratch/kocevski/287567/cmap_HighResolution_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    180.73       1.0000         .10000E-03   10000.    
     2 'norm      '    13.474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    146.80       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16946E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0902       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.202       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75298       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74690       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=   1665.361     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2861 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     180.71        288.39       -.19489E-04   -.13639E-04
   2  norm          13.472        7.1317       -.79953E-07   -.24480E-03
   3  Prefactor     .10000E-03    67.071        .44591E-04** at limit **
   4  norm          4.7429        4.2042       -.43353E-06    .17235E-04
   5  Prefactor     146.76        128.71       -.30144E-04   -.32068E-05
   6  norm          3.0457        2.4212        .80738E-07   -.25718E-04
   7  Prefactor     .10000E-03    24.243       -.21714E-05** at limit **
   8  norm          .10000E-03    5.9793        .55569E-07** at limit **
   9  Prefactor     19.502        49.543       -.16037E-04    .89054E-05
  10  Prefactor     .10000E-03    404.53       -.43659E-04** at limit **
  11  Prefactor     3.6071        90.104       -.49327E-04   -.14907E-04
  12  Prefactor     2.3536        .89539        .21363E-06   -.67138E-03
  13  Prefactor     .10000E-03    25.643        .84627E-05** at limit **
  14  norm          .10000E-03    1.0465       -.59993E-07** at limit **
  15  Prefactor     .10000E-03    24.063       -.51816E-05** at limit **
  16  norm          .10000E-03    2.6642       -.11452E-06** at limit **
  17  Prefactor     .10000E-03    63.145       -.41935E-04** at limit **
  18  Prefactor     10.216        33.034        .12456E-04    .33674E-04
  19  Prefactor     .10000E-03    65.024       -.77350E-06** at limit **
  20  Prefactor     2.0900        .64932       -.12383E-06    .99411E-03
  21  Prefactor     .10000E-03    14.330       -.45010E-06** at limit **
  22  Prefactor     .10000E-03    15.883        .64469E-06** at limit **
  23  Prefactor     56.213        76.280        .79408E-05    .95834E-05
  24  Normalizat    .75275        .54360        .10742E-04    .49334E-04
  25  Prefactor     .74692        .24566        .37397E-05    .30112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 180.708
  norm       = 13.4721
  Prefactor  = 0.0001
  norm       = 4.7429
  Prefactor  = 146.761
  norm       = 3.04574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.5016
  Prefactor  = 0.0001
  Prefactor  = 3.60712
  Prefactor  = 2.35362
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2163
  Prefactor  = 0.0001
  Prefactor  = 2.09004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.2131
  Normalizat = 0.752746
  Prefactor  = 0.746917
 **********
 **   18 **HESSE 
 **********

 FCN=   1665.361     FROM HESSE     STATUS=OK           419 CALLS     3280 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     180.71        289.24        .15013E-03   -1.3011    
   2  norm          13.472        7.1287        .72975E-04   -1.4974    
   3  Prefactor     .10000E-03    67.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7429        4.2074        .75209E-04   -1.5272    
   5  Prefactor     146.76        128.81        .16629E-03   -1.3279    
   6  norm          3.0457        2.4151        .53872E-04   -1.5359    
   7  Prefactor     .10000E-03    24.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.9865        .97466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.502        50.157        .90592E-04   -1.4824    
  10  Prefactor     .10000E-03    405.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6071        90.772        .21375E-03   -1.5328    
  12  Prefactor     2.3536        .90787        .20882E-04   -1.5401    
  13  Prefactor     .10000E-03    25.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0488        .40766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6647        .65014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.216        33.073        .12525E-03   -1.5069    
  19  Prefactor     .10000E-03    65.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0900        .65128        .17434E-04   -1.5419    
  21  Prefactor     .10000E-03    14.333        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.885        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     56.213        76.405        .53509E-04   -1.4207    
  24  Normalizat    .75275        .61879        .42128E-03   -1.0185    
  25  Prefactor     .74692        .28417        .20195E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12931e-10
Minuit parameter uncertainties:
  1  291.559
  2  7.12915
  3  0.000113429
  4  4.20769
  5  129.055
  6  2.4152
  7  0.00019279
  8  2.27131e-05
  9  50.2654
  10  0.000295528
  11  36.2509
  12  0.907879
  13  2.22271e-05
  14  4.03982e-06
  15  2.25875e-05
  16  1.97748e-05
  17  1.71038e-05
  18  33.1324
  19  6.3487e-05
  20  0.651282
  21  4.12753e-05
  22  1.35919e-05
  23  76.539
  24  0.624691
  25  0.284727
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.607e+00  3.625e+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.469e-01  2.847e-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.527e-01  6.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287567/likelihoodResults_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.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) = 1665.35350412
delta logL = 0.00709804651638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1665.34862016
delta logL = 0.0119820041277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7666       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3960       1.0000          .0000       10.000    
     3 'Normalizat'    .75242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74371       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=   1665.349     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      295 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8005        61.741        .14389E-03    .17777E-04
   2  Index         2.3968        2.0479        .12834E-01    .42495E-05
   3  Normalizat    .74904        .57414        .42226E-03    .10597E-03
   4  Prefactor     .74527        .27476        .20215E-03   -.17501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80048
  Index      = 2.39678
  Normalizat = 0.749041
  Prefactor  = 0.745267
 **********
 **   18 **HESSE 
 **********

 FCN=   1665.349     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8005        60.309        .57555E-05   -1.5149    
   2  Index         2.3968        2.0265        .51336E-03   -.54760    
   3  Normalizat    .74904        .57484        .16890E-04   -1.0199    
   4  Prefactor     .74527        .27491        .40431E-04   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61329e-09
Minuit parameter uncertainties:
  1  43.4398
  2  2.11158
  3  0.579572
  4  0.27542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287567': 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) = 1665.34860217
delta logL = 0.0119999876756

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.800e+00  4.344e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.397e+00  2.112e+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.453e-01  2.754e-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.490e-01  5.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/287567/cmap_HighResolution_408585601_408844801_4FGL_J2225.6+2120_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-02', job_status='DONE', photon_flux_upper_limit='3.89e-07', time_completed='2021-09-28 10:52:39.490059', job_id='287567', GAL2='0.75', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632851559.49', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.20e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='653' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:52:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 287567: <4FGL_J2225.6+2120_daily_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin653 336.414 21.3418 408585601 408844801 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 :                                   412.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   422 sec.
    Turnaround time :                            425 sec.

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

