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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1309
RA = 230.545, Dec = 31.7395
tmin = 578620801, tmax = 578880001
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='513328', job_status='RUN', time_executed='2021-09-12 02:27:48.167016', time_epoch_executed='1631438868.17' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513328/ft1_4FGL_J1522.1+3144_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513328/ft1_4FGL_J1522.1+3144_daily_bin1309.fits outfile=/scratch/kocevski/513328/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1309.fits ra=230.545 dec=31.7395 rad=12.0 tmin=578620801.0 tmax=578880001.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513328/ft1_filtered_4FGL_J1522.1+3144_daily_bin1309.fits" evtable="EVENTS" scfile=/scratch/kocevski/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits sctable="SC_DATA" outfile=/scratch/kocevski/513328/ltcube_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.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/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits
.....................!
real 11.73
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513328/ft1_filtered_4FGL_J1522.1+3144_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/513328/ltcube_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.fits outfile=/scratch/kocevski/513328/expmap_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.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/513328/ltcube_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.fits
.....................!
real 189.88
user 185.18
sys 4.40

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/513328/ft1_filtered_4FGL_J1522.1+3144_daily_bin1309.fits scfile=/scratch/kocevski/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits outfile=/scratch/kocevski/513328/cmap_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513328/ft1_filtered_4FGL_J1522.1+3144_daily_bin1309.fits scfile=/scratch/kocevski/513328/ft2_4FGL_J1522.1+3144_daily_bin1309.fits outfile=/scratch/kocevski/513328/cmap_HighResolution_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.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.71
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0786       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .19204E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5113       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8370       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.903       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 '    1.1844       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80335       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0149       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=   5952.078     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2768 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0791        5.2571       -.18090E-07    .19587E-04
   2  Prefactor     .10001E-03    14.036       -.85434E-05** at limit **
   3  norm          2.9313        2.9661        .16759E-07   -.51065E-04
   4  Prefactor     .10000E-03    62.799       -.36306E-05** at limit **
   5  norm          4.6039        7.5777        .96688E-06   -.10733E-02
   6  Prefactor     1.5456        17.391       -.49310E-06   -.10599E-03
   7  Prefactor     3.9360        4.6436        .16910E-05   -.23444E-02
   8  Prefactor     .10000E-03    2.2544        .13247E-07** at limit **
   9  norm          .19683E-01    .61280       -.18526E-06   -.30328E-03
  10  Prefactor     .10000E-03    28.937        .36736E-05** at limit **
  11  Prefactor     .10000E-03    2.2663        .35346E-07** at limit **
  12  Prefactor     11.360        19.192       -.70804E-06   -.36752E-04
  13  Prefactor     9.5145        17.370        .74945E-06    .24891E-04
  14  norm          2.8370        1.0967        .83955E-08   -.15297E-04
  15  Prefactor     .10000E-03    2.3767        .10807E-07** at limit **
  16  Prefactor     12.903        15.035       -.55261E-07    .41140E-04
  17  Prefactor     .10000E-03    8.5863       -.23623E-05** at limit **
  18  norm          .10000E-03    4.6182        .50940E-07** at limit **
  19  Prefactor     1.1844        1.9233        .47925E-07   -.30908E-03
  20  Prefactor     .10000E-03    5.5874       -.34752E-06** at limit **
  21  Prefactor     .10001E-03    12.142        .84195E-05** at limit **
  22  Prefactor     .10000E-03    1.9921        .54869E-06** at limit **
  23  Normalizat    .80324        .16535        .47690E-07   -.56371E-04
  24  Prefactor     1.0150        .13662       -.17017E-06   -.10270E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07908
  Prefactor  = 0.000100007
  norm       = 2.93132
  Prefactor  = 0.000100001
  norm       = 4.6039
  Prefactor  = 1.54556
  Prefactor  = 3.93596
  Prefactor  = 0.0001
  norm       = 0.0196829
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.3597
  Prefactor  = 9.51451
  norm       = 2.83705
  Prefactor  = 0.0001
  Prefactor  = 12.9034
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.18442
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100004
  Normalizat = 0.80324
  Prefactor  = 1.01496
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.078     FROM HESSE     STATUS=OK           401 CALLS     3169 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0791        5.2669        .15826E-03   -1.5215    
   2  Prefactor     .10001E-03    14.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9313        2.9592        .13014E-03   -1.5366    
   4  Prefactor     .10000E-03    63.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6039        8.0343        .93795E-03   -1.5279    
   6  Prefactor     1.5456        17.315        .34281E-03   -1.5459    
   7  Prefactor     3.9360        6.7631        .10167E-02   -1.5311    
   8  Prefactor     .10000E-03    2.2580        .11313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .19683E-01    28.019        .11089E-02   -1.5680    
  10  Prefactor     .10000E-03    29.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2746        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.360        19.082        .11885E-03   -1.5034    
  13  Prefactor     9.5145        17.333        .12994E-03   -1.5091    
  14  norm          2.8370        1.0968        .48077E-04   -1.5371    
  15  Prefactor     .10000E-03    2.3810        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.903        15.036        .55755E-03   -1.4989    
  17  Prefactor     .10000E-03    8.6443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6277        .16192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1844        1.8883        .13066E-03   -1.5490    
  20  Prefactor     .10000E-03    5.5900        .17813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    12.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7717        .21043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80324        .19253        .25293E-03   -.99949    
  24  Prefactor     1.0150        .15875        .19713E-03   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95844e-09
