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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin59
RA = 230.545, Dec = 31.7395
tmin = 254620801, tmax = 254880001
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='506146', job_status='RUN', time_executed='2021-09-12 02:09:14.633535', time_epoch_executed='1631437754.63' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506146

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506146/ft1_4FGL_J1522.1+3144_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506146/ft2_4FGL_J1522.1+3144_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506146/ft1_4FGL_J1522.1+3144_daily_bin59.fits outfile=/scratch/kocevski/506146/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin59.fits ra=230.545 dec=31.7395 rad=12.0 tmin=254620801.0 tmax=254880001.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.38
user 1.16
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506146/ft2_4FGL_J1522.1+3144_daily_bin59.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/506146/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/506146/ft1_filtered_4FGL_J1522.1+3144_daily_bin59.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506146/ft1_filtered_4FGL_J1522.1+3144_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/506146/ft2_4FGL_J1522.1+3144_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/506146/ltcube_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.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/506146/ft2_4FGL_J1522.1+3144_daily_bin59.fits
.....................!
real 14.70
user 14.16
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506146/ft1_filtered_4FGL_J1522.1+3144_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/506146/ft2_4FGL_J1522.1+3144_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/506146/ltcube_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.fits outfile=/scratch/kocevski/506146/expmap_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.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/506146/ltcube_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.fits
.....................!
real 192.02
user 186.61
sys 4.99

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/506146/ft1_filtered_4FGL_J1522.1+3144_daily_bin59.fits scfile=/scratch/kocevski/506146/ft2_4FGL_J1522.1+3144_daily_bin59.fits outfile=/scratch/kocevski/506146/cmap_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13178E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8099       1.0000         .10000E-03   10000.    
     9 'norm      '    .23170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.592       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4829       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60043       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2183       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=   7644.127     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3522 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6045       -.85355E-09** at limit **
   2  Prefactor     .10000E-03    37.499       -.34397E-05** at limit **
   3  norm          .10000E-03    1.4330        .58541E-08** at limit **
   4  Prefactor     .10000E-03    39.303        .40597E-05** at limit **
   5  norm          .10000E-03    2.1339        .39960E-08** at limit **
   6  Prefactor     9.9129        10.934       -.10677E-06    .24525E-04
   7  Prefactor     .10000E-03    6.6550       -.11911E-06** at limit **
   8  Prefactor     4.8100        3.9872        .40760E-06   -.95339E-03
   9  norm          .23176        1.2735       -.28617E-06   -.13088E-03
  10  Prefactor     57.095        82.814        .41743E-05    .44678E-04
  11  Prefactor     11.294        9.6036       -.87270E-07   -.23699E-04
  12  Prefactor     10.667        17.723       -.22871E-05   -.45954E-04
  13  Prefactor     .10000E-03    48.760        .90063E-06** at limit **
  14  norm          14.591        2.1322       -.99715E-08    .47031E-04
  15  Prefactor     .10000E-03    7.7883        .13262E-06** at limit **
  16  Prefactor     14.135        20.070       -.20145E-05   -.36768E-04
  17  Prefactor     .10000E-03    4.6304       -.17485E-07** at limit **
  18  norm          .10000E-03    3.5256       -.77661E-08** at limit **
  19  Prefactor     1.4832        2.3592        .74632E-07   -.17866E-03
  20  Prefactor     9.8998        16.736        .23926E-06   -.10309E-03
  21  Prefactor     8.7796        9.6157        .27218E-06    .43358E-05
  22  Prefactor     .10000E-03    1.6577        .39706E-07** at limit **
  23  Normalizat    .60035        .18148        .31326E-06    .19705E-04
  24  Prefactor     1.2184        .14314       -.19006E-06    .48606E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.91294
  Prefactor  = 0.0001
  Prefactor  = 4.81003
  norm       = 0.231758
  Prefactor  = 57.0946
  Prefactor  = 11.2939
  Prefactor  = 10.6674
  Prefactor  = 0.000100002
  norm       = 14.5909
  Prefactor  = 0.0001
  Prefactor  = 14.1349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.48316
  Prefactor  = 9.89975
  Prefactor  = 8.77958
  Prefactor  = 0.0001
  Normalizat = 0.600345
  Prefactor  = 1.21836
 **********
 **   18 **HESSE 
 **********

 FCN=   7644.127     FROM HESSE     STATUS=OK           399 CALLS     3921 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6202        .13776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4428        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1341        .12473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9129        10.907        .12726E-03   -1.5078    
   7  Prefactor     .10000E-03    6.7688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8100        7.4579        .91718E-03   -1.5269    
   9  norm          .23176        2.5942        .17173E-02   -1.5612    
  10  Prefactor     57.095        82.274        .53093E-04   -1.4195    
  11  Prefactor     11.294        9.5947        .11920E-03   -1.5036    
  12  Prefactor     10.667        17.729        .12249E-03   -1.5055    
  13  Prefactor     .10000E-03    50.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.591        2.1325        .45394E-04   -1.4944    
  15  Prefactor     .10000E-03    7.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.135        20.058        .10651E-03   -1.4956    
  17  Prefactor     .10000E-03    4.6321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5288        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4832        2.3523        .16073E-03   -1.5464    
  20  Prefactor     9.8998        16.954        .63666E-03   -1.5079    
  21  Prefactor     8.7796        9.6194        .13528E-03   -1.5115    
  22  Prefactor     .10000E-03    5.6323        .21618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60035        .20056        .33376E-03   -1.0797    
  24  Prefactor     1.2184        .16120        .20258E-03   -.85768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28914e-08
