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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin3
RA = 230.545, Dec = 31.7395
tmin = 240105601, tmax = 240364801
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='506059', job_status='RUN', time_executed='2021-09-12 02:06:01.596663', time_epoch_executed='1631437561.6' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506059/ft1_4FGL_J1522.1+3144_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506059/ft1_4FGL_J1522.1+3144_daily_bin3.fits outfile=/scratch/kocevski/506059/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin3.fits ra=230.545 dec=31.7395 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/506059/ltcube_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.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/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits
.....................!
real 13.34
user 12.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/506059/ltcube_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.fits outfile=/scratch/kocevski/506059/expmap_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.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/506059/ltcube_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.fits
.....................!
real 190.62
user 185.37
sys 4.88

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/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits scfile=/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits outfile=/scratch/kocevski/506059/cmap_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits scfile=/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits outfile=/scratch/kocevski/506059/cmap_HighResolution_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.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/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/506059/ft2_4FGL_J1522.1+3144_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506059/Model_4FGL_J1522.1+3144_daily_bin3.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/506059/ft1_filtered_4FGL_J1522.1+3144_daily_bin3.fits.....................!
real 49.22
user 47.83
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    145.55       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.274       1.0000         .10000E-03   10000.    
     5 'norm      '    10.423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9091       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0660       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    119.76       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3047       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.630       1.0000         .10000E-03   10000.    
    14 'norm      '    6.9086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62251E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72414       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=   6248.763     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2751 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98275        6.8997        .45044E-05    .11910E-03
   2  Prefactor     145.58        78.704       -.16379E-05    .21984E-04
   3  norm          .10000E-03    2.4174        .30221E-07** at limit **
   4  Prefactor     32.240        37.208       -.11515E-05   -.10627E-03
   5  norm          10.424        8.0149       -.16250E-06   -.32988E-04
   6  Prefactor     3.9073        9.2957       -.11879E-06   -.41913E-04
   7  Prefactor     .10000E-03    3.0095        .19786E-07** at limit **
   8  Prefactor     1.0697        15.477        .54610E-05    .19876E-04
   9  norm          .10000E-03    .72125       -.81094E-07** at limit **
  10  Prefactor     119.74        70.051       -.34423E-06   -.41984E-04
  11  Prefactor     8.3040        9.1748        .30716E-06    .61933E-04
  12  Prefactor     .10000E-03    34.185        .57096E-06** at limit **
  13  Prefactor     31.621        18.453       -.10251E-06    .19002E-04
  14  norm          6.9043        1.7732        .40781E-06    .14607E-02
  15  Prefactor     .31111        9.7099       -.38495E-06   -.38336E-03
  16  Prefactor     42.605        33.113        .10249E-05   -.13176E-03
  17  Prefactor     .10000E-03    8.1152        .48605E-07** at limit **
  18  norm          .10000E-03    6.1370        .64335E-07** at limit **
  19  Prefactor     .10000E-03    1.5136       -.30260E-06** at limit **
  20  Prefactor     .10000E-03    7.3185        .31476E-07** at limit **
  21  Prefactor     .10026E-03    6.0108       -.14922E-05** at limit **
  22  Prefactor     .10000E-03    1.0880        .73416E-07** at limit **
  23  Normalizat    1.1833        .18218        .21134E-05    .31040E-04
  24  Prefactor     .72368        .13842       -.24282E-05    .22391E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.982745
  Prefactor  = 145.585
  norm       = 0.0001
  Prefactor  = 32.2395
  norm       = 10.4243
  Prefactor  = 3.9073
  Prefactor  = 0.0001
  Prefactor  = 1.06966
  norm       = 0.0001
  Prefactor  = 119.736
  Prefactor  = 8.30402
  Prefactor  = 0.0001
  Prefactor  = 31.6206
  norm       = 6.90426
  Prefactor  = 0.31111
  Prefactor  = 42.6051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100256
  Prefactor  = 0.0001
  Normalizat = 1.18333
  Prefactor  = 0.723682
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.763     FROM HESSE     STATUS=OK           399 CALLS     3150 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98275        6.7765        .38945E-03   -1.5510    
   2  Prefactor     145.58        78.326        .16700E-03   -1.3289    
   3  norm          .10000E-03    2.4510        .12000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.240        37.453        .70532E-04   -1.4572    
   5  norm          10.424        8.0124        .12411E-03   -1.5062    
   6  Prefactor     3.9073        9.2806        .20406E-03   -1.5313    
   7  Prefactor     .10000E-03    3.0226        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0697        15.410        .47228E-03   -1.5501    
   9  norm          .10000E-03    .75218        .13089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     119.74        70.137        .18386E-03   -1.3515    
  11  Prefactor     8.3040        9.1697        .13911E-03   -1.5132    
  12  Prefactor     .10000E-03    35.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.621        18.488        .71245E-04   -1.4583    
  14  norm          6.9043        1.9091        .46575E-04   -1.5182    
  15  Prefactor     .31111        77.210        .39653E-02   -1.5596    
  16  Prefactor     42.605        33.200        .30699E-03   -1.4402    
  17  Prefactor     .10000E-03    8.1220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.1472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0498        .18609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10026E-03    41.632        .35804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.0969        .80501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1833        .20815        .23744E-03   -.87120    
  24  Prefactor     .72368        .15633        .23520E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01122e-08
