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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1504
RA = 336.414, Dec = 21.3418
tmin = 629164801, tmax = 629424001
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='293806', job_status='RUN', time_executed='2021-09-28 11:03:34.265934', time_epoch_executed='1632852214.27' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293806

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293806/ft1_4FGL_J2225.6+2120_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293806/ft1_4FGL_J2225.6+2120_daily_bin1504.fits outfile=/scratch/kocevski/293806/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1504.fits ra=336.414 dec=21.3418 rad=12.0 tmin=629164801.0 tmax=629424001.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.64
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.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/293806/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1504.fits evtable="EVENTS" outfile="/scratch/kocevski/293806/ft1_filtered_4FGL_J2225.6+2120_daily_bin1504.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293806/ft1_filtered_4FGL_J2225.6+2120_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/293806/ltcube_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.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/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits
.....................!
real 12.23
user 11.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293806/ft1_filtered_4FGL_J2225.6+2120_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/293806/ltcube_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.fits outfile=/scratch/kocevski/293806/expmap_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.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/293806/ltcube_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.fits
.....................!
real 190.93
user 185.96
sys 4.64

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/293806/ft1_filtered_4FGL_J2225.6+2120_daily_bin1504.fits scfile=/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits outfile=/scratch/kocevski/293806/cmap_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.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.65
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293806/ft1_filtered_4FGL_J2225.6+2120_daily_bin1504.fits scfile=/scratch/kocevski/293806/ft2_4FGL_J2225.6+2120_daily_bin1504.fits outfile=/scratch/kocevski/293806/cmap_HighResolution_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14470E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .91114       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
    14 'norm      '    .81862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11284E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8478       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1773       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96830       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=   8282.764     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2559 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.286       -.10813E-03** at limit **
   2  norm          .10000E-03    .99665        .18033E-07** at limit **
   3  Prefactor     .10000E-03    19.457       -.11516E-06** at limit **
   4  norm          .10000E-03    .49087       -.56085E-07** at limit **
   5  Prefactor     .10019E-03    465.72       -.29138E-03** at limit **
   6  norm          .91123        1.0553       -.27477E-07    .13010E-03
   7  Prefactor     .10000E-03    14.317        .86949E-07** at limit **
   8  norm          .10000E-03    2.3567       -.23654E-08** at limit **
   9  Prefactor     6.5226        12.979       -.32106E-05   -.59963E-04
  10  Prefactor     .10000E-03    131.03        .16776E-03** at limit **
  11  Prefactor     16.426        13.947        .18717E-06    .10044E-03
  12  Prefactor     .28880        .20149        .14969E-07   -.10057E-02
  13  Prefactor     14.151        10.057        .23682E-06    .80599E-05
  14  norm          .81873        .73750       -.80607E-07   -.10618E-02
  15  Prefactor     .10000E-03    11.676       -.20191E-06** at limit **
  16  norm          2.3843        1.5565        .17222E-06    .11511E-03
  17  Prefactor     .10000E-03    60.833        .13212E-04** at limit **
  18  Prefactor     17.060        13.948       -.33733E-05   -.43212E-04
  19  Prefactor     .10000E-03    8.2707       -.14157E-06** at limit **
  20  Prefactor     .26145        .12686       -.11508E-09   -.12239E-02
  21  Prefactor     .10000E-03    3.8445        .74109E-08** at limit **
  22  Prefactor     .10000E-03    5.1974       -.58787E-07** at limit **
  23  Prefactor     6.8409        23.899        .70385E-06   -.22905E-04
  24  Normalizat    1.1773        .22727        .12749E-05    .48656E-03
  25  Prefactor     .96826        .10761        .45626E-06    .11159E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100192
  norm       = 0.91123
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.52261
  Prefactor  = 0.000100001
  Prefactor  = 16.4259
  Prefactor  = 0.288797
  Prefactor  = 14.1508
  norm       = 0.818725
  Prefactor  = 0.0001
  norm       = 2.3843
  Prefactor  = 0.0001
  Prefactor  = 17.0602
  Prefactor  = 0.0001
  Prefactor  = 0.261449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84093
  Normalizat = 1.17729
  Prefactor  = 0.968259
 **********
 **   18 **HESSE 
 **********

 FCN=   8282.764     FROM HESSE     STATUS=OK           431 CALLS     2990 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6541        .17595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2986        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10019E-03    472.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .91123        .96154        .94493E-03   -1.5517    
   7  Prefactor     .10000E-03    14.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3738        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5226        12.909        .15715E-03   -1.5197    
  10  Prefactor     .10000E-03    131.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.426        14.091        .98821E-04   -1.4897    
  12  Prefactor     .28880        .19440        .31444E-03   -1.5601    
  13  Prefactor     14.151        10.058        .10648E-03   -1.4955    
  14  norm          .81873        .70330        .71690E-03   -1.5527    
  15  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3843        1.5536        .87378E-04   -1.5399    
  17  Prefactor     .10000E-03    61.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.060        13.946        .96972E-04   -1.4882    
  19  Prefactor     .10000E-03    8.2807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26145        .12562        .21638E-04   -1.5606    
  21  Prefactor     .10000E-03    3.8535        .17426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8409        23.886        .15332E-03   -1.5185    
  24  Normalizat    1.1773        .27487        .33500E-03   -.87308    
  25  Prefactor     .96826        .13104        .18428E-03   -.93795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24997e-09
