/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 137 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 = 7653
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin35
RA = 230.545, Dec = 31.7395
tmin = 248400001, tmax = 248659201
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='506109', job_status='RUN', time_executed='2021-09-12 02:07:53.772340', time_epoch_executed='1631437673.77' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506109/ft1_4FGL_J1522.1+3144_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506109/ft1_4FGL_J1522.1+3144_daily_bin35.fits outfile=/scratch/kocevski/506109/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin35.fits ra=230.545 dec=31.7395 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.43
user 1.24
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.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/506109/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.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.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/506109/ltcube_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.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/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits
.....................!
real 13.03
user 12.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/506109/ltcube_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits outfile=/scratch/kocevski/506109/expmap_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.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/506109/ltcube_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits
.....................!
real 191.79
user 185.90
sys 5.45

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1522.1+3144 @ 230.545 31.7395

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits outfile=/scratch/kocevski/506109/cmap_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.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=230.545 yref=31.7395 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits outfile=/scratch/kocevski/506109/cmap_HighResolution_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.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=230.545 yref=31.7395 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506109/Model_4FGL_J1522.1+3144_daily_bin35.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/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits.....................!
real 46.29
user 44.80
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits', '/scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits', expMap='/scratch/kocevski/506109/expmap_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits', expCube='/scratch/kocevski/506109/ltcube_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506109/Model_4FGL_J1522.1+3144_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1522.1+3144'

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/506109/ft1_filtered_4FGL_J1522.1+3144_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/506109/ft2_4FGL_J1522.1+3144_daily_bin35.fits
Exposure map: /scratch/kocevski/506109/expmap_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits
Exposure cube: /scratch/kocevski/506109/ltcube_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506109/Model_4FGL_J1522.1+3144_daily_bin35.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) = 5711.74972935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .35133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.699       1.0000         .10000E-03   10000.    
     5 'norm      '    12.790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .37308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17262E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7345       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7676       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1418       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3803       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5711.741     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2716 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1307        .10676E-05** at limit **
   2  Prefactor     .10000E-03    28.863        .11978E-04** at limit **
   3  norm          .38929        3.1710       -.18897E-05    .57550E-03
   4  Prefactor     22.699        28.491       -.83475E-06    .60213E-05
   5  norm          12.790        9.7203       -.28472E-07   -.46955E-04
   6  Prefactor     .10000E-03    8.7489        .67080E-06** at limit **
   7  Prefactor     .10000E-03    4.7148        .68161E-07** at limit **
   8  Prefactor     .10000E-03    25.795       -.97079E-06** at limit **
   9  norm          .37133        1.7564        .16412E-05   -.82204E-03
  10  Prefactor     91.897        90.106       -.22895E-04   -.13141E-03
  11  Prefactor     .10000E-03    2.4591       -.97356E-07** at limit **
  12  Prefactor     14.088        23.641       -.90569E-05   -.61088E-04
  13  Prefactor     .10001E-03    47.105        .11964E-05** at limit **
  14  norm          7.1598        2.2497        .39542E-07   -.98863E-04
  15  Prefactor     5.7350        13.115       -.96608E-06   -.65039E-04
  16  Prefactor     .10000E-03    25.218       -.10322E-04** at limit **
  17  Prefactor     .10000E-03    5.9538       -.11149E-06** at limit **
  18  norm          .10000E-03    8.2016       -.24928E-05** at limit **
  19  Prefactor     2.5551        2.0206       -.12559E-06   -.45776E-04
  20  Prefactor     2.7479        43.917       -.25025E-04   -.39134E-04
  21  Prefactor     8.1445        12.802       -.81840E-06   -.34461E-04
  22  Prefactor     1.3805        3.1939       -.84067E-06   -.74778E-03
  23  Normalizat    1.1324        .20551        .30374E-05   -.11760E-03
  24  Prefactor     .99746        .15793        .64018E-06    .16245E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.389289
  Prefactor  = 22.6992
  norm       = 12.7904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.37133
  Prefactor  = 91.8974
  Prefactor  = 0.0001
  Prefactor  = 14.0884
  Prefactor  = 0.00010001
  norm       = 7.15984
  Prefactor  = 5.73503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.55513
  Prefactor  = 2.74789
  Prefactor  = 8.14447
  Prefactor  = 1.38049
  Normalizat = 1.13243
  Prefactor  = 0.99746
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.741     FROM HESSE     STATUS=OK           401 CALLS     3117 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .38929        16.535        .25505E-02   -1.5583    
   4  Prefactor     22.699        28.597        .84073E-04   -1.4755    
   5  norm          12.790        9.7194        .11200E-03   -1.4993    
   6  Prefactor     .10000E-03    8.7750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7268        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .37133        2.8343        .16731E-02   -1.5586    
  10  Prefactor     91.897        88.118        .20957E-03   -1.3788    
  11  Prefactor     .10000E-03    2.4627        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.088        23.618        .10665E-03   -1.4957    
  13  Prefactor     .10001E-03    47.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1598        2.2521        .51747E-04   -1.5173    
  15  Prefactor     5.7350        13.091        .16773E-03   -1.5229    
  16  Prefactor     .10000E-03    25.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9558        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.2567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5551        2.0172        .92430E-04   -1.5388    
  20  Prefactor     2.7479        44.403        .24465E-03   -1.5376    
  21  Prefactor     8.1445        12.803        .14051E-03   -1.5137    
  22  Prefactor     1.3805        3.1716        .19929E-03   -1.5473    
  23  Normalizat    1.1324        .23784        .26260E-03   -.88717    
  24  Prefactor     .99746        .18491        .22977E-03   -.92814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80286e-09