Minuit parameter uncertainties:
  1  5.1618
  2  78.3822
  3  1.31314e-06
  4  37.4808
  5  8.01325
  6  9.28406
  7  3.08566e-06
  8  8.12203
  9  2.49005e-06
  10  70.1853
  11  9.17122
  12  2.0613e-05
  13  18.4918
  14  1.90914
  15  9.81346
  16  33.214
  17  1.63174e-06
  18  3.00406e-07
  19  1.67587e-05
  20  4.26888e-06
  21  0.00653452
  22  4.91358e-07
  23  0.208292
  24  0.156424
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.904e+00  1.909e+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:  7.237e-01  1.564e-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.183e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.86
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 6.22e-08
Energy Flux (Fixed Index): 7.09e-05 +/- 1.96e-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) = 6248.5740043
delta logL = 0.189417010727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.55626072
delta logL = 0.207160590913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1743       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1981       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71001       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=   6248.556     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1743        2.1343        .37440E-02    .32889E-02
   2  alpha         2.1980        .30996        .17738        .79487E-05
   3  Normalizat    1.2101        .16985        .53234E-01    .29965E-04
   4  Prefactor     .71000        .13287        .42534E-01   -.76063E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.17431
  alpha      = 2.198
  Normalizat = 1.2101
  Prefactor  = 0.709996
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.556     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1743        1.7487        .48858E-04   -1.5172    
   2  alpha         2.1980        .26347        .75632E-02   -.12110    
   3  Normalizat    1.2101        .19658        .23538E-03   -.86291    
   4  Prefactor     .71000        .15305        .23723E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41357e-10
Minuit parameter uncertainties:
  1  1.7487
  2  0.263966
  3  0.196701
  4  0.153142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506059': 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) = 6248.55626063
delta logL = 0.207160681995

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.174e+00  1.749e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.198e+00  2.640e-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:  7.100e-01  1.531e-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.210e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.19
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.20 +/- 0.26
Photon Flux (Free Index): 2.02e-07 +/- 6.05e-08
Energy Flux (Free Index): 7.77e-05 +/- 2.28e-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/506059/cmap_HighResolution_240105601_240364801_4FGL_J1522.1+3144_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='7.77e-05', photon_flux_error='6.22e-08', dlogl='2.07e-01', energy_flux='7.09e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-12 02:16:14.928229', photon_index_error2='0.26', photon_index2='2.20', ts='57.86', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.18', time_epoch_completed='1631438174.93', return_code='0', job_id='506059', GAL2='0.71', EG2='1.21', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.05e-08', ts2='58.19', photon_index='2.37' WHERE bin_id='3' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:16:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 506059: <4FGL_J1522.1+3144_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin3 230.545 31.7395 240105601 240364801 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 :                                   611.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            655 sec.

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

