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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1340
RA = 336.414, Dec = 21.3418
tmin = 586656001, tmax = 586915201
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='293401', job_status='RUN', time_executed='2021-09-28 11:02:30.626753', time_epoch_executed='1632852150.63' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293401/ft1_4FGL_J2225.6+2120_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293401/ft1_4FGL_J2225.6+2120_daily_bin1340.fits outfile=/scratch/kocevski/293401/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1340.fits ra=336.414 dec=21.3418 rad=12.0 tmin=586656001.0 tmax=586915201.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.70
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293401/ft1_filtered_4FGL_J2225.6+2120_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/293401/ltcube_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.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/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits
.....................!
real 12.14
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293401/ft1_filtered_4FGL_J2225.6+2120_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/293401/ltcube_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.fits outfile=/scratch/kocevski/293401/expmap_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.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/293401/ltcube_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.fits
.....................!
real 192.76
user 187.54
sys 4.88

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/293401/ft1_filtered_4FGL_J2225.6+2120_daily_bin1340.fits scfile=/scratch/kocevski/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits outfile=/scratch/kocevski/293401/cmap_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293401/ft1_filtered_4FGL_J2225.6+2120_daily_bin1340.fits scfile=/scratch/kocevski/293401/ft2_4FGL_J2225.6+2120_daily_bin1340.fits outfile=/scratch/kocevski/293401/cmap_HighResolution_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=336.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.965       1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3245       1.0000         .10000E-03   10000.    
     8 'norm      '    10.576       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.640       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
    16 'norm      '    .87732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3315       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8206       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.969       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77397       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8563.378     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     2389 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    9.8195        .10168E-04** at limit **
   2  norm          .10000E-03    .92828        .21952E-06** at limit **
   3  Prefactor     15.964        1.0177       -.26321E-06    .28872E-03
   4  norm          .10000E-03    .58408        .30332E-06** at limit **
   5  Prefactor     .10012E-03    11.034       -.82061E-05** at limit **
   6  norm          .10000E-03    .21448       -.19426E-06** at limit **
   7  Prefactor     3.3245        1.0128        .54897E-07   -.12440E-04
   8  norm          10.576        5.6251       -.72438E-05   -.96639E-03
   9  Prefactor     11.547        1.0029       -.10274E-06    .24740E-04
  10  Prefactor     .10050E-03    27.985       -.45596E-04** at limit **
  11  Prefactor     .10000E-03    14.071        .63147E-05** at limit **
  12  Prefactor     .81979        .22661        .31396E-07   -.23502E-03
  13  Prefactor     14.640        1.0008        .14352E-07   -.43153E-05
  14  norm          3.5825        1.3408       -.10201E-06   -.13460E-03
  15  Prefactor     13.679        1.0050        .16301E-06   -.10228E-03
  16  norm          .87754        1.2663        .48988E-08    .21133E-03
  17  Prefactor     .10001E-03    18.505        .38853E-04** at limit **
  18  Prefactor     67.521        1.0010        .65808E-08    .10179E-03
  19  Prefactor     .10027E-03    11.575       -.21797E-04** at limit **
  20  Prefactor     1.3315        .21978        .72133E-07    .97488E-03
  21  Prefactor     1.8183        1.0565        .75094E-06    .36886E-04
  22  Prefactor     15.969        1.0031       -.80719E-08    .24095E-04
  23  Prefactor     .10029E-03    10.663        .43732E-05** at limit **
  24  Normalizat    .77397        .25588        .60688E-05   -.54088E-04
  25  Prefactor     1.0561        .12982       -.22663E-06    .28586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100228
  norm       = 0.0001
  Prefactor  = 15.9639
  norm       = 0.0001
  Prefactor  = 0.000100115
  norm       = 0.0001
  Prefactor  = 3.32448
  norm       = 10.5761
  Prefactor  = 11.5473
  Prefactor  = 0.000100501
  Prefactor  = 0.0001
  Prefactor  = 0.819794
  Prefactor  = 14.6398
  norm       = 3.58252
  Prefactor  = 13.6787
  norm       = 0.877541
  Prefactor  = 0.00010001
  Prefactor  = 67.5208
  Prefactor  = 0.000100266
  Prefactor  = 1.33148
  Prefactor  = 1.81834
  Prefactor  = 15.9693
  Prefactor  = 0.000100289
  Normalizat = 0.773966
  Prefactor  = 1.05607
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.378     FROM HESSE     STATUS=OK           487 CALLS     2876 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    35.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .90188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.964        23.935        .25060E-02   -1.4909    
   4  norm          .10000E-03    .39709        .30431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    37.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .21466        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3245        9.1442        .55501E-02   -1.5343    
   8  norm          10.576        5.6535        .30800E-02   -1.5057    
   9  Prefactor     11.547        15.468        .29474E-02   -1.5028    
  10  Prefactor     .10050E-03    43.750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.797        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .81979        .23333        .50463E-02   -1.5527    
  13  Prefactor     14.640        10.799        .26170E-02   -1.4943    
  14  norm          3.5825        1.3889        .53376E-02   -1.5329    
  15  Prefactor     13.679        21.314        .27076E-02   -1.4968    
  16  norm          .87754        1.5441        .28892E-01   -1.5521    
  17  Prefactor     .10001E-03    30.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.521        17.481        .12211E-02   -1.4063    
  19  Prefactor     .10027E-03    17.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3315        .22389        .38076E-02   -1.5477    
  21  Prefactor     1.8183        16.609        .77369E-02   -1.5438    
  22  Prefactor     15.969        13.667        .25056E-02   -1.4909    
  23  Prefactor     .10029E-03    19.327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77397        .23288        .92837E-01   -1.0104    
  25  Prefactor     1.0561        .11407        .39566E-01   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73697e-08
