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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1221
RA = 230.545, Dec = 31.7395
tmin = 555811201, tmax = 556070401
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='513185', job_status='RUN', time_executed='2021-09-12 02:27:37.947249', time_epoch_executed='1631438857.95' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513185/ft1_4FGL_J1522.1+3144_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513185/ft2_4FGL_J1522.1+3144_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513185/ft1_4FGL_J1522.1+3144_daily_bin1221.fits outfile=/scratch/kocevski/513185/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1221.fits ra=230.545 dec=31.7395 rad=12.0 tmin=555811201.0 tmax=556070401.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.59
user 3.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513185/ft2_4FGL_J1522.1+3144_daily_bin1221.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/513185/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/513185/ft1_filtered_4FGL_J1522.1+3144_daily_bin1221.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513185/ft1_filtered_4FGL_J1522.1+3144_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/513185/ft2_4FGL_J1522.1+3144_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/513185/ltcube_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.fits outfile=/scratch/kocevski/513185/expmap_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.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/513185/ltcube_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.fits
.....................!
real 190.38
user 184.86
sys 5.06

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/513185/ft1_filtered_4FGL_J1522.1+3144_daily_bin1221.fits scfile=/scratch/kocevski/513185/ft2_4FGL_J1522.1+3144_daily_bin1221.fits outfile=/scratch/kocevski/513185/cmap_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513185/ft1_filtered_4FGL_J1522.1+3144_daily_bin1221.fits scfile=/scratch/kocevski/513185/ft2_4FGL_J1522.1+3144_daily_bin1221.fits outfile=/scratch/kocevski/513185/cmap_HighResolution_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0971       1.0000         .10000E-03   10000.    
     3 'norm      '    .68882E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8488       1.0000         .10000E-03   10000.    
     9 'norm      '    .62534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8765       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1557       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73169       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=   10920.36     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2361 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .97440        .79269E-08** at limit **
   2  Prefactor     5.0890        15.389       -.10349E-04   -.39611E-05
   3  norm          .10000E-03    1.0743        .57807E-07** at limit **
   4  Prefactor     .10000E-03    8.1213       -.40817E-05** at limit **
   5  norm          .10000E-03    1.7144       -.75098E-07** at limit **
   6  Prefactor     2.0670        8.1648        .84354E-07    .82191E-05
   7  Prefactor     2.2071        3.4975       -.19150E-06   -.66904E-03
   8  Prefactor     6.8492        5.3797       -.25510E-07   -.31571E-05
   9  norm          .62615        .99269        .88723E-08    .15322E-03
  10  Prefactor     .10000E-03    16.621       -.40484E-05** at limit **
  11  Prefactor     .10000E-03    3.1251       -.48771E-06** at limit **
  12  Prefactor     .10000E-03    5.2550        .11648E-05** at limit **
  13  Prefactor     .10000E-03    4.3440       -.27879E-05** at limit **
  14  norm          1.1727        .81081       -.13777E-07   -.64601E-04
  15  Prefactor     7.0021        6.2864       -.47715E-07   -.36554E-04
  16  Prefactor     .10000E-03    6.1396        .25592E-05** at limit **
  17  Prefactor     .10000E-03    3.6298        .17007E-05** at limit **
  18  norm          1.2326        2.3464        .20369E-06   -.80931E-03
  19  Prefactor     .10000E-03    .68648       -.11902E-07** at limit **
  20  Prefactor     4.8768        8.5842       -.29923E-07    .54142E-06
  21  Prefactor     .10000E-03    13.375        .53261E-05** at limit **
  22  Prefactor     .10000E-03    .86320        .24935E-07** at limit **
  23  Normalizat    1.1557        .12129        .21518E-06   -.37388E-04
  24  Prefactor     .73167        .96950E-01   -.71642E-08   -.51009E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.08901
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.06703
  Prefactor  = 2.20713
  Prefactor  = 6.84919
  norm       = 0.626147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17269
  Prefactor  = 7.00213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23265
  Prefactor  = 0.0001
  Prefactor  = 4.87675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15574
  Prefactor  = 0.73167
 **********
 **   18 **HESSE 
 **********

 FCN=   10920.36     FROM HESSE     STATUS=OK           405 CALLS     2766 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .97985        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0890        15.406        .17809E-03   -1.5257    
   3  norm          .10000E-03    16.549        .21016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7165        .13360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0670        8.1390        .28739E-03   -1.5420    
   7  Prefactor     2.2071        4.3379        .13834E-02   -1.5411    
   8  Prefactor     6.8492        5.3762        .15331E-03   -1.5184    
   9  norm          .62615        .87919        .11450E-02   -1.5550    
  10  Prefactor     .10000E-03    16.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1703        .18033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1727        .78690        .65618E-04   -1.5491    
  15  Prefactor     7.0021        6.2405        .15161E-03   -1.5179    
  16  Prefactor     .10000E-03    6.1436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2326        3.5274        .16485E-02   -1.5486    
  19  Prefactor     .10000E-03    1.9967        .16748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8768        8.5733        .18215E-03   -1.5266    
  21  Prefactor     .10000E-03    13.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7025        .18865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1557        .13748        .21312E-03   -.87982    
  24  Prefactor     .73167        .11084        .21834E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19145e-09
