/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 5 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin489
RA = 336.414, Dec = 21.3418
tmin = 366076801, tmax = 366336001
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='286320', job_status='RUN', time_executed='2021-09-28 10:41:02.134228', time_epoch_executed='1632850862.13' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286320

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286320/ft1_4FGL_J2225.6+2120_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286320/ft1_4FGL_J2225.6+2120_daily_bin489.fits outfile=/scratch/kocevski/286320/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin489.fits ra=336.414 dec=21.3418 rad=12.0 tmin=366076801.0 tmax=366336001.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.13
user 3.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.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/286320/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/286320/ft1_filtered_4FGL_J2225.6+2120_daily_bin489.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286320/ft1_filtered_4FGL_J2225.6+2120_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/286320/ltcube_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.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/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits
.....................!
real 8.80
user 8.52
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286320/ft1_filtered_4FGL_J2225.6+2120_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/286320/ltcube_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.fits outfile=/scratch/kocevski/286320/expmap_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.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/286320/ltcube_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.fits
.....................!
real 147.78
user 144.39
sys 3.15

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/286320/ft1_filtered_4FGL_J2225.6+2120_daily_bin489.fits scfile=/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits outfile=/scratch/kocevski/286320/cmap_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.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.45
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286320/ft1_filtered_4FGL_J2225.6+2120_daily_bin489.fits scfile=/scratch/kocevski/286320/ft2_4FGL_J2225.6+2120_daily_bin489.fits outfile=/scratch/kocevski/286320/cmap_HighResolution_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.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.46
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.013       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.625       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8802       1.0000         .10000E-03   10000.    
    14 'norm      '    .47913       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66178E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.793       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94134       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=   8160.930     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2898 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.363        .79802E-06** at limit **
   2  norm          11.013        3.5810        .33988E-06   -.51271E-04
   3  Prefactor     .10000E-03    13.697        .84607E-06** at limit **
   4  norm          .22122        .74407        .14544E-06   -.39253E-03
   5  Prefactor     .10000E-03    17.276       -.64297E-06** at limit **
   6  norm          .10000E-03    .44125       -.52028E-08** at limit **
   7  Prefactor     16.625        15.987       -.45832E-06   -.81762E-05
   8  norm          .10000E-03    1.6894       -.28154E-07** at limit **
   9  Prefactor     .10000E-03    7.9857        .12397E-06** at limit **
  10  Prefactor     .10000E-03    25.014        .11277E-06** at limit **
  11  Prefactor     10.404        12.313        .17790E-05    .49046E-05
  12  Prefactor     1.1710        .27968        .27033E-07    .87825E-03
  13  Prefactor     4.8809        8.4123        .59132E-07    .73390E-05
  14  norm          .47928        .85428        .32574E-06    .39711E-03
  15  Prefactor     .10000E-03    9.2647       -.32447E-06** at limit **
  16  norm          1.0811        1.0674       -.47230E-08    .42355E-04
  17  Prefactor     25.420        37.928       -.24668E-06   -.29771E-05
  18  Prefactor     .10000E-03    3.6845        .39416E-07** at limit **
  19  Prefactor     .10000E-03    16.510       -.10588E-05** at limit **
  20  Prefactor     .66464E-01    .13118       -.30265E-06    .63926E-03
  21  Prefactor     13.658        12.122       -.27809E-07    .10282E-04
  22  Prefactor     .10000E-03    4.2063        .18930E-06** at limit **
  23  Prefactor     37.793        26.744       -.62348E-07    .71202E-05
  24  Normalizat    1.0699        .22415        .76242E-06    .96989E-04
  25  Prefactor     .94117        .10686        .13901E-06    .17027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.0133
  Prefactor  = 0.0001
  norm       = 0.221217
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4036
  Prefactor  = 1.171
  Prefactor  = 4.88094
  norm       = 0.479282
  Prefactor  = 0.0001
  norm       = 1.08112
  Prefactor  = 25.4196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.066464
  Prefactor  = 13.6581
  Prefactor  = 0.0001
  Prefactor  = 37.7934
  Normalizat = 1.06993
  Prefactor  = 0.941174
 **********
 **   18 **HESSE 
 **********

 FCN=   8160.930     FROM HESSE     STATUS=OK           435 CALLS     3333 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.013        3.5674        .46346E-03   -1.5044    
   3  Prefactor     .10000E-03    13.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22122        1.0348        .13619E-02   -1.5614    
   5  Prefactor     .10000E-03    17.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .72415        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.625        16.003        .98229E-04   -1.4892    
   8  norm          .10000E-03    1.6969        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.404        12.344        .62101E-03   -1.5063    
  12  Prefactor     1.1710        .28014        .22041E-04   -1.5492    
  13  Prefactor     4.8809        8.4139        .18208E-03   -1.5266    
  14  norm          .47928        .76033        .10653E-02   -1.5570    
  15  Prefactor     .10000E-03    9.2991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0811        1.0674        .90367E-04   -1.5500    
  17  Prefactor     25.420        37.894        .79338E-04   -1.4699    
  18  Prefactor     .10000E-03    3.6911        .16932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .66464E-01    .13076        .39539E-03   -1.5656    
  21  Prefactor     13.658        12.128        .10838E-03   -1.4969    
  22  Prefactor     .10000E-03    4.2356        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.793        26.750        .65195E-04   -1.4478    
  24  Normalizat    1.0699        .26015        .34755E-03   -.90723    
  25  Prefactor     .94117        .12701        .18650E-03   -.94717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74037e-08
