/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 223 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin381
RA = 336.414, Dec = 21.3418
tmin = 338083201, tmax = 338342401
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='286161', job_status='RUN', time_executed='2021-09-28 10:44:26.372690', time_epoch_executed='1632851066.37' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286161

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286161/ft1_4FGL_J2225.6+2120_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286161/ft2_4FGL_J2225.6+2120_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286161/ft1_4FGL_J2225.6+2120_daily_bin381.fits outfile=/scratch/kocevski/286161/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin381.fits ra=336.414 dec=21.3418 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.74
user 6.46
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286161/ft1_filtered_4FGL_J2225.6+2120_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/286161/ft2_4FGL_J2225.6+2120_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/286161/ltcube_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.fits outfile=/scratch/kocevski/286161/expmap_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.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/286161/ltcube_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.fits
.....................!
real 191.26
user 185.88
sys 5.05

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/286161/ft1_filtered_4FGL_J2225.6+2120_daily_bin381.fits scfile=/scratch/kocevski/286161/ft2_4FGL_J2225.6+2120_daily_bin381.fits outfile=/scratch/kocevski/286161/cmap_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.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.55
user 0.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.137       1.0000         .10000E-03   10000.    
     4 'norm      '    .76147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .60595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .72819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2986       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.301       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30322E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1194       1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.430       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1029       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79668       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=   6821.033     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2989 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.392       -.38606E-05** at limit **
   2  norm          1.4376        2.2617       -.11774E-06   -.49470E-04
   3  Prefactor     25.141        26.113        .14274E-05    .43241E-05
   4  norm          .76165        1.2705        .49312E-07   -.15698E-04
   5  Prefactor     .10000E-03    16.832        .63717E-05** at limit **
   6  norm          .60550        .96641       -.22022E-07   -.89909E-04
   7  Prefactor     .10000E-03    4.5035       -.23736E-07** at limit **
   8  norm          .10000E-03    4.2265       -.34003E-08** at limit **
   9  Prefactor     .10000E-03    6.0471        .44929E-07** at limit **
  10  Prefactor     .10000E-03    33.556        .11407E-04** at limit **
  11  Prefactor     .10000E-03    14.266       -.48899E-05** at limit **
  12  Prefactor     .35378        .21322        .49875E-08    .66040E-05
  13  Prefactor     .10000E-03    3.3639        .25980E-07** at limit **
  14  norm          .72876        1.2122        .60986E-07    .37535E-03
  15  Prefactor     .10000E-03    26.546       -.11654E-04** at limit **
  16  norm          3.2985        1.7010        .64116E-08    .29023E-04
  17  Prefactor     .10000E-03    15.335        .14634E-05** at limit **
  18  Prefactor     .10000E-03    8.5485        .75871E-06** at limit **
  19  Prefactor     12.299        14.444        .16914E-06   -.57488E-06
  20  Prefactor     .30329E-01    .91453E-01   -.42407E-08   -.10598E-03
  21  Prefactor     .10000E-03    7.6980       -.55256E-06** at limit **
  22  Prefactor     1.1196        1.4410        .55920E-07   -.30708E-03
  23  Prefactor     46.431        29.237        .43175E-06    .82404E-05
  24  Normalizat    1.1028        .21618        .25814E-07    .88808E-04
  25  Prefactor     .79669        .10427       -.12910E-06    .13464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.43756
  Prefactor  = 25.1409
  norm       = 0.761651
  Prefactor  = 0.0001
  norm       = 0.605499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.353777
  Prefactor  = 0.0001
  norm       = 0.72876
  Prefactor  = 0.0001
  norm       = 3.29852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2989
  Prefactor  = 0.030329
  Prefactor  = 0.0001
  Prefactor  = 1.11959
  Prefactor  = 46.431
  Normalizat = 1.10276
  Prefactor  = 0.796694
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.033     FROM HESSE     STATUS=OK           431 CALLS     3420 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4376        2.2291        .14624E-03   -1.5468    
   3  Prefactor     25.141        25.961        .79897E-04   -1.4705    
   4  norm          .76165        1.2412        .11466E-03   -1.5533    
   5  Prefactor     .10000E-03    16.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .60550        .87006        .96448E-03   -1.5552    
   7  Prefactor     .10000E-03    4.5121        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.3226        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .35378        .20785        .27974E-04   -1.5589    
  13  Prefactor     .10000E-03    3.3652        .14792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72876        1.1100        .10871E-02   -1.5537    
  15  Prefactor     .10000E-03    26.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2985        1.7022        .75238E-04   -1.5345    
  17  Prefactor     .10000E-03    15.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.299        14.375        .11422E-03   -1.5006    
  20  Prefactor     .30329E-01    .10681        .39595E-03   -1.5673    
  21  Prefactor     .10000E-03    7.7702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1196        20.438        .22208E-02   -1.5496    
  23  Prefactor     46.431        29.236        .58843E-04   -1.4344    
  24  Normalizat    1.1028        .25433        .30920E-03   -.89663    
  25  Prefactor     .79669        .12535        .17774E-03   -.99850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08247e-08
Minuit parameter uncertainties:
  1  2.41556e-05
  2  2.22922
  3  25.9726
  4  1.24127
  5  2.9357e-06
  6  0.870076
  7  5.55367e-07
  8  2.80074e-06
  9  2.70118e-07
  10  2.69862e-06
  11  3.29732e-05
  12  0.207849
  13  1.90133e-08
  14  1.11
  15  4.59033e-05
  16  1.70221
  17  2.56596e-07
  18  9.08879e-07
  19  14.3789
  20  0.106816
  21  1.3876e-06
  22  9.57053
  23  29.2453
  24  0.254612
  25  0.125397
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.297e-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:  7.967e-01  1.254e-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.103e+00  2.546e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286161/likelihoodResults_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.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) = 6821.03333915
delta logL = -0.000329990207319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.03300918
delta logL = -2.21207301365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79669       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=   6821.033     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6241.9        .90712E-02** at limit **
   2  Index         2.8155        6.3612        .50000       -.15899E-05
   3  Normalizat    1.1028        .11505        .69881E-01    .23474E-04
   4  Prefactor     .79669        .55004E-01    .43674E-01    .14813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81552
  Normalizat = 1.10276
  Prefactor  = 0.796694
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.033     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8155        6.4078        .50000       -.45214    
   3  Normalizat    1.1028        .24585        .30920E-03   -.89663    
   4  Prefactor     .79669        .12299        .17774E-03   -.99850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13888e-12
Minuit parameter uncertainties:
  1  7.70381e-05
  2  5.0391
  3  0.246103
  4  0.123036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286161': 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) = 6821.03300916
delta logL = 1.47156242747e-09

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  7.704e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.816e+00  5.039e+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.967e-01  1.230e-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.103e+00  2.461e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/286161/cmap_HighResolution_338083201_338342401_4FGL_J2225.6+2120_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 10:56:19.839914', job_id='286161', GAL2='0.80', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632851779.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.47e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='381' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 286161: <4FGL_J2225.6+2120_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin381 336.414 21.3418 338083201 338342401 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 :                                   711.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

