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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1488
RA = 336.414, Dec = 21.3418
tmin = 625017601, tmax = 625276801
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='293780', job_status='RUN', time_executed='2021-09-28 11:03:58.368894', time_epoch_executed='1632852238.37' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293780

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293780/ft1_4FGL_J2225.6+2120_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293780/ft1_4FGL_J2225.6+2120_daily_bin1488.fits outfile=/scratch/kocevski/293780/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1488.fits ra=336.414 dec=21.3418 rad=12.0 tmin=625017601.0 tmax=625276801.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.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.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/293780/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/293780/ft1_filtered_4FGL_J2225.6+2120_daily_bin1488.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293780/ft1_filtered_4FGL_J2225.6+2120_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/293780/ltcube_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.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/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits
.....................!
real 12.59
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293780/ft1_filtered_4FGL_J2225.6+2120_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/293780/ltcube_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.fits outfile=/scratch/kocevski/293780/expmap_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.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/293780/ltcube_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.fits
.....................!
real 193.52
user 187.87
sys 5.25

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/293780/ft1_filtered_4FGL_J2225.6+2120_daily_bin1488.fits scfile=/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits outfile=/scratch/kocevski/293780/cmap_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293780/ft1_filtered_4FGL_J2225.6+2120_daily_bin1488.fits scfile=/scratch/kocevski/293780/ft2_4FGL_J2225.6+2120_daily_bin1488.fits outfile=/scratch/kocevski/293780/cmap_HighResolution_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12400E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.510       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5024       1.0000         .10000E-03   10000.    
     6 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.248       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.163       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4183       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.105       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27657E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7753       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1740       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82112       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97774       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=   8082.398     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2934 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    172.41        .51027E-05** at limit **
   2  norm          .10000E-03    1.4184       -.25917E-06** at limit **
   3  Prefactor     27.455        31.052       -.48304E-05    .45378E-04
   4  norm          1.7144        1.3239       -.30141E-06   -.60872E-03
   5  Prefactor     6.5124        97.481        .33159E-04    .32245E-05
   6  norm          .10000E-03    .32828       -.10447E-06** at limit **
   7  Prefactor     .10000E-03    5.2015        .11823E-06** at limit **
   8  norm          .10000E-03    7.1953        .18969E-06** at limit **
   9  Prefactor     .10000E-03    9.4885        .79295E-06** at limit **
  10  Prefactor     65.227        82.746       -.23208E-04    .40318E-05
  11  Prefactor     .10000E-03    12.181       -.15034E-05** at limit **
  12  Prefactor     .51223        .20699       -.49858E-07   -.65893E-03
  13  Prefactor     11.163        9.2908        .18392E-06   -.16657E-05
  14  norm          1.4182        .93848        .16938E-07   -.77607E-04
  15  Prefactor     .10000E-03    9.5224       -.22478E-06** at limit **
  16  norm          1.8749        1.9298        .70041E-07   -.29443E-03
  17  Prefactor     .10000E-03    12.252        .10632E-05** at limit **
  18  Prefactor     14.107        16.505       -.19082E-05   -.51267E-05
  19  Prefactor     .10000E-03    10.946       -.77099E-06** at limit **
  20  Prefactor     .38017        .14347        .13060E-07    .59934E-03
  21  Prefactor     7.7800        14.715       -.23172E-05   -.39406E-04
  22  Prefactor     12.915        12.732        .19336E-06   -.31666E-05
  23  Prefactor     5.1747        23.962       -.51335E-05   -.26080E-04
  24  Normalizat    .82115        .21817        .32688E-05    .35120E-04
  25  Prefactor     .97765        .10469       -.10813E-06    .27563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 27.4547
  norm       = 1.7144
  Prefactor  = 6.51245
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.2267
  Prefactor  = 0.0001
  Prefactor  = 0.512229
  Prefactor  = 11.1634
  norm       = 1.41824
  Prefactor  = 0.0001
  norm       = 1.87493
  Prefactor  = 0.0001
  Prefactor  = 14.1074
  Prefactor  = 0.000100002
  Prefactor  = 0.380174
  Prefactor  = 7.78002
  Prefactor  = 12.9153
  Prefactor  = 5.17468
  Normalizat = 0.821146
  Prefactor  = 0.977652
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.398     FROM HESSE     STATUS=OK           433 CALLS     3367 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    172.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3165        .19969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.455        30.095        .76381E-04   -1.4660    
   4  norm          1.7144        1.3187        .87330E-04   -1.5446    
   5  Prefactor     6.5124        96.757        .15739E-03   -1.5198    
   6  norm          .10000E-03    .54723        .99417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     65.227        82.618        .49683E-04   -1.4091    
  11  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51223        .20567        .24460E-04   -1.5565    
  13  Prefactor     11.163        9.3055        .11991E-03   -1.5040    
  14  norm          1.4182        .92662        .68179E-04   -1.5470    
  15  Prefactor     .10000E-03    9.5514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8749        1.9090        .11463E-03   -1.5434    
  17  Prefactor     .10000E-03    12.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.107        16.430        .10665E-03   -1.4957    
  19  Prefactor     .10000E-03    49.328        .57171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .38017        .14195        .19521E-04   -1.5585    
  21  Prefactor     7.7800        14.700        .14381E-03   -1.5150    
  22  Prefactor     12.915        12.687        .11147E-03   -1.4989    
  23  Prefactor     5.1747        23.990        .17673E-03   -1.5253    
  24  Normalizat    .82115        .25161        .37633E-03   -.99289    
  25  Prefactor     .97765        .12326        .17559E-03   -.93478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26386e-10
