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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1072
RA = 230.545, Dec = 31.7395
tmin = 517190401, tmax = 517449601
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='511867', job_status='RUN', time_executed='2021-09-12 02:22:44.370159', time_epoch_executed='1631438564.37' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511867/ft1_4FGL_J1522.1+3144_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511867/ft1_4FGL_J1522.1+3144_daily_bin1072.fits outfile=/scratch/kocevski/511867/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1072.fits ra=230.545 dec=31.7395 rad=12.0 tmin=517190401.0 tmax=517449601.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.61
user 4.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.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/511867/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.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.60
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/511867/ltcube_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.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/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits
.....................!
real 11.65
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/511867/ltcube_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits outfile=/scratch/kocevski/511867/expmap_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.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/511867/ltcube_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits
.....................!
real 191.65
user 186.70
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 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/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits scfile=/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits outfile=/scratch/kocevski/511867/cmap_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.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.68
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits scfile=/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits outfile=/scratch/kocevski/511867/cmap_HighResolution_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits', '/scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits', expMap='/scratch/kocevski/511867/expmap_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits', expCube='/scratch/kocevski/511867/ltcube_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511867/Model_4FGL_J1522.1+3144_daily_bin1072.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/511867/ft1_filtered_4FGL_J1522.1+3144_daily_bin1072.fits
Spacecraft file(s): /scratch/kocevski/511867/ft2_4FGL_J1522.1+3144_daily_bin1072.fits
Exposure map: /scratch/kocevski/511867/expmap_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits
Exposure cube: /scratch/kocevski/511867/ltcube_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511867/Model_4FGL_J1522.1+3144_daily_bin1072.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) = 5544.17770357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3180       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13732E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.476       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8349       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2790       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25394E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77513       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0977       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=   5544.164     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2765 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.040        9.0618        .11111E-05   -.61779E-04
   2  Prefactor     .10000E-03    20.428       -.25868E-07** at limit **
   3  norm          1.8350        3.7152       -.44834E-06   -.56735E-03
   4  Prefactor     5.2969        54.616       -.11045E-04   -.14076E-04
   5  norm          .10000E-03    3.8332       -.28258E-07** at limit **
   6  Prefactor     22.126        17.704        .12704E-06    .26041E-06
   7  Prefactor     .10000E-03    3.2463        .18558E-07** at limit **
   8  Prefactor     .10025E-03    4.9920        .17724E-06** at limit **
   9  norm          .10000E-03    .68964        .28961E-07** at limit **
  10  Prefactor     .10000E-03    71.043       -.20354E-05** at limit **
  11  Prefactor     .10000E-03    2.5782       -.34022E-07** at limit **
  12  Prefactor     57.437        35.291       -.10480E-04   -.11759E-03
  13  Prefactor     4.8566        28.829        .17853E-04    .25024E-04
  14  norm          4.2793        1.6108       -.40377E-07   -.85014E-04
  15  Prefactor     .10000E-03    4.5144       -.12236E-07** at limit **
  16  Prefactor     .10000E-03    12.874        .91974E-07** at limit **
  17  Prefactor     .10000E-03    8.9852       -.64886E-07** at limit **
  18  norm          .10000E-03    7.9906        .58141E-07** at limit **
  19  Prefactor     .10000E-03    1.4879       -.60018E-07** at limit **
  20  Prefactor     .10000E-03    53.259        .57823E-06** at limit **
  21  Prefactor     28.629        21.555       -.37225E-06   -.58103E-05
  22  Prefactor     .10000E-03    2.7363       -.11519E-06** at limit **
  23  Normalizat    .77508        .20002        .16311E-05   -.72844E-04
  24  Prefactor     1.0977        .15494       -.18913E-06    .19273E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0395
  Prefactor  = 0.0001
  norm       = 1.83501
  Prefactor  = 5.2969
  norm       = 0.0001
  Prefactor  = 22.1261
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.4368
  Prefactor  = 4.85663
  norm       = 4.27925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6292
  Prefactor  = 0.0001
  Normalizat = 0.775083
  Prefactor  = 1.09773
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.164     FROM HESSE     STATUS=OK           405 CALLS     3170 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.040        9.0586        .12059E-03   -1.5043    
   2  Prefactor     .10000E-03    20.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8350        3.7109        .19912E-03   -1.5437    
   4  Prefactor     5.2969        54.966        .17428E-03   -1.5248    
   5  norm          .10000E-03    3.8351        .14236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.126        17.690        .85158E-04   -1.4767    
   7  Prefactor     .10000E-03    3.2533        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10025E-03    8.7601        .57896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1395        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5811        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.437        35.082        .52916E-04   -1.4191    
  13  Prefactor     4.8566        28.225        .18295E-03   -1.5267    
  14  norm          4.2793        1.6118        .54838E-04   -1.5294    
  15  Prefactor     .10000E-03    4.5216        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.0090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5085        .88627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.629        21.585        .74875E-04   -1.4637    
  22  Prefactor     .10000E-03    6.6701        .23850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77508        .22893        .29571E-03   -1.0100    
  24  Prefactor     1.0977        .17931        .20678E-03   -.89539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20836e-10
