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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin21
RA = 230.545, Dec = 31.7395
tmin = 244771201, tmax = 245030401
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='506086', job_status='RUN', time_executed='2021-09-12 02:05:36.353716', time_epoch_executed='1631437536.35' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506086/ft1_4FGL_J1522.1+3144_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506086/ft2_4FGL_J1522.1+3144_daily_bin21.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506086/ft1_filtered_4FGL_J1522.1+3144_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/506086/ft2_4FGL_J1522.1+3144_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/506086/ltcube_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.fits outfile=/scratch/kocevski/506086/expmap_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.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/506086/ltcube_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.fits
.....................!
real 191.53
user 186.53
sys 4.56

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/506086/ft1_filtered_4FGL_J1522.1+3144_daily_bin21.fits scfile=/scratch/kocevski/506086/ft2_4FGL_J1522.1+3144_daily_bin21.fits outfile=/scratch/kocevski/506086/cmap_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506086/ft1_filtered_4FGL_J1522.1+3144_daily_bin21.fits scfile=/scratch/kocevski/506086/ft2_4FGL_J1522.1+3144_daily_bin21.fits outfile=/scratch/kocevski/506086/cmap_HighResolution_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.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 1.23
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44900E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.9178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4241       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.327       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.382       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6976       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10178E-03   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 '    .81704       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74868       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1831       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=   6854.516     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2700 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6597       -.10470E-06** at limit **
   2  Prefactor     .10000E-03    14.128        .77010E-07** at limit **
   3  norm          .10000E-03    3.1829        .33726E-06** at limit **
   4  Prefactor     .10000E-03    15.995        .39530E-06** at limit **
   5  norm          4.9164        5.6931       -.18823E-06   -.12935E-04
   6  Prefactor     10.161        13.691       -.10192E-05   -.37083E-04
   7  Prefactor     2.4143        14.411        .66573E-05    .74173E-04
   8  Prefactor     18.330        11.057        .26413E-06   -.33202E-04
   9  norm          2.9794        2.7277       -.13992E-05   -.39148E-03
  10  Prefactor     16.766        147.95        .12306E-05   -.38528E-04
  11  Prefactor     7.1331        7.3861        .19960E-06   -.85568E-04
  12  Prefactor     29.641        21.526        .64882E-07   -.15154E-05
  13  Prefactor     13.385        17.427       -.80274E-07    .10249E-04
  14  norm          8.6982        1.8762       -.92118E-07   -.52741E-03
  15  Prefactor     .10000E-03    9.5885        .22601E-06** at limit **
  16  Prefactor     .10000E-03    16.461        .12429E-06** at limit **
  17  Prefactor     .10000E-03    15.298       -.11444E-05** at limit **
  18  norm          .10000E-03    10.251       -.89285E-06** at limit **
  19  Prefactor     .10000E-03    1.5013        .10365E-05** at limit **
  20  Prefactor     .10000E-03    16.137        .16565E-06** at limit **
  21  Prefactor     .10000E-03    7.8083        .35563E-06** at limit **
  22  Prefactor     .81719        2.6910        .15919E-05   -.48133E-04
  23  Normalizat    .74847        .19530        .32953E-05   -.42065E-03
  24  Prefactor     1.1833        .15484       -.34209E-05   -.18099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.91645
  Prefactor  = 10.1613
  Prefactor  = 2.41434
  Prefactor  = 18.3298
  norm       = 2.97941
  Prefactor  = 16.766
  Prefactor  = 7.13315
  Prefactor  = 29.6413
  Prefactor  = 13.385
  norm       = 8.69816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.817189
  Normalizat = 0.748473
  Prefactor  = 1.18328
 **********
 **   18 **HESSE 
 **********

 FCN=   6854.516     FROM HESSE     STATUS=OK           399 CALLS     3099 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.504        .30631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3021        .28856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9164        5.6883        .18137E-03   -1.5264    
   6  Prefactor     10.161        13.626        .12570E-03   -1.5070    
   7  Prefactor     2.4143        14.664        .26287E-03   -1.5397    
   8  Prefactor     18.330        11.058        .93557E-04   -1.4851    
   9  norm          2.9794        2.7036        .93743E-04   -1.5363    
  10  Prefactor     16.766        149.11        .97194E-04   -1.4889    
  11  Prefactor     7.1331        7.3815        .15019E-03   -1.5174    
  12  Prefactor     29.641        21.514        .73590E-04   -1.4619    
  13  Prefactor     13.385        17.432        .10950E-03   -1.4976    
  14  norm          8.6982        1.8741        .49172E-04   -1.5118    
  15  Prefactor     .10000E-03    9.6654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4860        .19090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81719        2.6979        .23655E-03   -1.5527    
  23  Normalizat    .74847        .21321        .30403E-03   -1.0201    
  24  Prefactor     1.1833        .16841        .20809E-03   -.86847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02634e-09
