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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1411
RA = 336.414, Dec = 21.3418
tmin = 605059201, tmax = 605318401
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='293609', job_status='RUN', time_executed='2021-09-28 11:03:30.781644', time_epoch_executed='1632852210.78' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293609/ft1_4FGL_J2225.6+2120_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293609/ft1_4FGL_J2225.6+2120_daily_bin1411.fits outfile=/scratch/kocevski/293609/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1411.fits ra=336.414 dec=21.3418 rad=12.0 tmin=605059201.0 tmax=605318401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.37
user 5.07
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293609/ft1_filtered_4FGL_J2225.6+2120_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/293609/ltcube_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.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/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits
.....................!
real 16.20
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293609/ft1_filtered_4FGL_J2225.6+2120_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/293609/ltcube_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.fits outfile=/scratch/kocevski/293609/expmap_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.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/293609/ltcube_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.fits
.....................!
real 191.16
user 185.04
sys 5.57

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/293609/ft1_filtered_4FGL_J2225.6+2120_daily_bin1411.fits scfile=/scratch/kocevski/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits outfile=/scratch/kocevski/293609/cmap_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293609/ft1_filtered_4FGL_J2225.6+2120_daily_bin1411.fits scfile=/scratch/kocevski/293609/ft2_4FGL_J2225.6+2120_daily_bin1411.fits outfile=/scratch/kocevski/293609/cmap_HighResolution_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.074       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.736       1.0000         .10000E-03   10000.    
     4 'norm      '    .90880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.313       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .61047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .90496       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9420       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70914       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0441       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=   6989.690     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2932 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.010        111.84       -.96579E-04    .21624E-05
   2  norm          1.2325        1.8081        .39210E-06   -.23187E-03
   3  Prefactor     47.739        32.381        .48119E-05    .19199E-04
   4  norm          .90883        .79496       -.49097E-07   -.78384E-04
   5  Prefactor     .10000E-03    26.616        .10887E-05** at limit **
   6  norm          .10000E-03    .31323       -.39530E-07** at limit **
   7  Prefactor     .10000E-03    4.7467        .88012E-07** at limit **
   8  norm          .10000E-03    2.6362        .70569E-07** at limit **
   9  Prefactor     10.696        15.355       -.24355E-05   -.35257E-04
  10  Prefactor     19.919        46.272       -.25876E-04    .25599E-05
  11  Prefactor     .10000E-03    7.5072       -.25853E-05** at limit **
  12  Prefactor     .39496        .19696       -.16434E-07   -.13447E-02
  13  Prefactor     .10000E-03    8.0585        .43253E-05** at limit **
  14  norm          2.5799        1.1677        .45064E-07    .81112E-04
  15  Prefactor     .10000E-03    14.280        .25813E-06** at limit **
  16  norm          .10000E-03    .80601       -.47957E-07** at limit **
  17  Prefactor     13.315        18.223        .22405E-05   -.15640E-04
  18  Prefactor     12.313        10.787       -.75104E-07    .45233E-04
  19  Prefactor     3.7915        41.014        .37313E-04    .15287E-04
  20  Prefactor     .61041        .20099       -.19212E-06    .43275E-02
  21  Prefactor     .10000E-03    9.2620       -.22601E-05** at limit **
  22  Prefactor     .91224        9.0333       -.36163E-05   -.25617E-04
  23  Prefactor     2.9435        36.390        .22872E-05   -.44603E-04
  24  Normalizat    .70933        .22760       -.13611E-05    .15406E-03
  25  Prefactor     1.0440        .11493        .16172E-05   -.10974E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0102
  norm       = 1.23254
  Prefactor  = 47.7392
  norm       = 0.908829
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6962
  Prefactor  = 19.919
  Prefactor  = 0.0001
  Prefactor  = 0.394955
  Prefactor  = 0.0001
  norm       = 2.5799
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3151
  Prefactor  = 12.3127
  Prefactor  = 3.7915
  Prefactor  = 0.610406
  Prefactor  = 0.0001
  Prefactor  = 0.912239
  Prefactor  = 2.94353
  Normalizat = 0.709334
  Prefactor  = 1.04395
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.690     FROM HESSE     STATUS=OK           437 CALLS     3369 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.010        111.91        .62547E-04   -1.4426    
   2  norm          1.2325        1.7628        .12838E-03   -1.5486    
   3  Prefactor     47.739        32.192        .58036E-04   -1.4325    
   4  norm          .90883        .77193        .67753E-03   -1.5517    
   5  Prefactor     .10000E-03    26.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .48386        .90693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7531        .17789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6748        .13252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.696        15.356        .12248E-03   -1.5054    
  10  Prefactor     19.919        46.286        .89712E-04   -1.4815    
  11  Prefactor     .10000E-03    7.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39496        .19421        .24454E-04   -1.5582    
  13  Prefactor     .10000E-03    8.1186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5799        1.1663        .58238E-04   -1.5387    
  15  Prefactor     .10000E-03    14.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .81563        .73167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.315        18.227        .10978E-03   -1.4978    
  18  Prefactor     12.313        10.770        .11416E-03   -1.5006    
  19  Prefactor     3.7915        40.746        .20770E-03   -1.5319    
  20  Prefactor     .61041        .19948        .18950E-04   -1.5552    
  21  Prefactor     .10000E-03    9.5517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .91224        31.597        .46480E-02   -1.5517    
  23  Prefactor     2.9435        36.388        .23679E-03   -1.5365    
  24  Normalizat    .70933        .25774        .38388E-03   -1.0353    
  25  Prefactor     1.0440        .13217        .16907E-03   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02836e-08