Minuit parameter uncertainties:
  1  5.0813e-05
  2  2.73341e-05
  3  5.07513
  4  28.6145
  5  9.72057
  6  2.60333e-05
  7  2.53855e-05
  8  0.000166118
  9  2.05163
  10  88.2441
  11  4.19363e-06
  12  23.634
  13  0.0013535
  14  2.25211
  15  13.0978
  16  9.93428e-06
  17  5.89095e-06
  18  1.38134e-05
  19  2.01728
  20  22.1111
  21  12.8078
  22  3.17198
  23  0.238065
  24  0.185026
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.160e+00  2.252e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.975e-01  1.850e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.132e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.16
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 7.34e-08
Energy Flux (Fixed Index): 7.36e-05 +/- 2.31e-05

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) = 5711.66189623
delta logL = 0.0795255044259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5711.63530874
delta logL = 0.106112991696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8280       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0105       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5711.635     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8294        24.640        .38387E-02    .19422E-03
   2  alpha         2.5141        3.7526        .17876        .46760E-04
   3  Normalizat    1.1078        .27194        .59894E-01    .27948E-04
   4  Prefactor     1.0105        .19614        .43262E-01    .60596E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.82944
  alpha      = 2.51412
  Normalizat = 1.10776
  Prefactor  = 1.01052
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.635     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8294        2.0407        .49136E-04   -1.5185    
   2  alpha         2.5141        .32038        .76330E-02    .56463E-02
   3  Normalizat    1.1078        .22827        .26489E-03   -.89503    
   4  Prefactor     1.0105        .18435        .22844E-03   -.92380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71683e-12
Minuit parameter uncertainties:
  1  2.04072
  2  0.321265
  3  0.228477
  4  0.184466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506109': 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) = 5711.63530816
delta logL = 0.106113580723

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.829e+00  2.041e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.514e+00  3.213e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.011e+00  1.845e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.108e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.68
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.51 +/- 0.32
Photon Flux (Free Index): 2.55e-07 +/- 7.97e-08
Energy Flux (Free Index): 7.01e-05 +/- 1.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/506109/cmap_HighResolution_248400001_248659201_4FGL_J1522.1+3144_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='7.01e-05', photon_flux_error='7.34e-08', dlogl='1.06e-01', energy_flux='7.36e-05', photon_flux2='2.55e-07', job_status='DONE', time_completed='2021-09-12 02:17:37.716847', photon_index_error2='0.32', photon_index2='2.51', ts='32.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.13', time_epoch_completed='1631438257.72', return_code='0', job_id='506109', GAL2='1.01', EG2='1.11', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='7.97e-08', ts2='32.68', photon_index='2.37' WHERE bin_id='35' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:17:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 506109: <4FGL_J1522.1+3144_daily_bin35> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin35> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:05:24 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:05:25 2021
Terminated at Sun Sep 12 02:17:38 2021
Results reported at Sun Sep 12 02:17:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin35 230.545 31.7395 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1522.1+3144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

