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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1347
RA = 336.414, Dec = 21.3418
tmin = 588470401, tmax = 588729601
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='293412', job_status='RUN', time_executed='2021-09-28 11:02:52.348300', time_epoch_executed='1632852172.35' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293412/ft1_4FGL_J2225.6+2120_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293412/ft1_4FGL_J2225.6+2120_daily_bin1347.fits outfile=/scratch/kocevski/293412/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1347.fits ra=336.414 dec=21.3418 rad=12.0 tmin=588470401.0 tmax=588729601.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.87
user 4.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.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/293412/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/293412/ft1_filtered_4FGL_J2225.6+2120_daily_bin1347.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/293412/ft1_filtered_4FGL_J2225.6+2120_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/293412/ltcube_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.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/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.fits
.....................!
real 12.34
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293412/ft1_filtered_4FGL_J2225.6+2120_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/293412/ltcube_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.fits outfile=/scratch/kocevski/293412/expmap_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.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/293412/ltcube_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.fits
.....................!
real 190.91
user 185.30
sys 5.04

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/293412/ft1_filtered_4FGL_J2225.6+2120_daily_bin1347.fits scfile=/scratch/kocevski/293412/ft2_4FGL_J2225.6+2120_daily_bin1347.fits outfile=/scratch/kocevski/293412/cmap_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.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.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .25834E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .67293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29439E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16340E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    125.78       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9777       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5050       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.142       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.240       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2583       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9442       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99323       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91559       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=   7638.811     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3008 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.909        .14013E-06** at limit **
   2  norm          .10000E-03    1.3135        .31212E-06** at limit **
   3  Prefactor     12.630        29.240       -.17911E-05   -.13725E-03
   4  norm          .10000E-03    .37569        .23988E-07** at limit **
   5  Prefactor     .10000E-03    23.824       -.18198E-06** at limit **
   6  norm          .67307        .77833        .45140E-07    .84209E-04
   7  Prefactor     .10003E-03    12.385        .24709E-05** at limit **
   8  norm          .10000E-03    4.8158       -.17580E-05** at limit **
   9  Prefactor     .10000E-03    15.643       -.38502E-06** at limit **
  10  Prefactor     125.77        117.21        .16436E-05   -.34136E-04
  11  Prefactor     7.8765        14.199        .31861E-06   -.39526E-04
  12  Prefactor     .89676        .28303        .23762E-07    .60885E-03
  13  Prefactor     .10000E-03    8.9658        .29354E-07** at limit **
  14  norm          4.9778        1.7390       -.66252E-07   -.62530E-03
  15  Prefactor     2.4886        51.326        .27642E-05   -.26360E-04
  16  norm          1.8076        1.7106       -.62974E-07   -.20391E-03
  17  Prefactor     .10000E-03    17.919        .69671E-06** at limit **
  18  Prefactor     53.124        21.976        .49515E-06   -.16284E-03
  19  Prefactor     .10000E-03    16.716        .88481E-07** at limit **
  20  Prefactor     .89948        .24097       -.63254E-07   -.11330E-02
  21  Prefactor     16.238        13.763       -.11888E-06   -.16710E-05
  22  Prefactor     2.2547        18.446        .91759E-05    .12646E-04
  23  Prefactor     7.9364        25.404        .95031E-06   -.34545E-04
  24  Normalizat    .99326        .25354       -.39753E-06   -.18610E-03
  25  Prefactor     .91576        .11346       -.63043E-06   -.49938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 12.6296
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.673071
  Prefactor  = 0.000100028
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 125.77
  Prefactor  = 7.87648
  Prefactor  = 0.896764
  Prefactor  = 0.0001
  norm       = 4.97777
  Prefactor  = 2.48859
  norm       = 1.8076
  Prefactor  = 0.0001
  Prefactor  = 53.1242
  Prefactor  = 0.0001
  Prefactor  = 0.899479
  Prefactor  = 16.238
  Prefactor  = 2.2547
  Prefactor  = 7.93637
  Normalizat = 0.993262
  Prefactor  = 0.915758
 **********
 **   18 **HESSE 
 **********

 FCN=   7638.811     FROM HESSE     STATUS=OK           439 CALLS     3447 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0885        .32468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.630        29.901        .11275E-03   -1.4997    
   4  norm          .10000E-03    .38508        .10459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .67307        .75595        .79450E-04   -1.5544    
   7  Prefactor     .10003E-03    68.862        .55435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.012        .34130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     125.77        116.49        .35892E-04   -1.3460    
  11  Prefactor     7.8765        14.192        .14298E-03   -1.5147    
  12  Prefactor     .89676        .28227        .24903E-04   -1.5519    
  13  Prefactor     .10000E-03    9.0082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9778        1.7305        .61547E-04   -1.5262    
  15  Prefactor     2.4886        51.001        .25819E-03   -1.5392    
  16  norm          1.8076        1.7065        .10588E-03   -1.5439    
  17  Prefactor     .10000E-03    17.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.124        21.949        .55019E-04   -1.4249    
  19  Prefactor     .10000E-03    16.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .89948        .24066        .20349E-04   -1.5518    
  21  Prefactor     16.238        13.752        .99387E-04   -1.4902    
  22  Prefactor     2.2547        19.348        .13669E-02   -1.5408    
  23  Prefactor     7.9364        25.401        .14226E-03   -1.5144    
  24  Normalizat    .99326        .29161        .38744E-03   -.93257    
  25  Prefactor     .91576        .13243        .19390E-03   -.95593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85209e-10
