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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1523
RA = 336.414, Dec = 21.3418
tmin = 634089601, tmax = 634348801
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='293839', job_status='RUN', time_executed='2021-09-28 11:01:53.044520', time_epoch_executed='1632852113.04' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293839/ft1_4FGL_J2225.6+2120_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293839/ft2_4FGL_J2225.6+2120_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293839/ft1_4FGL_J2225.6+2120_daily_bin1523.fits outfile=/scratch/kocevski/293839/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1523.fits ra=336.414 dec=21.3418 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.91
user 4.66
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/293839/ft2_4FGL_J2225.6+2120_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/293839/ltcube_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.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/293839/ft2_4FGL_J2225.6+2120_daily_bin1523.fits
.....................!
real 12.79
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/293839/ft2_4FGL_J2225.6+2120_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/293839/ltcube_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.fits outfile=/scratch/kocevski/293839/expmap_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.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/293839/ltcube_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.fits
.....................!
real 190.67
user 185.75
sys 4.42

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/293839/ft1_filtered_4FGL_J2225.6+2120_daily_bin1523.fits scfile=/scratch/kocevski/293839/ft2_4FGL_J2225.6+2120_daily_bin1523.fits outfile=/scratch/kocevski/293839/cmap_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.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.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.093       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.008       1.0000         .10000E-03   10000.    
     6 'norm      '    .50115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.499       1.0000         .10000E-03   10000.    
     8 'norm      '    .61423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .64622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3979       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80881       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=   7061.710     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2962 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.281       -.70605E-04** at limit **
   2  norm          3.3633        2.9159        .22288E-06   -.63498E-04
   3  Prefactor     30.088        34.199       -.49191E-05    .86434E-04
   4  norm          .10000E-03    .57078       -.13173E-06** at limit **
   5  Prefactor     65.997        59.638       -.11132E-04    .49233E-04
   6  norm          .50104        1.0121        .68014E-07    .56186E-04
   7  Prefactor     21.496        17.687        .29139E-06    .60178E-04
   8  norm          .57435        3.8451       -.32665E-05    .13963E-02
   9  Prefactor     .10000E-03    18.407       -.10043E-04** at limit **
  10  Prefactor     .10000E-03    55.543        .57884E-04** at limit **
  11  Prefactor     6.6651        17.458       -.15905E-06    .23772E-03
  12  Prefactor     .10000E-03    .83578E-01   -.29550E-07** at limit **
  13  Prefactor     .10000E-03    3.3214       -.11198E-06** at limit **
  14  norm          .10000E-03    .36503       -.10026E-06** at limit **
  15  Prefactor     .10000E-03    13.585       -.39679E-05** at limit **
  16  norm          1.7218        1.4568        .59248E-07    .10565E-02
  17  Prefactor     .10000E-03    16.811        .11467E-04** at limit **
  18  Prefactor     .10000E-03    28.241       -.24628E-04** at limit **
  19  Prefactor     .10000E-03    5.8291        .62923E-08** at limit **
  20  Prefactor     .64620        .19785       -.24692E-07    .65091E-03
  21  Prefactor     .10000E-03    9.2266        .16117E-05** at limit **
  22  Prefactor     .10000E-03    17.030        .49097E-05** at limit **
  23  Prefactor     .10000E-03    34.523        .16937E-04** at limit **
  24  Normalizat    1.3982        .24689        .19232E-05    .60708E-03
  25  Prefactor     .80875        .11492        .66035E-06    .85429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.36331
  Prefactor  = 30.0876
  norm       = 0.0001
  Prefactor  = 65.9971
  norm       = 0.501042
  Prefactor  = 21.4959
  norm       = 0.57435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.646205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39822
  Prefactor  = 0.808755
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.710     FROM HESSE     STATUS=OK           425 CALLS     3387 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3633        2.9008        .12285E-03   -1.5341    
   3  Prefactor     30.088        34.005        .73037E-04   -1.4610    
   4  norm          .10000E-03    1.3226        .12323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.997        59.676        .49398E-04   -1.4081    
   6  norm          .50104        .89908        .11123E-02   -1.5566    
   7  Prefactor     21.496        17.677        .86385E-04   -1.4780    
   8  norm          .57435        16.389        .29819E-02   -1.5556    
   9  Prefactor     .10000E-03    18.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6651        17.451        .15538E-03   -1.5192    
  12  Prefactor     .10000E-03    .22295        .47111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3233        .14957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .50028        .98510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7218        1.4635        .90751E-04   -1.5446    
  17  Prefactor     .10000E-03    16.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .64620        .19798        .19603E-04   -1.5547    
  21  Prefactor     .10000E-03    9.2739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3982        .30120        .31392E-03   -.80680    
  25  Prefactor     .80875        .14059        .19467E-03   -.99406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33678e-08
Minuit parameter uncertainties:
  1  8.0758e-05
  2  2.90097
  3  34.0271
  4  4.68747e-06
  5  59.7302
  6  0.899103
  7  17.6811
  8  6.13741
  9  0.000103997
  10  6.70391e-05
  11  17.4643
  12  3.83422e-07
  13  1.15519e-06
  14  5.45126e-06
  15  1.92022e-05
  16  1.46357
  17  9.53481e-06
  18  0.000185284
  19  2.18988e-06
  20  0.197978
  21  1.78617e-05
  22  0.000104959
  23  0.000151294
  24  0.30158
  25  0.14065
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.665e+00  1.746e+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:  8.088e-01  1.406e-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.398e+00  3.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293839/likelihoodResults_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.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) = 7061.67835031
delta logL = 0.0316484465975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7061.67699179
delta logL = 0.0330069682195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3135       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1377       1.0000          .0000       10.000    
     3 'Normalizat'    1.3860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81279       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=   7061.677     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3099        16.396        .15975E-03    .11781E-02
   2  Index         3.1383        1.4042        .15353E-01    .32169E-03
   3  Normalizat    1.3868        .29589        .31500E-03   -.12599E-02
   4  Prefactor     .81241        .14002        .19427E-03   -.14629E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30994
  Index      = 3.13826
  Normalizat = 1.38677
  Prefactor  = 0.812413
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.677     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3099        15.279        .63900E-05   -1.5206    
   2  Index         3.1383        1.3101        .61412E-03   -.38154    
   3  Normalizat    1.3868        .29654        .63000E-04   -.81012    
   4  Prefactor     .81241        .14024        .38855E-04   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35771e-08
Minuit parameter uncertainties:
  1  15.2883
  2  1.32811
  3  0.296903
  4  0.140305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293839': 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) = 7061.67698757
delta logL = 0.033011183863

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.310e+00  1.529e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.138e+00  1.328e+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:  8.124e-01  1.403e-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.387e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/293839/cmap_HighResolution_634089601_634348801_4FGL_J2225.6+2120_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-28 11:14:10.766024', job_id='293839', GAL2='0.81', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1632852850.77', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.30e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1523' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 293839: <4FGL_J2225.6+2120_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1523 336.414 21.3418 634089601 634348801 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.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