Minuit parameter uncertainties:
  1  0.00567678
  2  8.17054e-06
  3  23.9489
  4  1.12044e-05
  5  0.00418994
  6  7.01155e-06
  7  9.14805
  8  5.65374
  9  15.4729
  10  0.0093717
  11  4.14223e-05
  12  0.233327
  13  10.8004
  14  1.3889
  15  21.326
  16  1.5442
  17  0.00109589
  18  17.4828
  19  0.00426346
  20  0.223886
  21  10.9949
  22  13.6693
  23  0.0047304
  24  0.233179
  25  0.1141
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.142e-05  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:  1.056e+00  1.141e-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.740e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293401/likelihoodResults_586656001_586915201_4FGL_J2225.6+2120_daily_bin1340.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8563.37812065
delta logL = -0.000335819870088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8563.37778545
delta logL = -6.19878846919e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12819E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7367       1.0000          .0000       10.000    
     3 'Normalizat'    .77426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0559       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=   8563.296     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      341 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0996        15.140        .44384E-02    .14089E-03
   2  Index         1.8520        .92039        .25911       -.69162E-04
   3  Normalizat    .77378        .24916        .41128E-03   -.47545E-05
   4  Prefactor     1.0525        .13043        .18416E-03    .16544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0996
  Index      = 1.85198
  Normalizat = 0.773783
  Prefactor  = 1.05252
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.296     FROM HESSE     STATUS=OK            29 CALLS      370 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0996        10.783        .17754E-03   -1.5303    
   2  Index         1.8520        .88545        .15336E-01   -.68104    
   3  Normalizat    .77378        .24912        .16451E-04   -1.0105    
   4  Prefactor     1.0525        .12981        .73666E-05   -.90999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34253e-09
Minuit parameter uncertainties:
  1  10.7883
  2  0.893299
  3  0.24949
  4  0.129848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293401': 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) = 8563.29645769
delta logL = 0.0813271400621

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.100e+00  1.079e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.852e+00  8.933e-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:  1.053e+00  1.298e-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.738e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-28 11:15:50.759061', job_id='293401', GAL2='1.05', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632852950.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.13e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1340' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 293401: <4FGL_J2225.6+2120_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1340 336.414 21.3418 586656001 586915201 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 :                                   797.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