Minuit parameter uncertainties:
  1  9.30403e-05
  2  0.00013939
  3  29.936
  4  9.35711e-07
  5  8.1563e-05
  6  0.755959
  7  0.00276956
  8  0.000436349
  9  0.000160878
  10  116.707
  11  14.1982
  12  0.282266
  13  5.83186e-06
  14  1.73052
  15  22.5535
  16  1.70654
  17  0.000117191
  18  21.9522
  19  6.31616e-06
  20  0.240656
  21  13.7551
  22  13.215
  23  25.4357
  24  0.292082
  25  0.132476
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.876e+00  1.420e+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:  9.158e-01  1.325e-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:  9.933e-01  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293412/likelihoodResults_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.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) = 7638.80235621
delta logL = 0.00835247367468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7638.80001538
delta logL = 0.0106933106117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9651       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1228       1.0000          .0000       10.000    
     3 'Normalizat'    .98373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91911       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=   7638.800     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      239 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9564        203.64        .38003E-02    .11330E-03
   2  Index         3.1257        3.2840        .50000        .18289E-04
   3  Normalizat    .98345        .42381E-01    .87891E-01   -.63609E-04
   4  Prefactor     .91921        .20279E-01    .45248E-01   -.96435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95636
  Index      = 3.1257
  Normalizat = 0.983449
  Prefactor  = 0.91921
 **********
 **   18 **HESSE 
 **********

 FCN=   7638.800     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9564        16.908        .15201E-03   -1.5180    
   2  Index         3.1257        2.4647        .10199E-01   -.38425    
   3  Normalizat    .98345        .28569        .38918E-03   -.93587    
   4  Prefactor     .91921        .13428        .19358E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15394e-11
Minuit parameter uncertainties:
  1  16.9201
  2  2.59869
  3  0.286135
  4  0.134325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293412': 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) = 7638.80001435
delta logL = 0.0106943347091

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.956e+00  1.692e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.126e+00  2.599e+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:  9.192e-01  1.343e-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:  9.834e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/293412/cmap_HighResolution_588470401_588729601_4FGL_J2225.6+2120_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-28 11:15:37.518412', job_id='293412', GAL2='0.92', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1632852937.52', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.07e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1347' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 293412: <4FGL_J2225.6+2120_daily_bin1347> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1347> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:19 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:21 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:21 2021
Terminated at Tue Sep 28 11:15:38 2021
Results reported at Tue Sep 28 11:15:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1347 336.414 21.3418 588470401 588729601 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 :                                   761.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

