/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 2 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin395
RA = 230.545, Dec = 31.7395
tmin = 341712001, tmax = 341971201
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='507814', job_status='RUN', time_executed='2021-09-12 02:10:39.490668', time_epoch_executed='1631437839.49' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507814/ft1_4FGL_J1522.1+3144_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507814/ft2_4FGL_J1522.1+3144_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507814/ft1_4FGL_J1522.1+3144_daily_bin395.fits outfile=/scratch/kocevski/507814/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin395.fits ra=230.545 dec=31.7395 rad=12.0 tmin=341712001.0 tmax=341971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.01
user 3.17
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507814/ft1_filtered_4FGL_J1522.1+3144_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/507814/ft2_4FGL_J1522.1+3144_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/507814/ltcube_341712001_341971201_4FGL_J1522.1+3144_daily_bin395.fits outfile=/scratch/kocevski/507814/expmap_341712001_341971201_4FGL_J1522.1+3144_daily_bin395.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/507814/ltcube_341712001_341971201_4FGL_J1522.1+3144_daily_bin395.fits
.....................!
real 190.21
user 185.19
sys 4.69

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6998       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3760       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5249       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5636       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.199       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6017       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8241       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29119       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98318       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=   6595.734     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2671 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6415        7.1687        .24621E-06   -.86383E-03
   2  Prefactor     .10000E-03    29.039       -.57019E-05** at limit **
   3  norm          .10000E-03    2.2942       -.70052E-07** at limit **
   4  Prefactor     8.7001        14.094        .81660E-07   -.10988E-03
   5  norm          .10000E-03    4.6393       -.12775E-06** at limit **
   6  Prefactor     .10000E-03    12.546        .22049E-05** at limit **
   7  Prefactor     6.3760        5.3798        .12107E-06   -.18656E-04
   8  Prefactor     3.5250        4.3438        .79647E-06   -.14694E-02
   9  norm          .10000E-03    .41800        .72866E-07** at limit **
  10  Prefactor     44.620        63.780       -.64649E-05   -.72281E-04
  11  Prefactor     .10000E-03    2.4476       -.45710E-07** at limit **
  12  Prefactor     .10000E-03    7.0275       -.30262E-06** at limit **
  13  Prefactor     .10000E-03    25.563        .62805E-05** at limit **
  14  norm          7.5638        2.0000        .28432E-07    .28953E-04
  15  Prefactor     11.197        12.510       -.49005E-07   -.60647E-06
  16  Prefactor     .10000E-03    14.366       -.23037E-05** at limit **
  17  Prefactor     8.6013        10.991        .13911E-06   -.76330E-04
  18  norm          .10000E-03    3.5194       -.45089E-07** at limit **
  19  Prefactor     3.8242        2.5021        .16696E-08   -.67179E-05
  20  Prefactor     .10000E-03    17.418        .23203E-05** at limit **
  21  Prefactor     .10000E-03    14.870       -.22682E-05** at limit **
  22  Prefactor     .28696        1.7406       -.50423E-06    .46765E-03
  23  Normalizat    1.0196        .17712        .10200E-07   -.23353E-04
  24  Prefactor     .98319        .14402        .11356E-06    .18473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.64147
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.70014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.37596
  Prefactor  = 3.52498
  norm       = 0.0001
  Prefactor  = 44.62
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56377
  Prefactor  = 11.1975
  Prefactor  = 0.0001
  Prefactor  = 8.60128
  norm       = 0.0001
  Prefactor  = 3.8242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.286962
  Normalizat = 1.01958
  Prefactor  = 0.983189
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.734     FROM HESSE     STATUS=OK           397 CALLS     3068 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6415        7.6405        .68181E-03   -1.5120    
   2  Prefactor     .10000E-03    29.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.3239        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7001        14.141        .67950E-03   -1.5118    
   5  norm          .10000E-03    4.6692        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3760        5.3806        .15896E-03   -1.5203    
   8  Prefactor     3.5250        6.7799        .10766E-02   -1.5332    
   9  norm          .10000E-03    .42315        .51249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.620        64.439        .60015E-04   -1.4371    
  11  Prefactor     .10000E-03    2.4538        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5638        2.0180        .47664E-04   -1.5158    
  15  Prefactor     11.197        12.623        .11972E-03   -1.5039    
  16  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6013        11.001        .68338E-03   -1.5121    
  18  norm          .10000E-03    3.5206        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8242        2.5003        .99622E-04   -1.5317    
  20  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .28696        7.7876        .20342E-02   -1.5601    
  23  Normalizat    1.0196        .20489        .25854E-03   -.92377    
  24  Prefactor     .98319        .16655        .22253E-03   -.93292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33368e-09
Minuit parameter uncertainties:
  1  7.64132
  2  0.000284943
  3  1.74957e-06
  4  14.1459
  5  4.30138e-06
  6  6.62401e-05
  7  5.38104
  8  6.78133
  9  2.36394e-06
  10  64.5402
  11  1.15433e-06
  12  1.25976e-05
  13  0.00016698
  14  2.018
  15  12.6264
  16  8.01099e-05
  17  11.0033
  18  1.27454e-07
  19  2.50035
  20  8.08351e-05
  21  7.48233e-05
  22  2.98972
  23  0.205044
  24  0.16664
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.564e+00  2.018e+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:  9.832e-01  1.666e-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.020e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.34
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.47e-07 +/- 6.58e-08
Energy Flux (Fixed Index): 7.77e-05 +/- 2.07e-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) = 6595.6736112
delta logL = 0.0599524709978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6595.665719
delta logL = 0.0678446718275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7573       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97596       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=   6595.666     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7571        2.4025        .35993E-02    .14903E-04
   2  alpha         2.2807        .31039        .16270        .19702E-04
   3  Normalizat    1.0334        .17253        .41845E-01    .12941E-04
   4  Prefactor     .97588        .14407        .45966E-01    .75316E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.75713
  alpha      = 2.28073
  Normalizat = 1.0334
  Prefactor  = 0.975877
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.666     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7571        1.8181        .49004E-04   -1.5151    
   2  alpha         2.2807        .24107        .70004E-02   -.87821E-01
   3  Normalizat    1.0334        .19812        .25715E-03   -.91920    
   4  Prefactor     .97588        .16501        .22328E-03   -.93538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66635e-13
Minuit parameter uncertainties:
  1  1.81813
  2  0.241444
  3  0.198263
  4  0.165094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507814': 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) = 6595.66571882
delta logL = 0.0678448515764

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.757e+00  1.818e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.281e+00  2.414e-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:  9.759e-01  1.651e-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.033e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.24
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.28 +/- 0.24
Photon Flux (Free Index): 2.34e-07 +/- 6.33e-08
Energy Flux (Free Index): 8.13e-05 +/- 2.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/507814/cmap_HighResolution_341712001_341971201_4FGL_J1522.1+3144_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.47e-07', energy_flux2='8.13e-05', photon_flux_error='6.58e-08', dlogl='6.78e-02', energy_flux='7.77e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-09-12 02:21:18.596932', photon_index_error2='0.24', photon_index2='2.28', ts='61.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.02', time_epoch_completed='1631438478.6', return_code='0', job_id='507814', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='6.33e-08', ts2='62.24', photon_index='2.37' WHERE bin_id='395' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 507814: <4FGL_J1522.1+3144_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin395 230.545 31.7395 341712001 341971201 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 :                                   629.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            654 sec.

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