Minuit parameter uncertainties:
  1  112.493
  2  1.76283
  3  32.2041
  4  0.771943
  5  6.52987e-06
  6  4.88524e-06
  7  4.42756e-06
  8  2.51648e-06
  9  15.3619
  10  46.37
  11  1.02367e-05
  12  0.194212
  13  1.53441e-05
  14  1.16629
  15  6.96138e-06
  16  2.99115e-07
  17  18.2346
  18  10.7716
  19  24.8799
  20  0.199477
  21  3.83008e-06
  22  10.7432
  23  20.7141
  24  0.258186
  25  0.132208
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.024e-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:  1.044e+00  1.322e-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:  7.093e-01  2.582e-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: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293609/likelihoodResults_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.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) = 6989.69023132
delta logL = -0.000627370461189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6989.68960412
delta logL = -1.63868207892e-07

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    281.28        .18142E-02** at limit **
   2  Index         2.8613        8.0617        .50000       -.44442E-05
   3  Normalizat    .70933        .33855E-01    .38389E-03    .22744E-04
   4  Prefactor     1.0440        .17933E-01    .16907E-03    .35301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100298
  Index      = 2.86129
  Normalizat = 0.709331
  Prefactor  = 1.04396
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    1101.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8613        7.0217        .50000       -.44199    
   3  Normalizat    .70933        .83802E-01    .15355E-04   -1.0353    
   4  Prefactor     1.0440        .44389E-01    .67630E-05   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91215e-08
Minuit parameter uncertainties:
  1  0.0369037
  2  2495.16
  3  0.0838173
  4  0.0443909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293609': 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) = 6989.68960392
delta logL = 3.90491550206e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.003e-04  3.690e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.861e+00  2.495e+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:  1.044e+00  4.439e-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.093e-01  8.382e-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/293609/cmap_HighResolution_605059201_605318401_4FGL_J2225.6+2120_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-28 11:15:45.177869', job_id='293609', GAL2='1.04', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632852945.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1411' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 293609: <4FGL_J2225.6+2120_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1411 336.414 21.3418 605059201 605318401 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 :                                   730.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