Minuit parameter uncertainties:
  1  9.05973
  2  1.43889e-05
  3  3.71139
  4  34.1662
  5  4.31671e-06
  6  17.694
  7  2.63314e-06
  8  0.00294013
  9  2.45121e-06
  10  2.04622e-05
  11  1.12057e-06
  12  35.0946
  13  23.4327
  14  1.61177
  15  2.04194e-06
  16  2.38116e-06
  17  2.31898e-06
  18  3.92409e-06
  19  2.5925e-06
  20  2.15243e-05
  21  21.5908
  22  3.21679e-05
  23  0.229217
  24  0.179404
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  4.279e+00  1.612e+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:  1.098e+00  1.794e-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:  7.751e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.14
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 5.26e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 1.66e-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) = 5543.99339009
delta logL = 0.171078372228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.99321387
delta logL = 0.171254586116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9685       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6298       1.0000          .0000       5.0000    
     3 'Normalizat'    .74431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1143       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=   5543.993     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9672        22.897        .50618E-02    .18166E-03
   2  alpha         2.6294        3.7450        .24780        .32029E-04
   3  Normalizat    .74408        .16285        .68069E-01    .94195E-05
   4  Prefactor     1.1145        .11520        .37066E-01   -.82602E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.96722
  alpha      = 2.62939
  Normalizat = 0.744075
  Prefactor  = 1.11451
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.993     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9672        1.6865        .50904E-04   -1.5310    
   2  alpha         2.6294        .46287        .10316E-01    .51779E-01
   3  Normalizat    .74408        .22095        .30120E-03   -1.0218    
   4  Prefactor     1.1145        .17718        .20546E-03   -.89004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42253e-12
Minuit parameter uncertainties:
  1  1.68655
  2  0.465567
  3  0.221214
  4  0.17727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511867': 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) = 5543.99321119
delta logL = 0.171257275138

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  3.967e+00  1.687e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.629e+00  4.656e-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.115e+00  1.773e-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:  7.441e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.49
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.63 +/- 0.47
Photon Flux (Free Index): 1.66e-07 +/- 7.31e-08
Energy Flux (Free Index): 4.17e-05 +/- 1.56e-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/511867/cmap_HighResolution_517190401_517449601_4FGL_J1522.1+3144_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.17e-05', photon_flux_error='5.26e-08', dlogl='1.71e-01', energy_flux='4.40e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-12 02:32:56.893017', photon_index_error2='0.47', photon_index2='2.63', ts='14.14', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.78', time_epoch_completed='1631439176.89', return_code='0', job_id='511867', GAL2='1.11', EG2='0.74', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.31e-08', ts2='14.49', photon_index='2.37' WHERE bin_id='1072' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:32:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 511867: <4FGL_J1522.1+3144_daily_bin1072> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1072> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 02:20:45 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:20:46 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:20:46 2021
Terminated at Sun Sep 12 02:32:57 2021
Results reported at Sun Sep 12 02:32:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1072 230.545 31.7395 517190401 517449601 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 :                                   576.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