Minuit parameter uncertainties:
  1  0.000123066
  2  2.14458e-06
  3  4.14109e-05
  4  8.78779e-06
  5  0.0192141
  6  0.961556
  7  3.13845e-05
  8  9.60656e-07
  9  12.9143
  10  0.000829381
  11  14.094
  12  0.194402
  13  10.0589
  14  0.703308
  15  1.33116e-05
  16  1.55362
  17  0.000185671
  18  13.9487
  19  5.27843e-06
  20  0.125624
  21  1.75801e-06
  22  4.58229e-06
  23  23.9192
  24  0.275205
  25  0.13108
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.643e+01  1.409e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.683e-01  1.311e-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.177e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 6.73e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.28e-05

TS (Fixed Index): 1.80
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/293806/likelihoodResults_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.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) = 8281.61448451
delta logL = 1.14932899671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8281.56364409
delta logL = 1.20016941934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7564       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1900       1.0000          .0000       10.000    
     3 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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=   8281.564     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7512        15.454        .79063E-02    .52784E-03
   2  Index         5.1920        3.4293        .16577        .13166E-03
   3  Normalizat    1.0882        .66789E-01    .78259E-01    .22719E-04
   4  Prefactor     1.0048        .33823E-01    .44226E-01    .90801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75121
  Index      = 5.19196
  Normalizat = 1.08816
  Prefactor  = 1.00481
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.564     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7512        29.470        .66702E-04   -1.5443    
   2  Index         5.1920        7.3851        .64146E-02    .38401E-01
   3  Normalizat    1.0882        .24661        .34641E-03   -.90133    
   4  Prefactor     1.0048        .11920        .18130E-03   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62794e-07
Minuit parameter uncertainties:
  1  14.3756
  2  5.97296
  3  0.246873
  4  0.119234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293806': 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) = 8281.56364347
delta logL = 1.20017004412

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.751e+00  1.438e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  5.192e+00  5.973e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.005e+00  1.192e-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.088e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 336.414 21.342
Photon Index (Free Index): 5.19 +/- 5.97
Photon Flux (Free Index): 1.20e-07 +/- 8.87e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.69e-05

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/293806/cmap_HighResolution_629164801_629424001_4FGL_J2225.6+2120_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='6.73e-08', energy_flux2='1.57e-05', photon_flux_error='5.77e-08', dlogl='1.20e+00', energy_flux='1.50e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-28 11:16:28.650782', photon_index_error2='5.97', photon_index2='5.19', ts='1.80', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.69e-05', EG='1.18', time_epoch_completed='1632852988.65', return_code='0', job_id='293806', GAL2='1.00', EG2='1.09', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='8.87e-08', ts2='4.53', photon_index='2.81' WHERE bin_id='1504' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 293806: <4FGL_J2225.6+2120_daily_bin1504> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:46 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:00:47 2021
Terminated at Tue Sep 28 11:16:29 2021
Results reported at Tue Sep 28 11:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1504 336.414 21.3418 629164801 629424001 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

