/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 203 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin49
RA = 230.545, Dec = 31.7395
tmin = 252028801, tmax = 252288001
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='506130', job_status='RUN', time_executed='2021-09-12 02:09:01.306142', time_epoch_executed='1631437741.31' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506130/ft1_4FGL_J1522.1+3144_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506130/ft1_4FGL_J1522.1+3144_daily_bin49.fits outfile=/scratch/kocevski/506130/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin49.fits ra=230.545 dec=31.7395 rad=12.0 tmin=252028801.0 tmax=252288001.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.41
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506130/ft1_filtered_4FGL_J1522.1+3144_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/506130/ltcube_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.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/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits
.....................!
real 13.24
user 12.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506130/ft1_filtered_4FGL_J1522.1+3144_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/506130/ltcube_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.fits outfile=/scratch/kocevski/506130/expmap_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.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/506130/ltcube_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.fits
.....................!
real 190.87
user 185.52
sys 5.03

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/506130/ft1_filtered_4FGL_J1522.1+3144_daily_bin49.fits scfile=/scratch/kocevski/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits outfile=/scratch/kocevski/506130/cmap_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506130/ft1_filtered_4FGL_J1522.1+3144_daily_bin49.fits scfile=/scratch/kocevski/506130/ft2_4FGL_J1522.1+3144_daily_bin49.fits outfile=/scratch/kocevski/506130/cmap_HighResolution_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10603E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.115       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2482       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11480E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3904       1.0000         .10000E-03   10000.    
    14 'norm      '    11.240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1675       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1134       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7137       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95577       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0541       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=   8265.322     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2365 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0132       -.85400E-07** at limit **
   2  Prefactor     37.066        38.137        .55146E-05    .17712E-04
   3  norm          .10000E-03    2.7615        .14771E-07** at limit **
   4  Prefactor     .10000E-03    7.8959        .62037E-07** at limit **
   5  norm          1.8871        5.5391        .43113E-06    .28711E-04
   6  Prefactor     .10000E-03    34.004        .45679E-06** at limit **
   7  Prefactor     .10000E-03    1.9482       -.45470E-07** at limit **
   8  Prefactor     3.2476        8.9736        .46605E-06    .96270E-06
   9  norm          1.7068        1.2543        .32783E-08   -.13068E-04
  10  Prefactor     .10000E-03    57.567       -.15410E-05** at limit **
  11  Prefactor     .10000E-03    5.1163        .96407E-08** at limit **
  12  Prefactor     .10000E-03    5.2940        .21823E-07** at limit **
  13  Prefactor     8.3904        11.230        .56333E-07    .10345E-05
  14  norm          11.240        1.9666       -.71071E-08    .20410E-05
  15  Prefactor     8.5630        8.1641        .28068E-06   -.16058E-05
  16  Prefactor     22.271        23.255       -.68784E-08   -.84100E-06
  17  Prefactor     .10000E-03    13.267        .28635E-06** at limit **
  18  norm          4.9409        14.761        .22175E-06   -.71622E-05
  19  Prefactor     2.1677        2.4871        .88315E-07    .55673E-05
  20  Prefactor     .10000E-03    8.7938       -.10151E-06** at limit **
  21  Prefactor     2.1123        8.5968        .73705E-05   -.79043E-05
  22  Prefactor     2.7137        3.0827        .90383E-07   -.83444E-06
  23  Normalizat    .95556        .17034        .64834E-06    .55131E-04
  24  Prefactor     1.0543        .13942       -.10811E-05    .70450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 37.0656
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24758
  norm       = 1.70676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3904
  norm       = 11.2401
  Prefactor  = 8.56301
  Prefactor  = 22.2713
  Prefactor  = 0.0001
  norm       = 4.94093
  Prefactor  = 2.16769
  Prefactor  = 0.0001
  Prefactor  = 2.11228
  Prefactor  = 2.71375
  Normalizat = 0.955557
  Prefactor  = 1.05433
 **********
 **   18 **HESSE 
 **********

 FCN=   8265.322     FROM HESSE     STATUS=OK           401 CALLS     2766 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.953        .30403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.066        38.186        .32893E-03   -1.4490    
   3  norm          .10000E-03    2.8306        .29494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8871        5.4812        .30286E-03   -1.5433    
   6  Prefactor     .10000E-03    35.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9519        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2476        8.9648        .22472E-03   -1.5348    
   9  norm          1.7068        1.2452        .83732E-04   -1.5447    
  10  Prefactor     .10000E-03    57.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3904        11.228        .13840E-03   -1.5129    
  14  norm          11.240        1.9718        .23722E-03   -1.5037    
  15  Prefactor     8.5630        8.1723        .68496E-03   -1.5123    
  16  Prefactor     22.271        23.241        .84875E-04   -1.4764    
  17  Prefactor     .10000E-03    13.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9409        14.731        .18093E-03   -1.5263    
  19  Prefactor     2.1677        2.4691        .14491E-03   -1.5413    
  20  Prefactor     .10000E-03    8.8035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1123        8.6060        .14188E-02   -1.5417    
  22  Prefactor     2.7137        3.0733        .16430E-03   -1.5378    
  23  Normalizat    .95556        .19471        .27989E-03   -.94535    
  24  Prefactor     1.0543        .15978        .22175E-03   -.90940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50802e-10