Minuit parameter uncertainties:
  1  3.43274e-07
  2  9.87171e-05
  3  1.52156e-07
  4  0.000104418
  5  1.43646e-07
  6  10.9089
  7  1.54694e-05
  8  7.4593
  9  1.55054
  10  82.4386
  11  9.59602
  12  17.7373
  13  0.000614447
  14  2.13248
  15  9.64663e-06
  16  20.0678
  17  1.20208e-06
  18  8.51828e-07
  19  2.3524
  20  16.962
  21  9.62114
  22  2.76888e-05
  23  0.200808
  24  0.161266
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.459e+01  2.132e+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.218e+00  1.613e-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:  6.003e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 137.23
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.76e-07 +/- 6.95e-08
Energy Flux (Fixed Index): 1.50e-04 +/- 2.19e-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) = 7644.11499576
delta logL = 0.0122099052687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7644.10979956
delta logL = 0.0174061084836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.412       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4009       1.0000          .0000       5.0000    
     3 'Normalizat'    .59185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2232       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=   7644.110     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.412        3.0541        .26376E-02    .91790E-03
   2  alpha         2.4009        .21727        .10907        .60897E-04
   3  Normalizat    .59185        .17391        .75857E-01    .11835E-03
   4  Prefactor     1.2232        .14245        .34104E-01   -.41276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4118
  alpha      = 2.40089
  Normalizat = 0.591853
  Prefactor  = 1.22318
 **********
 **   18 **HESSE 
 **********

 FCN=   7644.110     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.412        2.3134        .44919E-04   -1.4949    
   2  alpha         2.4009        .16638        .47757E-03   -.39656E-01
   3  Normalizat    .59185        .19429        .33586E-03   -1.0833    
   4  Prefactor     1.2232        .15906        .20222E-03   -.85621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09347e-11
Minuit parameter uncertainties:
  1  2.31345
  2  0.166504
  3  0.194515
  4  0.159125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506146': 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) = 7644.10979956
delta logL = 0.01740610866

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.441e+01  2.313e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.401e+00  1.665e-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.223e+00  1.591e-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:  5.919e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 137.25
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.40 +/- 0.17
Photon Flux (Free Index): 4.83e-07 +/- 8.03e-08
Energy Flux (Free Index): 1.48e-04 +/- 2.46e-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/506146/cmap_HighResolution_254620801_254880001_4FGL_J1522.1+3144_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-07', energy_flux2='1.48e-04', photon_flux_error='6.95e-08', dlogl='1.74e-02', energy_flux='1.50e-04', photon_flux2='4.83e-07', job_status='DONE', time_completed='2021-09-12 02:21:49.267386', photon_index_error2='0.17', photon_index2='2.40', ts='137.23', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='0.60', time_epoch_completed='1631438509.27', return_code='0', job_id='506146', GAL2='1.22', EG2='0.59', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='8.03e-08', ts2='137.25', photon_index='2.37' WHERE bin_id='59' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 506146: <4FGL_J1522.1+3144_daily_bin59> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin59 230.545 31.7395 254620801 254880001 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