Minuit parameter uncertainties:
  1  0.000142193
  2  8.39617e-05
  3  30.1116
  4  1.31876
  5  50.3021
  6  9.3968e-06
  7  8.18387e-06
  8  5.00106e-05
  9  1.87934e-05
  10  82.7633
  11  1.95812e-05
  12  0.205669
  13  9.30672
  14  0.926626
  15  2.08948e-06
  16  1.90903
  17  8.24269e-06
  18  16.435
  19  0.000624662
  20  0.141953
  21  14.7069
  22  12.6892
  23  22.2982
  24  0.251967
  25  0.123297
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.958e-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:  9.777e-01  1.233e-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:  8.211e-01  2.520e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293780/likelihoodResults_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.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) = 8082.39850169
delta logL = -0.00038827638673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8082.39811343
delta logL = -2.15713953367e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8398       1.0000          .0000       10.000    
     3 'Normalizat'    .82121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97763       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=   8082.304     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      339 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20328        2.6041        .18142E-01    .14155E-02
   2  Index         5.9277        2.4094        .40640        .16480E-05
   3  Normalizat    .77069        .20766E-01    .37633E-02   -.71551E-04
   4  Prefactor     .99436        .10555E-01    .17559E-03   -.86449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203278
  Index      = 5.92766
  Normalizat = 0.770687
  Prefactor  = 0.994363
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.304     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      372 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20328        42.588        .72444E-03   -1.5618    
   2  Index         5.9277        6.4194        .11504E-01    .18661    
   3  Normalizat    .77069        .15170        .15053E-03   -1.0117    
   4  Prefactor     .99436        .72194E-01    .35118E-04   -.92918    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.25759e-10
Minuit parameter uncertainties:
  1  5.88742
  2  20.5433
  3  0.151779
  4  0.0722006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293780': 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) = 8082.30355152
delta logL = 0.0945618892438

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.033e-01  5.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  5.928e+00  2.054e+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:  9.944e-01  7.220e-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:  7.707e-01  1.518e-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/293780/cmap_HighResolution_625017601_625276801_4FGL_J2225.6+2120_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-28 11:17:10.241986', job_id='293780', GAL2='0.99', fit_tolerance='1e-08', EG2='0.77', EG='0.82', time_epoch_completed='1632853030.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.46e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1488' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 293780: <4FGL_J2225.6+2120_daily_bin1488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1488 336.414 21.3418 625017601 625276801 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