Minuit parameter uncertainties:
  1  3.33549e-05
  2  3.56743
  3  4.37575e-06
  4  0.956707
  5  3.41691e-05
  6  1.2598e-05
  7  16.0071
  8  3.06487e-06
  9  6.83602e-06
  10  5.92184e-06
  11  12.3472
  12  0.280145
  13  8.41591
  14  0.760343
  15  2.57114e-05
  16  1.06742
  17  37.9303
  18  9.21259e-07
  19  4.24677e-05
  20  0.130758
  21  12.1302
  22  5.73863e-06
  23  26.758
  24  0.26046
  25  0.12705
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.040e+01  1.235e+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.412e-01  1.270e-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.070e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/286320/likelihoodResults_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.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) = 8160.93015645
delta logL = 9.48947435973e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8160.93013659
delta logL = 0.000114758517157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8308       1.0000          .0000       10.000    
     3 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94154       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=   8160.930     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.338        13.367        .12461E-03    .24652E-03
   2  Index         2.8311        1.3419        .11686E-01    .65521E-04
   3  Normalizat    1.0690        .25676        .34768E-03   -.48748E-03
   4  Prefactor     .94149        .12688        .18648E-03   -.76256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3383
  Index      = 2.83107
  Normalizat = 1.06903
  Prefactor  = 0.94149
 **********
 **   18 **HESSE 
 **********

 FCN=   8160.930     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.338        12.988        .49842E-05   -1.5065    
   2  Index         2.8311        1.3020        .46745E-03   -.44869    
   3  Normalizat    1.0690        .25686        .69536E-04   -.90752    
   4  Prefactor     .94149        .12690        .37295E-04   -.94706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31007e-10
Minuit parameter uncertainties:
  1  12.9917
  2  1.32084
  3  0.257162
  4  0.126936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286320': 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) = 8160.93013587
delta logL = 0.000115474381346

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.034e+01  1.299e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.831e+00  1.321e+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.415e-01  1.269e-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.069e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.95
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/286320/cmap_HighResolution_366076801_366336001_4FGL_J2225.6+2120_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-28 10:50:47.395342', job_id='286320', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632851447.4', return_code2='0', ts='0.95', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.15e-04', ts2='0.95', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='489' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 286320: <4FGL_J2225.6+2120_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin489 336.414 21.3418 366076801 366336001 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

