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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin759
RA = 336.414, Dec = 21.3418
tmin = 436060801, tmax = 436320001
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='287729', job_status='RUN', time_executed='2021-09-28 10:48:55.064531', time_epoch_executed='1632851335.06' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287729/ft1_4FGL_J2225.6+2120_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287729/ft1_4FGL_J2225.6+2120_daily_bin759.fits outfile=/scratch/kocevski/287729/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin759.fits ra=336.414 dec=21.3418 rad=12.0 tmin=436060801.0 tmax=436320001.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 5.72
user 5.45
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.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/287729/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/287729/ltcube_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.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/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/287729/ltcube_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.fits outfile=/scratch/kocevski/287729/expmap_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.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/287729/ltcube_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.fits
.....................!
real 191.76
user 186.70
sys 4.74

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/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits outfile=/scratch/kocevski/287729/cmap_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits outfile=/scratch/kocevski/287729/cmap_HighResolution_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.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/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/287729/ft2_4FGL_J2225.6+2120_daily_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287729/Model_4FGL_J2225.6+2120_daily_bin759.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/287729/ft1_filtered_4FGL_J2225.6+2120_daily_bin759.fits.....................!
real 77.30
user 75.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .73344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .97104       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.016       1.0000         .10000E-03   10000.    
     8 'norm      '    .10624E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2099       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.449       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2793       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.397       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91070       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=   6953.306     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2891 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.497       -.50230E-06** at limit **
   2  norm          6.0700        3.3825       -.82140E-07    .38664E-03
   3  Prefactor     .10000E-03    16.221       -.19475E-06** at limit **
   4  norm          .73307        1.3208       -.68679E-06   -.26772E-03
   5  Prefactor     .10000E-03    31.724        .17710E-06** at limit **
   6  norm          .97092        .84120       -.29584E-07   -.42155E-04
   7  Prefactor     15.018        20.140       -.11414E-07   -.30052E-04
   8  norm          .10000E-03    26.012       -.67297E-05** at limit **
   9  Prefactor     46.802        25.466       -.93585E-07   -.15952E-04
  10  Prefactor     12.312        176.57        .22454E-05   -.80029E-05
  11  Prefactor     .10000E-03    7.2542       -.84436E-07** at limit **
  12  Prefactor     2.7064        .48728       -.74913E-10   -.77193E-03
  13  Prefactor     .10000E-03    10.585       -.23210E-07** at limit **
  14  norm          4.2103        1.8824       -.36000E-08   -.16797E-03
  15  Prefactor     .10000E-03    17.156       -.10705E-07** at limit **
  16  norm          .10000E-03    1.2568       -.15623E-07** at limit **
  17  Prefactor     .10000E-03    37.924       -.27140E-06** at limit **
  18  Prefactor     23.444        20.358       -.10496E-06   -.34009E-05
  19  Prefactor     .10000E-03    74.137        .26542E-06** at limit **
  20  Prefactor     4.2793        .46292        .42459E-08   -.26070E-02
  21  Prefactor     .10000E-03    4.2047       -.30563E-07** at limit **
  22  Prefactor     .10000E-03    7.7090       -.73875E-07** at limit **
  23  Prefactor     25.398        29.790       -.87014E-07   -.16011E-05
  24  Normalizat    1.0795        .30719        .55548E-06   -.19478E-04
  25  Prefactor     .91083        .13771        .19084E-06   -.10884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.06998
  Prefactor  = 0.0001
  norm       = 0.733074
  Prefactor  = 0.0001
  norm       = 0.97092
  Prefactor  = 15.0176
  norm       = 0.0001
  Prefactor  = 46.8023
  Prefactor  = 12.3119
  Prefactor  = 0.0001
  Prefactor  = 2.70639
  Prefactor  = 0.0001
  norm       = 4.21034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4443
  Prefactor  = 0.0001
  Prefactor  = 4.27926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3979
  Normalizat = 1.07948
  Prefactor  = 0.91083
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.306     FROM HESSE     STATUS=OK           429 CALLS     3320 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0700        3.3772        .10621E-03   -1.5215    
   3  Prefactor     .10000E-03    16.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .73307        1.3109        .13752E-02   -1.5537    
   5  Prefactor     .10000E-03    31.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .97092        .87064        .68229E-03   -1.5511    
   7  Prefactor     15.018        20.146        .10336E-03   -1.4933    
   8  norm          .10000E-03    25.611        .39029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.802        25.606        .58611E-04   -1.4339    
  10  Prefactor     12.312        177.68        .11379E-03   -1.5006    
  11  Prefactor     .10000E-03    7.2829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7064        .48999        .22771E-04   -1.5379    
  13  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2103        1.8835        .73043E-04   -1.5298    
  15  Prefactor     .10000E-03    17.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2665        .91095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.444        20.322        .82720E-04   -1.4739    
  19  Prefactor     .10000E-03    74.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2793        .46388        .17726E-04   -1.5294    
  21  Prefactor     .10000E-03    4.2071        .16699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.398        29.789        .79489E-04   -1.4700    
  24  Normalizat    1.0795        .36042        .43039E-03   -.90413    
  25  Prefactor     .91083        .16329        .21793E-03   -.95764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59545e-09
Minuit parameter uncertainties:
  1  2.9375e-05
  2  3.37733
  3  2.74183e-05
  4  1.31096
  5  6.09874e-06
  6  0.870652
  7  20.1547
  8  6.76156e-05
  9  25.6116
  10  93.88
  11  7.29336e-06
  12  0.489993
  13  3.33438e-06
  14  1.88348
  15  5.23087e-06
  16  1.33901e-06
  17  2.88727e-06
  18  20.3283
  19  0.000187034
  20  0.463877
  21  1.06319e-06
  22  1.65336e-06
  23  29.8069
  24  0.36124
  25  0.163377
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  7.293e-06  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.108e-01  1.634e-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.079e+00  3.612e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287729/likelihoodResults_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.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) = 6953.30629204
delta logL = -0.00065385193011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6953.30563843
delta logL = -2.44791408477e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8106       1.0000          .0000       10.000    
     3 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91090       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=   6953.306     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.262        .90712E-02** at limit **
   2  Index         2.8102        6.1429        .50000        .53026E-06
   3  Normalizat    1.0795        .18557E-01    .97137E-01    .34022E-04
   4  Prefactor     .91083        .87529E-02    .45144E-01    .10980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81021
  Normalizat = 1.07948
  Prefactor  = 0.910831
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.306     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    251.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8102        6.3545        .50000       -.45333    
   3  Normalizat    1.0795        .44612E-01    .43039E-03   -.90413    
   4  Prefactor     .91083        .21094E-01    .21793E-03   -.95764    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45849e-08
Minuit parameter uncertainties:
  1  0.00013858
  2  1248.61
  3  0.0446131
  4  0.0210943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287729': 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): 102
logL (Free Index) = 6953.30563819
delta logL = 1.09139364213e-10

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.386e-04  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.810e+00  1.249e+03  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.108e-01  2.109e-02  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.079e+00  4.461e-02  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/287729/cmap_HighResolution_436060801_436320001_4FGL_J2225.6+2120_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-28 11:01:19.340362', job_id='287729', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632852079.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.09e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='759' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 287729: <4FGL_J2225.6+2120_daily_bin759> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:49 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:51 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:51 2021
Terminated at Tue Sep 28 11:01:20 2021
Results reported at Tue Sep 28 11:01:20 2021

Your job looked like:

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

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

