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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin84
RA = 230.545, Dec = 31.7395
tmin = 261100801, tmax = 261360001
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='506186', job_status='RUN', time_executed='2021-09-12 02:09:24.582023', time_epoch_executed='1631437764.58' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506186/ft1_4FGL_J1522.1+3144_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506186/ft1_4FGL_J1522.1+3144_daily_bin84.fits outfile=/scratch/kocevski/506186/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin84.fits ra=230.545 dec=31.7395 rad=12.0 tmin=261100801.0 tmax=261360001.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.51
user 1.33
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506186/ft1_filtered_4FGL_J1522.1+3144_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/506186/ltcube_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.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/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits
.....................!
real 13.41
user 13.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506186/ft1_filtered_4FGL_J1522.1+3144_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/506186/ltcube_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.fits outfile=/scratch/kocevski/506186/expmap_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.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/506186/ltcube_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.fits
.....................!
real 190.96
user 185.17
sys 5.46

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/506186/ft1_filtered_4FGL_J1522.1+3144_daily_bin84.fits scfile=/scratch/kocevski/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits outfile=/scratch/kocevski/506186/cmap_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.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/506186/ft1_filtered_4FGL_J1522.1+3144_daily_bin84.fits scfile=/scratch/kocevski/506186/ft2_4FGL_J1522.1+3144_daily_bin84.fits outfile=/scratch/kocevski/506186/cmap_HighResolution_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2632       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32071E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    16.839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4200       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0057       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70746       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1523       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=   8236.806     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2305 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4426        5.8676        .21075E-05   -.79449E-04
   2  Prefactor     .10000E-03    11.843        .54127E-06** at limit **
   3  norm          2.8991        2.8846        .15256E-07    .16184E-05
   4  Prefactor     .10000E-03    11.403        .27001E-06** at limit **
   5  norm          11.566        7.9273       -.21185E-06   -.54016E-06
   6  Prefactor     8.8334        12.348       -.20771E-06    .10316E-04
   7  Prefactor     .10000E-03    3.0211       -.21030E-07** at limit **
   8  Prefactor     5.2618        6.5690        .12782E-05   -.28871E-04
   9  norm          .10000E-03    .46271       -.16027E-07** at limit **
  10  Prefactor     .10000E-03    28.968        .41217E-06** at limit **
  11  Prefactor     .10000E-03    10.091       -.41454E-06** at limit **
  12  Prefactor     .10000E-03    6.0991        .25852E-06** at limit **
  13  Prefactor     .10000E-03    24.354       -.14028E-05** at limit **
  14  norm          16.840        2.3525        .23558E-09    .23563E-03
  15  Prefactor     6.3153        10.167        .41636E-06    .54838E-04
  16  Prefactor     9.4377        17.796       -.20292E-05   -.94362E-04
  17  Prefactor     .10000E-03    10.650       -.29403E-06** at limit **
  18  norm          .10000E-03    14.427        .41666E-07** at limit **
  19  Prefactor     .10000E-03    .90249        .10726E-06** at limit **
  20  Prefactor     .10000E-03    14.031        .35284E-06** at limit **
  21  Prefactor     .10000E-03    5.6572       -.13990E-06** at limit **
  22  Prefactor     3.0070        3.5615        .12024E-06    .33900E-05
  23  Normalizat    .70755        .16456       -.72495E-07    .18561E-03
  24  Prefactor     1.1523        .13348       -.10625E-06    .21071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44257
  Prefactor  = 0.0001
  norm       = 2.89911
  Prefactor  = 0.0001
  norm       = 11.5656
  Prefactor  = 8.83338
  Prefactor  = 0.0001
  Prefactor  = 5.26176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8396
  Prefactor  = 6.31529
  Prefactor  = 9.43775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.00702
  Normalizat = 0.707547
  Prefactor  = 1.15227
 **********
 **   18 **HESSE 
 **********

 FCN=   8236.806     FROM HESSE     STATUS=OK           393 CALLS     2698 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4426        5.8846        .95520E-03   -1.5286    
   2  Prefactor     .10000E-03    11.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8991        2.8793        .14934E-03   -1.5367    
   4  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.566        7.9249        .11781E-03   -1.5028    
   6  Prefactor     8.8334        12.350        .13480E-03   -1.5113    
   7  Prefactor     .10000E-03    3.0568        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2618        6.5677        .87601E-03   -1.5249    
   9  norm          .10000E-03    .47145        .60211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.904        .39510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.840        2.3542        .44418E-04   -1.4887    
  15  Prefactor     6.3153        10.139        .15967E-03   -1.5205    
  16  Prefactor     9.4377        17.887        .13057E-03   -1.5093    
  17  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4229        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0070        3.5560        .17844E-03   -1.5361    
  23  Normalizat    .70755        .18834        .31167E-03   -1.0360    
  24  Prefactor     1.1523        .15296        .20864E-03   -.87813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03631e-10
