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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin23
RA = 230.545, Dec = 31.7395
tmin = 245289601, tmax = 245548801
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='506090', job_status='RUN', time_executed='2021-09-12 02:07:38.810154', time_epoch_executed='1631437658.81' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506090/ft1_4FGL_J1522.1+3144_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506090/ft2_4FGL_J1522.1+3144_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506090/ft1_4FGL_J1522.1+3144_daily_bin23.fits outfile=/scratch/kocevski/506090/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin23.fits ra=230.545 dec=31.7395 rad=12.0 tmin=245289601.0 tmax=245548801.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.46
user 1.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506090/ft1_filtered_4FGL_J1522.1+3144_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/506090/ft2_4FGL_J1522.1+3144_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/506090/ltcube_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.fits outfile=/scratch/kocevski/506090/expmap_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.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/506090/ltcube_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.fits
.....................!
real 190.61
user 185.09
sys 5.13

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/506090/ft1_filtered_4FGL_J1522.1+3144_daily_bin23.fits scfile=/scratch/kocevski/506090/ft2_4FGL_J1522.1+3144_daily_bin23.fits outfile=/scratch/kocevski/506090/cmap_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=230.545 yref=31.7395 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506090/ft1_filtered_4FGL_J1522.1+3144_daily_bin23.fits scfile=/scratch/kocevski/506090/ft2_4FGL_J1522.1+3144_daily_bin23.fits outfile=/scratch/kocevski/506090/cmap_HighResolution_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.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/506090/ft1_filtered_4FGL_J1522.1+3144_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/506090/ft2_4FGL_J1522.1+3144_daily_bin23.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506090/Model_4FGL_J1522.1+3144_daily_bin23.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/506090/ft1_filtered_4FGL_J1522.1+3144_daily_bin23.fits.....................!
real 59.49
user 58.12
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.306       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.796       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1369       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.343       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7818       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.533       1.0000         .10000E-03   10000.    
    18 'norm      '    .16768E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49478E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6323       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0627       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=   8070.400     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2353 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4404       -.46045E-08** at limit **
   2  Prefactor     .10000E-03    12.524       -.60847E-08** at limit **
   3  norm          .10000E-03    2.0733        .31967E-07** at limit **
   4  Prefactor     33.310        26.820        .18012E-05    .72684E-04
   5  norm          4.8108        6.0493        .22816E-05    .32260E-03
   6  Prefactor     9.3260        17.267       -.61607E-06   -.22750E-03
   7  Prefactor     .10008E-03    4.5481        .14003E-05** at limit **
   8  Prefactor     22.795        9.3244        .45490E-07   -.16682E-04
   9  norm          2.1379        1.5331       -.53851E-07   -.16453E-02
  10  Prefactor     .10000E-03    19.471       -.62283E-05** at limit **
  11  Prefactor     4.3402        8.5399        .16140E-06   -.69371E-04
  12  Prefactor     19.357        18.365        .24969E-06   -.26731E-04
  13  Prefactor     21.341        18.394       -.44556E-06   -.71795E-04
  14  norm          7.7819        1.6043       -.60525E-08   -.23807E-03
  15  Prefactor     .10000E-03    3.8167       -.18086E-07** at limit **
  16  Prefactor     11.535        24.014        .23363E-05    .56497E-04
  17  Prefactor     49.547        21.857        .17747E-05    .21143E-03
  18  norm          .10000E-03    15.374        .46806E-06** at limit **
  19  Prefactor     1.0521        1.0886        .98775E-08    .58386E-04
  20  Prefactor     2.0025        16.104        .36395E-05   -.42318E-03
  21  Prefactor     .10001E-03    4.7488        .39169E-07** at limit **
  22  Prefactor     1.6322        1.8109        .31107E-07   -.12737E-04
  23  Normalizat    .73772        .16960       -.95910E-06   -.21442E-03
  24  Prefactor     1.0627        .13056       -.37109E-07   -.23637E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.3098
  norm       = 4.81078
  Prefactor  = 9.32602
  Prefactor  = 0.000100082
  Prefactor  = 22.7952
  norm       = 2.13793
  Prefactor  = 0.000100002
  Prefactor  = 4.34024
  Prefactor  = 19.357
  Prefactor  = 21.3412
  norm       = 7.78192
  Prefactor  = 0.0001
  Prefactor  = 11.5345
  Prefactor  = 49.5471
  norm       = 0.0001
  Prefactor  = 1.05208
  Prefactor  = 2.0025
  Prefactor  = 0.000100011
  Prefactor  = 1.63221
  Normalizat = 0.737716
  Prefactor  = 1.06272
 **********
 **   18 **HESSE 
 **********

 FCN=   8070.400     FROM HESSE     STATUS=OK           411 CALLS     2764 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4512        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1073        .12629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.310        26.909        .69434E-04   -1.4553    
   5  norm          4.8108        6.0762        .18343E-03   -1.5269    
   6  Prefactor     9.3260        17.084        .13125E-03   -1.5097    
   7  Prefactor     .10008E-03    20.696        .32711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.795        9.3273        .83895E-04   -1.4753    
   9  norm          2.1379        1.4463        .83863E-04   -1.5416    
  10  Prefactor     .10000E-03    19.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3402        8.5382        .19332E-03   -1.5291    
  12  Prefactor     19.357        18.361        .91041E-04   -1.4828    
  13  Prefactor     21.341        18.422        .86700E-04   -1.4784    
  14  norm          7.7819        1.6061        .48495E-04   -1.5150    
  15  Prefactor     .10000E-03    3.8274        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.535        24.019        .11798E-03   -1.5029    
  17  Prefactor     49.547        21.892        .56979E-04   -1.4299    
  18  norm          .10000E-03    15.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0521        1.1028        .92393E-04   -1.5503    
  20  Prefactor     2.0025        57.470        .14629E-02   -1.5425    
  21  Prefactor     .10001E-03    7.2996        .71244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6322        1.8072        .12362E-03   -1.5452    
  23  Normalizat    .73772        .19729        .29791E-03   -1.0242    
  24  Prefactor     1.0627        .15203        .20815E-03   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44112e-09