Minuit parameter uncertainties:
  1  1.70549e-06
  2  15.4179
  3  0.000462623
  4  9.74819e-07
  5  3.19116e-07
  6  8.14338
  7  4.33849
  8  5.37657
  9  0.879205
  10  2.57271e-07
  11  8.29454e-08
  12  7.58318e-07
  13  2.63942e-06
  14  0.786911
  15  6.24103
  16  3.13914e-07
  17  3.06372e-06
  18  3.52798
  19  6.74929e-06
  20  8.57543
  21  7.74202e-05
  22  7.9349e-06
  23  0.137524
  24  0.110874
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.173e+00  7.869e-01  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.317e-01  1.109e-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.156e+00  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 8.08e-06

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) = 10919.871329
delta logL = 0.49173884188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10919.8680183
delta logL = 0.495049546405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0248       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9429       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74420       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=   10919.87     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      257 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0250        6.5254        .11704E-01    .12408E-02
   2  alpha         2.9434        3.9517        .41999        .60389E-04
   3  Normalizat    1.1301        .34323E-01    .36891E-01    .95897E-05
   4  Prefactor     .74418        .28115E-01    .42987E-01    .24563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02502
  alpha      = 2.94338
  Normalizat = 1.13008
  Prefactor  = 0.74418
 **********
 **   18 **HESSE 
 **********

 FCN=   10919.87     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0250        .68408        .52994E-04   -1.5505    
   2  alpha         2.9434        .61672        .16271E-01    .17830    
   3  Normalizat    1.1301        .13550        .21510E-03   -.88792    
   4  Prefactor     .74418        .11094        .21664E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75986e-09
Minuit parameter uncertainties:
  1  0.684085
  2  0.62337
  3  0.13554
  4  0.110969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513185': 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) = 10919.8680173
delta logL = 0.495050613821

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.025e+00  6.841e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.943e+00  6.234e-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.442e-01  1.110e-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.130e+00  1.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.94 +/- 0.62
Photon Flux (Free Index): 5.97e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.25e-05 +/- 6.47e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513185/cmap_HighResolution_555811201_556070401_4FGL_J1522.1+3144_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='1.25e-05', photon_flux_error='2.57e-08', dlogl='4.95e-01', energy_flux='1.20e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-12 02:40:58.705662', photon_index_error2='0.62', photon_index2='2.94', ts='4.51', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='6.47e-06', EG='1.16', time_epoch_completed='1631439658.71', return_code='0', job_id='513185', GAL2='0.74', EG2='1.13', return_code2='0', energy_flux_error='8.08e-06', photon_flux_error2='3.48e-08', ts2='5.60', photon_index='2.37' WHERE bin_id='1221' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 513185: <4FGL_J1522.1+3144_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1221 230.545 31.7395 555811201 556070401 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 :                                   795.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