Minuit parameter uncertainties:
  1  4.61375e-05
  2  2.01361e-05
  3  6.85141e-06
  4  1.69894e-06
  5  5.68888
  6  13.6299
  7  11.9045
  8  11.0592
  9  2.70373
  10  100.335
  11  7.38245
  12  21.5195
  13  17.4384
  14  1.87413
  15  8.6306e-06
  16  9.97576e-06
  17  3.63949e-05
  18  1.97961e-05
  19  8.52481e-05
  20  1.6175e-06
  21  1.3736e-05
  22  2.69826
  23  0.213451
  24  0.168487
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.698e+00  1.874e+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.183e+00  1.685e-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.485e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 60.27
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.84e-07 +/- 6.11e-08
Energy Flux (Fixed Index): 8.94e-05 +/- 1.93e-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) = 6854.50852343
delta logL = 0.0073440147371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6854.50687878
delta logL = 0.0089886661799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7843       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3346       1.0000          .0000       5.0000    
     3 'Normalizat'    .75688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1786       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=   6854.507     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      195 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7843        3.5771        .33810E-02   -.19309E-02
   2  alpha         2.3346        .45427        .16974        .37575E-04
   3  Normalizat    .75688        .18557        .68372E-01    .34286E-04
   4  Prefactor     1.1786        .15015        .35159E-01   -.85452E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.78434
  alpha      = 2.33457
  Normalizat = 0.756882
  Prefactor  = 1.17856
 **********
 **   18 **HESSE 
 **********

 FCN=   6854.507     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7843        1.9999        .49745E-04   -1.5115    
   2  alpha         2.3346        .26442        .72368E-02   -.66219E-01
   3  Normalizat    .75688        .20672        .30254E-03   -1.0169    
   4  Prefactor     1.1786        .16783        .20845E-03   -.86994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96644e-10
Minuit parameter uncertainties:
  1  1.99992
  2  0.26492
  3  0.206934
  4  0.167902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506086': 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) = 6854.50687878
delta logL = 0.00898866702755

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.784e+00  2.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.335e+00  2.649e-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.179e+00  1.679e-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.569e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.96
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.33 +/- 0.26
Photon Flux (Free Index): 2.78e-07 +/- 7.46e-08
Energy Flux (Free Index): 9.08e-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/506086/cmap_HighResolution_244771201_245030401_4FGL_J1522.1+3144_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-07', energy_flux2='9.08e-05', photon_flux_error='6.11e-08', dlogl='8.99e-03', energy_flux='8.94e-05', photon_flux2='2.78e-07', job_status='DONE', time_completed='2021-09-12 02:16:09.215356', photon_index_error2='0.26', photon_index2='2.33', ts='60.27', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.75', time_epoch_completed='1631438169.22', return_code='0', job_id='506086', GAL2='1.18', EG2='0.76', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='7.46e-08', ts2='59.96', photon_index='2.37' WHERE bin_id='21' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 506086: <4FGL_J1522.1+3144_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin21 230.545 31.7395 244771201 245030401 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 :                                   631.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            647 sec.

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