Minuit parameter uncertainties:
  1  3.08389e-06
  2  1.69741e-06
  3  1.98712e-06
  4  26.9186
  5  6.07698
  6  17.0928
  7  0.00260702
  8  9.32787
  9  1.44635
  10  0.000383292
  11  8.54055
  12  18.3659
  13  18.4274
  14  1.6061
  15  5.18984e-06
  16  24.0394
  17  21.8955
  18  9.42397e-05
  19  1.10287
  20  21.4776
  21  0.000561669
  22  1.80727
  23  0.197476
  24  0.152088
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.782e+00  1.606e+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.063e+00  1.521e-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:  7.377e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.59
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.54e-07 +/- 5.24e-08
Energy Flux (Fixed Index): 7.99e-05 +/- 1.65e-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) = 8070.03506562
delta logL = 0.364516700809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8069.97354791
delta logL = 0.426034407315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2540       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1842       1.0000          .0000       5.0000    
     3 'Normalizat'    .76566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0470       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=   8069.974     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2539        2.0172        .34886E-02    .42694E-03
   2  alpha         2.1842        .22393        .15086        .10628E-03
   3  Normalizat    .76566        .15708        .66226E-01   -.41362E-04
   4  Prefactor     1.0470        .12841        .40091E-01   -.11166E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.25387
  alpha      = 2.18416
  Normalizat = 0.765659
  Prefactor  = 1.04695
 **********
 **   18 **HESSE 
 **********

 FCN=   8069.974     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2539        1.7365        .50763E-04   -1.5133    
   2  alpha         2.1842        .19654        .65365E-03   -.12667    
   3  Normalizat    .76566        .18159        .29301E-03   -1.0136    
   4  Prefactor     1.0470        .14818        .20948E-03   -.91180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97925e-11
Minuit parameter uncertainties:
  1  1.73654
  2  0.19675
  3  0.181735
  4  0.148239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506090': 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) = 8069.97354789
delta logL = 0.426034427559

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.254e+00  1.737e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.184e+00  1.967e-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.047e+00  1.482e-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:  7.657e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.99
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.18 +/- 0.20
Photon Flux (Free Index): 2.30e-07 +/- 5.48e-08
Energy Flux (Free Index): 9.01e-05 +/- 2.27e-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/506090/cmap_HighResolution_245289601_245548801_4FGL_J1522.1+3144_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-07', energy_flux2='9.01e-05', photon_flux_error='5.24e-08', dlogl='4.26e-01', energy_flux='7.99e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-09-12 02:18:35.897577', photon_index_error2='0.20', photon_index2='2.18', ts='65.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.74', time_epoch_completed='1631438315.9', return_code='0', job_id='506090', GAL2='1.05', EG2='0.77', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.48e-08', ts2='65.99', photon_index='2.37' WHERE bin_id='23' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:18:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 506090: <4FGL_J1522.1+3144_daily_bin23> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin23 230.545 31.7395 245289601 245548801 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