Minuit parameter uncertainties:
  1  5.88536
  2  2.7474e-05
  3  2.87942
  4  8.83399e-06
  5  7.92561
  6  12.3539
  7  2.90574e-06
  8  6.56864
  9  7.84024e-07
  10  2.65023e-05
  11  4.19877e-07
  12  1.61638e-05
  13  4.75133e-05
  14  2.35418
  15  10.1416
  16  17.8969
  17  1.69712e-05
  18  5.42575e-06
  19  3.9343e-06
  20  1.49571e-05
  21  6.4557e-06
  22  3.55629
  23  0.18851
  24  0.153021
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.684e+01  2.354e+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.152e+00  1.530e-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.075e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 197.59
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.49e-07 +/- 7.68e-08
Energy Flux (Fixed Index): 1.73e-04 +/- 2.42e-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) = 8236.62102413
delta logL = 0.18518070173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8236.59574702
delta logL = 0.210457818906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.421       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2814       1.0000          .0000       5.0000    
     3 'Normalizat'    .73056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1395       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=   8236.596     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.421        2.6836        .23989E-02   -.15585E-02
   2  alpha         2.2814        .15264        .98422E-01    .29229E-04
   3  Normalizat    .73056        .16181        .69467E-01    .44618E-04
   4  Prefactor     1.1395        .13293        .36247E-01   -.12879E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4211
  alpha      = 2.28143
  Normalizat = 0.73056
  Prefactor  = 1.13955
 **********
 **   18 **HESSE 
 **********

 FCN=   8236.596     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.421        2.3533        .45644E-04   -1.4873    
   2  alpha         2.2814        .13504        .43199E-03   -.87539E-01
   3  Normalizat    .73056        .18616        .30741E-03   -1.0270    
   4  Prefactor     1.1395        .15281        .20967E-03   -.88212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10383e-11
Minuit parameter uncertainties:
  1  2.35335
  2  0.135108
  3  0.186323
  4  0.152873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506186': 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) = 8236.59574701
delta logL = 0.21045782018

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.742e+01  2.353e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.281e+00  1.351e-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.140e+00  1.529e-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.306e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 199.98
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.28 +/- 0.14
Photon Flux (Free Index): 5.26e-07 +/- 7.63e-08
Energy Flux (Free Index): 1.83e-04 +/- 2.82e-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/506186/cmap_HighResolution_261100801_261360001_4FGL_J1522.1+3144_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-07', energy_flux2='1.83e-04', photon_flux_error='7.68e-08', dlogl='2.10e-01', energy_flux='1.73e-04', photon_flux2='5.26e-07', job_status='DONE', time_completed='2021-09-12 02:20:17.451183', photon_index_error2='0.14', photon_index2='2.28', ts='197.59', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='0.71', time_epoch_completed='1631438417.45', return_code='0', job_id='506186', GAL2='1.14', EG2='0.73', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='7.63e-08', ts2='199.98', photon_index='2.37' WHERE bin_id='84' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 506186: <4FGL_J1522.1+3144_daily_bin84> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin84 230.545 31.7395 261100801 261360001 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.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

