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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1243
RA = 336.414, Dec = 21.3418
tmin = 561513601, tmax = 561772801
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='290903', job_status='RUN', time_executed='2021-09-28 10:59:00.846996', time_epoch_executed='1632851940.85' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290903/ft1_4FGL_J2225.6+2120_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290903/ft2_4FGL_J2225.6+2120_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290903/ft1_4FGL_J2225.6+2120_daily_bin1243.fits outfile=/scratch/kocevski/290903/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1243.fits ra=336.414 dec=21.3418 rad=12.0 tmin=561513601.0 tmax=561772801.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 2.86
user 2.64
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290903/ft1_filtered_4FGL_J2225.6+2120_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/290903/ft2_4FGL_J2225.6+2120_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/290903/ltcube_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.fits outfile=/scratch/kocevski/290903/expmap_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.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/290903/ltcube_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.fits
.....................!
real 140.27
user 135.86
sys 4.16

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/290903/ft1_filtered_4FGL_J2225.6+2120_daily_bin1243.fits scfile=/scratch/kocevski/290903/ft2_4FGL_J2225.6+2120_daily_bin1243.fits outfile=/scratch/kocevski/290903/cmap_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.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.46
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290903/ft1_filtered_4FGL_J2225.6+2120_daily_bin1243.fits scfile=/scratch/kocevski/290903/ft2_4FGL_J2225.6+2120_daily_bin1243.fits outfile=/scratch/kocevski/290903/cmap_HighResolution_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.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.41
user 0.27
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.886       1.0000         .10000E-03   10000.    
     6 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8190       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10363E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9138       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2122       1.0000         .10000E-03   10000.    
    14 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.456       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.200       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4139       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70719       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=   9585.027     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2943 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.558       -.86328E-05** at limit **
   2  norm          1.7281        2.2332       -.77688E-06   -.10639E-02
   3  Prefactor     .10000E-03    27.567       -.97552E-06** at limit **
   4  norm          4.1938        2.5765        .18782E-07   -.20332E-03
   5  Prefactor     61.890        45.482        .32738E-05    .39953E-04
   6  norm          .10000E-03    .33074       -.26056E-06** at limit **
   7  Prefactor     9.7989        23.792       -.19715E-05    .25547E-04
   8  norm          .10000E-03    1.5467       -.69140E-07** at limit **
   9  Prefactor     .10029E-03    7.5598       -.36293E-06** at limit **
  10  Prefactor     88.701        138.07       -.63587E-04    .41554E-05
  11  Prefactor     14.090        15.535        .28364E-05    .78913E-04
  12  Prefactor     1.9135        .24990       -.52639E-07    .24158E-02
  13  Prefactor     5.2126        5.3347        .15060E-05   -.87160E-04
  14  norm          .10000E-03    .57133        .23213E-06** at limit **
  15  Prefactor     10.447        18.306        .16167E-05   -.11551E-04
  16  norm          2.9254        1.5539        .45309E-07    .28920E-03
  17  Prefactor     .10000E-03    7.4197        .90871E-06** at limit **
  18  Prefactor     1.6412        7.4207       -.33555E-05   -.58343E-03
  19  Prefactor     .10000E-03    23.979        .24836E-06** at limit **
  20  Prefactor     .85283        .15885       -.43275E-07    .10229E-02
  21  Prefactor     .10000E-03    7.1878       -.14609E-05** at limit **
  22  Prefactor     .10000E-03    6.7810        .47754E-06** at limit **
  23  Prefactor     23.184        30.852       -.13711E-04    .18714E-04
  24  Normalizat    1.4142        .22864        .46004E-05    .58678E-04
  25  Prefactor     .70703        .10301        .37045E-06    .44740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.7281
  Prefactor  = 0.0001
  norm       = 4.19376
  Prefactor  = 61.89
  norm       = 0.0001
  Prefactor  = 9.79892
  norm       = 0.0001
  Prefactor  = 0.00010029
  Prefactor  = 88.7013
  Prefactor  = 14.0903
  Prefactor  = 1.91349
  Prefactor  = 5.21262
  norm       = 0.0001
  Prefactor  = 10.4475
  norm       = 2.92541
  Prefactor  = 0.0001
  Prefactor  = 1.64123
  Prefactor  = 0.0001
  Prefactor  = 0.852833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1844
  Normalizat = 1.41417
  Prefactor  = 0.707028
 **********
 **   18 **HESSE 
 **********

 FCN=   9585.027     FROM HESSE     STATUS=OK           431 CALLS     3374 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7281        2.2232        .15795E-03   -1.5445    
   3  Prefactor     .10000E-03    27.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1938        2.5752        .11872E-03   -1.5298    
   5  Prefactor     61.890        45.480        .51007E-04   -1.4133    
   6  norm          .10000E-03    .53809        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7989        23.717        .12788E-03   -1.5082    
   8  norm          .10000E-03    1.5525        .11888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10029E-03    82.133        .50290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     88.701        137.57        .21323E-03   -1.3822    
  11  Prefactor     14.090        15.659        .10668E-03   -1.4957    
  12  Prefactor     1.9135        .24713        .16362E-04   -1.5431    
  13  Prefactor     5.2126        5.3291        .17607E-03   -1.5251    
  14  norm          .10000E-03    .59437        .14431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.447        18.270        .12391E-03   -1.5061    
  16  norm          2.9254        1.5512        .85012E-04   -1.5366    
  17  Prefactor     .10000E-03    7.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6412        7.4715        .32985E-03   -1.5452    
  19  Prefactor     .10000E-03    24.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .85283        .15916        .15897E-04   -1.5523    
  21  Prefactor     .10000E-03    7.2333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.184        30.853        .83161E-04   -1.4745    
  24  Normalizat    1.4142        .26955        .33607E-03   -.80220    
  25  Prefactor     .70703        .12199        .22088E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75475e-09