Minuit parameter uncertainties:
  1  0.000220706
  2  38.2117
  3  2.09124e-06
  4  6.17449e-07
  5  5.48264
  6  0.000134778
  7  3.07938e-06
  8  8.96852
  9  1.24522
  10  1.84443e-05
  11  3.90549e-06
  12  3.77583e-07
  13  11.2312
  14  1.97183
  15  8.1734
  16  23.2509
  17  1.69234e-06
  18  14.7421
  19  2.46921
  20  1.33952e-06
  21  8.52914
  22  3.07343
  23  0.194849
  24  0.159847
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.124e+01  1.972e+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.054e+00  1.598e-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:  9.556e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 97.84
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.67e-07 +/- 6.43e-08
Energy Flux (Fixed Index): 1.15e-04 +/- 2.03e-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) = 8265.24065317
delta logL = 0.0810797847025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8265.22450555
delta logL = 0.097227403945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.563       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2899       1.0000          .0000       5.0000    
     3 'Normalizat'    .97237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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=   8265.225     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      194 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.561        2.5258        .29452E-02    .37025E-04
   2  alpha         2.2900        .22137        .13221        .27114E-04
   3  Normalizat    .97259        .16760        .45820E-01    .24734E-04
   4  Prefactor     1.0445        .13684        .40235E-01    .12977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5612
  alpha      = 2.28998
  Normalizat = 0.97259
  Prefactor  = 1.04452
 **********
 **   18 **HESSE 
 **********

 FCN=   8265.225     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.561        2.0141        .48588E-04   -1.5028    
   2  alpha         2.2900        .17949        .57524E-03   -.84105E-01
   3  Normalizat    .97259        .19358        .27787E-03   -.93954    
   4  Prefactor     1.0445        .15760        .22266E-03   -.91260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64747e-14
Minuit parameter uncertainties:
  1  2.01416
  2  0.179643
  3  0.19372
  4  0.157667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506130': 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) = 8265.22450422
delta logL = 0.0972287348977

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.156e+01  2.014e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.290e+00  1.796e-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.045e+00  1.577e-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:  9.726e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 99.33
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.29 +/- 0.18
Photon Flux (Free Index): 3.52e-07 +/- 6.77e-08
Energy Flux (Free Index): 1.21e-04 +/- 2.38e-05

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/506130/cmap_HighResolution_252028801_252288001_4FGL_J1522.1+3144_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-07', energy_flux2='1.21e-04', photon_flux_error='6.43e-08', dlogl='9.72e-02', energy_flux='1.15e-04', photon_flux2='3.52e-07', job_status='DONE', time_completed='2021-09-12 02:20:16.092615', photon_index_error2='0.18', photon_index2='2.29', ts='97.84', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.96', time_epoch_completed='1631438416.09', return_code='0', job_id='506130', GAL2='1.04', EG2='0.97', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='6.77e-08', ts2='99.33', photon_index='2.37' WHERE bin_id='49' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 506130: <4FGL_J1522.1+3144_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin49 230.545 31.7395 252028801 252288001 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 :                                   672.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