Minuit parameter uncertainties:
  1  5.26727
  2  0.000636671
  3  2.95936
  4  0.000547635
  5  8.03621
  6  10.3497
  7  6.76444
  8  3.13432e-07
  9  1.48217
  10  0.000383591
  11  7.76475e-07
  12  19.0919
  13  17.342
  14  1.09681
  15  8.72872e-08
  16  15.0403
  17  0.000135192
  18  2.41134e-06
  19  1.88839
  20  1.64502e-05
  21  0.00055086
  22  0.000331964
  23  0.192693
  24  0.158824
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.837e+00  1.097e+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.015e+00  1.588e-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:  8.032e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.12
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.13e-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) = 5951.81806994
delta logL = 0.259948183791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.81427041
delta logL = 0.263747716471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9163       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0578       1.0000          .0000       5.0000    
     3 'Normalizat'    .82797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0021       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=   5951.814     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9159        1.5787        .59476E-02    .77311E-04
   2  alpha         2.0581        .49326        .28377       -.98345E-05
   3  Normalizat    .82804        .15671        .43974E-01    .15841E-04
   4  Prefactor     1.0021        .13488        .44930E-01    .33551E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9159
  alpha      = 2.05812
  Normalizat = 0.82804
  Prefactor  = 1.00209
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.814     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .80E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9159        1.2073        .52068E-04   -1.5366    
   2  alpha         2.0581        .42047        .11258E-01   -.17769    
   3  Normalizat    .82804        .18192        .24964E-03   -.99037    
   4  Prefactor     1.0021        .15575        .19829E-03   -.92660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04302e-14
Minuit parameter uncertainties:
  1  1.20733
  2  0.422546
  3  0.182052
  4  0.155818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513328': 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) = 5951.81427001
delta logL = 0.263748117488

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.916e+00  1.207e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.058e+00  4.225e-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.002e+00  1.558e-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:  8.280e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.60
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.06 +/- 0.42
Photon Flux (Free Index): 7.39e-08 +/- 4.00e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.78e-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/513328/cmap_HighResolution_578620801_578880001_4FGL_J1522.1+3144_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='3.47e-05', photon_flux_error='3.58e-08', dlogl='2.64e-01', energy_flux='2.91e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-09-12 02:40:01.233240', photon_index_error2='0.42', photon_index2='2.06', ts='19.12', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.80', time_epoch_completed='1631439601.23', return_code='0', job_id='513328', GAL2='1.00', EG2='0.83', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.00e-08', ts2='19.60', photon_index='2.37' WHERE bin_id='1309' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 513328: <4FGL_J1522.1+3144_daily_bin1309> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1309> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:25:28 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:25:29 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:25:29 2021
Terminated at Sun Sep 12 02:40:01 2021
Results reported at Sun Sep 12 02:40:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1309 230.545 31.7395 578620801 578880001 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 :                                   594.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

