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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin587
RA = 336.414, Dec = 21.3418
tmin = 391478401, tmax = 391737601
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='287466', job_status='RUN', time_executed='2021-09-28 10:45:34.776954', time_epoch_executed='1632851134.78' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287466

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287466/ft1_4FGL_J2225.6+2120_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287466/ft1_4FGL_J2225.6+2120_daily_bin587.fits outfile=/scratch/kocevski/287466/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin587.fits ra=336.414 dec=21.3418 rad=12.0 tmin=391478401.0 tmax=391737601.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.96
user 3.25
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287466/ft1_filtered_4FGL_J2225.6+2120_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/287466/ltcube_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.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/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits
.....................!
real 9.42
user 9.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287466/ft1_filtered_4FGL_J2225.6+2120_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/287466/ltcube_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.fits outfile=/scratch/kocevski/287466/expmap_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.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/287466/ltcube_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.fits
.....................!
real 154.32
user 149.67
sys 4.39

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/287466/ft1_filtered_4FGL_J2225.6+2120_daily_bin587.fits scfile=/scratch/kocevski/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits outfile=/scratch/kocevski/287466/cmap_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.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.47
user 0.32
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287466/ft1_filtered_4FGL_J2225.6+2120_daily_bin587.fits scfile=/scratch/kocevski/287466/ft2_4FGL_J2225.6+2120_daily_bin587.fits outfile=/scratch/kocevski/287466/cmap_HighResolution_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70338E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .71643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.057       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.224       1.0000         .10000E-03   10000.    
    16 'norm      '    .20306       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14223E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0743       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2943       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4844       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73894       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=   8699.789     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2924 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.713       -.14892E-04** at limit **
   2  norm          5.2957        2.7242       -.30221E-07   -.10977E-03
   3  Prefactor     .10000E-03    123.98       -.99951E-06** at limit **
   4  norm          1.9370        1.2256       -.19580E-07   -.28355E-03
   5  Prefactor     .10000E-03    75.682        .28044E-04** at limit **
   6  norm          .71563        .96883       -.16724E-06   -.17100E-02
   7  Prefactor     20.058        22.007       -.14750E-06   -.26999E-04
   8  norm          .10000E-03    1.8047        .20233E-07** at limit **
   9  Prefactor     .10000E-03    7.1865       -.13878E-07** at limit **
  10  Prefactor     .10000E-03    92.159        .99299E-05** at limit **
  11  Prefactor     .10000E-03    8.4496       -.34720E-08** at limit **
  12  Prefactor     2.6021        .40093        .62194E-08    .41891E-03
  13  Prefactor     10.079        15.272       -.39939E-06   -.29490E-04
  14  norm          3.7872        1.4495       -.37035E-07   -.20516E-03
  15  Prefactor     18.225        17.317        .13462E-07   -.33750E-05
  16  norm          .20428        .72544       -.56127E-06   -.13638E-02
  17  Prefactor     .10000E-03    102.99       -.26384E-04** at limit **
  18  Prefactor     .10000E-03    31.537        .66258E-06** at limit **
  19  Prefactor     .10000E-03    8.1489        .10798E-06** at limit **
  20  Prefactor     1.0744        .22934       -.34105E-08    .20155E-02
  21  Prefactor     .10000E-03    4.9326       -.39420E-07** at limit **
  22  Prefactor     25.217        16.359        .11990E-06    .17349E-04
  23  Prefactor     8.2987        19.503       -.40484E-06   -.21887E-04
  24  Normalizat    1.4842        .24573        .16366E-06    .59145E-04
  25  Prefactor     .73897        .11421        .83175E-07    .39496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.29569
  Prefactor  = 0.0001
  norm       = 1.93698
  Prefactor  = 0.0001
  norm       = 0.715628
  Prefactor  = 20.058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60213
  Prefactor  = 10.0789
  norm       = 3.78718
  Prefactor  = 18.2252
  norm       = 0.204276
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07442
  Prefactor  = 0.0001
  Prefactor  = 25.2171
  Prefactor  = 8.2987
  Normalizat = 1.48421
  Prefactor  = 0.738967
 **********
 **   18 **HESSE 
 **********

 FCN=   8699.789     FROM HESSE     STATUS=OK           433 CALLS     3357 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2957        2.7203        .10608E-03   -1.5248    
   3  Prefactor     .10000E-03    129.48        .41954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9370        1.2237        .79223E-04   -1.5430    
   5  Prefactor     .10000E-03    74.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .71563        .85377        .10229E-02   -1.5539    
   7  Prefactor     20.058        22.052        .89432E-04   -1.4812    
   8  norm          .10000E-03    1.8097        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    92.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6021        .40504        .21348E-04   -1.5385    
  13  Prefactor     10.079        15.376        .12620E-03   -1.5073    
  14  norm          3.7872        1.4511        .65256E-04   -1.5319    
  15  Prefactor     18.225        17.338        .93821E-04   -1.4854    
  16  norm          .20428        1.0268        .14784E-02   -1.5618    
  17  Prefactor     .10000E-03    103.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0744        .22990        .19202E-04   -1.5501    
  21  Prefactor     .10000E-03    4.9428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.217        16.378        .79776E-04   -1.4703    
  23  Prefactor     8.2987        19.506        .13920E-03   -1.5132    
  24  Normalizat    1.4842        .29337        .34609E-03   -.78223    
  25  Prefactor     .73897        .13637        .22484E-03   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48583e-10
Minuit parameter uncertainties:
  1  1.23424e-06
  2  2.72031
  3  7.1688e-05
  4  1.2237
  5  0.000150586
  6  0.853786
  7  22.0605
  8  3.44168e-07
  9  3.08948e-07
  10  1.30578e-05
  11  2.1529e-06
  12  0.405038
  13  15.3816
  14  1.45113
  15  17.3431
  16  0.915752
  17  0.0007011
  18  8.56459e-05
  19  9.89535e-07
  20  0.2299
  21  5.24196e-07
  22  16.3807
  23  19.5207
  24  0.293702
  25  0.136435
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.153e-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:  7.390e-01  1.364e-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.484e+00  2.937e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287466/likelihoodResults_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.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) = 8699.79004589
delta logL = -0.000560427191886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8699.78948578
delta logL = -3.13970303978e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8166       1.0000          .0000       10.000    
     3 'Normalizat'    1.4840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73906       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=   8699.789     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    305.12        .18142E-02** at limit **
   2  Index         2.8601        6.3923        .50000       -.43841E-05
   3  Normalizat    1.4842        .37428E-01    .34609E-03    .16096E-04
   4  Prefactor     .73897        .17969E-01    .22484E-03    .19315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100311
  Index      = 2.86009
  Normalizat = 1.48421
  Prefactor  = 0.738967
 **********
 **   18 **HESSE 
 **********

 FCN=   8699.789     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    1198.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8601        7.3193        .50000       -.44226    
   3  Normalizat    1.4842        .92099E-01    .13844E-04   -.78223    
   4  Prefactor     .73897        .44215E-01    .89936E-05   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68783e-08
Minuit parameter uncertainties:
  1  0.0394413
  2  2409.07
  3  0.0921095
  4  0.0442174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287466': 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) = 8699.78948543
delta logL = 3.81623976864e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.003e-04  3.944e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.860e+00  2.409e+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:  7.390e-01  4.422e-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.484e+00  9.211e-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/287466/cmap_HighResolution_391478401_391737601_4FGL_J2225.6+2120_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-28 10:56:56.736520', job_id='287466', GAL2='0.74', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632851816.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='587' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 287466: <4FGL_J2225.6+2120_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin587 336.414 21.3418 391478401 391737601 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