Minuit parameter uncertainties:
  1  4.12164e-05
  2  2.22335
  3  6.13961e-05
  4  2.57529
  5  45.5053
  6  2.0069e-05
  7  23.7393
  8  9.61635e-06
  9  0.00976916
  10  138.066
  11  15.664
  12  0.24713
  13  5.32955
  14  1.77872e-05
  15  18.2801
  16  1.5512
  17  6.71019e-06
  18  7.00481
  19  0.000102662
  20  0.159157
  21  1.76153e-05
  22  3.49272e-05
  23  30.8739
  24  0.269824
  25  0.122033
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.409e+01  1.566e+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:  7.070e-01  1.220e-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.414e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 6.41e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/290903/likelihoodResults_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.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) = 9582.68243586
delta logL = 2.34428552815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9582.15412895
delta logL = 2.87259243789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30627E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76020       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=   9582.154     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      378 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30606E-02    .39101E-01    .62640E-03    .14694E-01
   2  Index        10.0000        6.6997        .50000    ** at limit **
   3  Normalizat    1.2831        .14356        .78942E-01    .30039E-04
   4  Prefactor     .76032        .69196E-01    .43197E-01    .35961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00306059
  Index      = 10
  Normalizat = 1.28305
  Prefactor  = 0.760324
 **********
 **   18 **HESSE 
 **********

 FCN=   9582.154     FROM HESSE     STATUS=OK            39 CALLS      417 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30606E-02    .17453E-02    .26295E-04   -1.5697    
   2  Index        10.0000        .43943        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2831        .26180        .34943E-03   -.84074    
   4  Prefactor     .76032        .12467        .21386E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58585e-10
Minuit parameter uncertainties:
  1  0.00174531
  2  1.05613e-05
  3  0.262067
  4  0.124715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290903': 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) = 9582.15411971
delta logL = 2.87260168028

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.061e-03  1.745e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.000e+01  1.056e-05  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.603e-01  1.247e-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.283e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 336.414 21.342
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.58e-07 +/- 8.71e-08
Energy Flux (Free Index): 1.76e-05 +/- 9.80e-06

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/290903/cmap_HighResolution_561513601_561772801_4FGL_J2225.6+2120_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='1.76e-05', photon_flux_error='6.41e-08', dlogl='2.87e+00', energy_flux='1.28e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-28 11:09:56.384086', photon_index_error2='0.00', photon_index2='10.00', ts='1.06', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='9.80e-06', EG='1.41', time_epoch_completed='1632852596.38', return_code='0', job_id='290903', GAL2='0.76', EG2='1.28', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='8.71e-08', ts2='7.27', photon_index='2.81' WHERE bin_id='1243' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:09:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 290903: <4FGL_J2225.6+2120_daily_bin1243> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1243> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:28 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:29 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:55:29 2021
Terminated at Tue Sep 28 11:09:57 2021
Results reported at Tue Sep 28 11:09:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1243 336.414 21.3418 561513601 561772801 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

