/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 188 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 = 7442
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1024
RA = 230.545, Dec = 31.7395
tmin = 504748801, tmax = 505008001
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='511791', job_status='RUN', time_executed='2021-09-12 02:23:57.646363', time_epoch_executed='1631438637.65' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511791/ft1_4FGL_J1522.1+3144_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511791/ft2_4FGL_J1522.1+3144_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511791/ft1_4FGL_J1522.1+3144_daily_bin1024.fits outfile=/scratch/kocevski/511791/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1024.fits ra=230.545 dec=31.7395 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.26
user 8.02
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511791/ft1_filtered_4FGL_J1522.1+3144_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/511791/ft2_4FGL_J1522.1+3144_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/511791/ltcube_504748801_505008001_4FGL_J1522.1+3144_daily_bin1024.fits outfile=/scratch/kocevski/511791/expmap_504748801_505008001_4FGL_J1522.1+3144_daily_bin1024.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/511791/ltcube_504748801_505008001_4FGL_J1522.1+3144_daily_bin1024.fits
.....................!
real 193.29
user 187.83
sys 5.06

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4985       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.809       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.523       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68875E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41680E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28174       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4898       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .53133       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=   4986.964     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2736 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5000        5.2519        .17478E-05    .99709E-03
   2  Prefactor     .10000E-03    17.362       -.69956E-06** at limit **
   3  norm          6.2032        4.8015        .21675E-06    .24540E-04
   4  Prefactor     .10000E-03    75.157        .27217E-05** at limit **
   5  norm          7.6029        9.2117       -.27037E-06   -.46803E-05
   6  Prefactor     15.463        14.271        .37077E-07   -.36929E-04
   7  Prefactor     .10000E-03    4.1278       -.47819E-07** at limit **
   8  Prefactor     15.812        11.841       -.15427E-07    .47736E-05
   9  norm          2.5560        1.7242       -.29375E-07   -.26933E-03
  10  Prefactor     .10000E-03    22.240        .56346E-05** at limit **
  11  Prefactor     10.524        10.841       -.16430E-06    .21596E-04
  12  Prefactor     .10000E-03    4.9004        .41757E-07** at limit **
  13  Prefactor     .10012E-03    30.104        .17354E-04** at limit **
  14  norm          2.2940        1.5126       -.47118E-06    .19727E-03
  15  Prefactor     4.8650        9.4186        .50105E-05    .89309E-03
  16  Prefactor     .10000E-03    26.550       -.36509E-05** at limit **
  17  Prefactor     .10000E-03    8.5718        .30909E-06** at limit **
  18  norm          .10000E-03    6.1903       -.38889E-09** at limit **
  19  Prefactor     .10001E-03    2.8599        .36749E-05** at limit **
  20  Prefactor     .10000E-03    10.277        .51670E-07** at limit **
  21  Prefactor     .10000E-03    17.033       -.92687E-06** at limit **
  22  Prefactor     .30393        3.0820       -.26702E-05    .14233E-03
  23  Normalizat    1.4895        .20653       -.19325E-06    .18352E-04
  24  Prefactor     .53138        .15946        .58952E-06    .54287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.50004
  Prefactor  = 0.0001
  norm       = 6.20322
  Prefactor  = 0.0001
  norm       = 7.60291
  Prefactor  = 15.4626
  Prefactor  = 0.0001
  Prefactor  = 15.8118
  norm       = 2.55602
  Prefactor  = 0.0001
  Prefactor  = 10.5241
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  norm       = 2.29402
  Prefactor  = 4.86497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.303927
  Normalizat = 1.48947
  Prefactor  = 0.531379
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.964     FROM HESSE     STATUS=OK           403 CALLS     3139 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5000        5.6209        .90536E-03   -1.5284    
   2  Prefactor     .10000E-03    17.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2032        4.8008        .13218E-03   -1.5210    
   4  Prefactor     .10000E-03    75.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6029        9.2074        .14545E-03   -1.5156    
   6  Prefactor     15.463        14.298        .10186E-03   -1.4921    
   7  Prefactor     .10000E-03    4.1432        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.812        11.842        .10073E-03   -1.4912    
   9  norm          2.5560        1.7234        .72639E-04   -1.5388    
  10  Prefactor     .10000E-03    22.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.524        10.832        .12352E-03   -1.5059    
  12  Prefactor     .10000E-03    4.9023        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10012E-03    54.580        .39358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2940        1.5518        .60567E-04   -1.5405    
  15  Prefactor     4.8650        10.852        .91189E-03   -1.5267    
  16  Prefactor     .10000E-03    26.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2060        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    10.633        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .30393        20.274        .21344E-02   -1.5598    
  23  Normalizat    1.4895        .24576        .21601E-03   -.78075    
  24  Prefactor     .53138        .18719        .27429E-03   -1.1056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65765e-09
Minuit parameter uncertainties:
  1  5.62156
  2  1.91665e-05
  3  4.80107
  4  0.000261374
  5  9.20912
  6  14.3015
  7  9.13116e-06
  8  11.8433
  9  1.72339
  10  0.00014238
  11  10.834
  12  4.99996e-06
  13  0.00516219
  14  1.55182
  15  10.8566
  16  0.000105956
  17  5.0181e-06
  18  8.64159e-06
  19  0.00046145
  20  7.10725e-06
  21  1.18879e-05
  22  4.96553
  23  0.245956
  24  0.187405
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.294e+00  1.552e+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:  5.314e-01  1.874e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.489e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.33
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.48e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.59e-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) = 4986.95984595
delta logL = 0.00450923277003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4986.95962634
delta logL = 0.00472884374358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3153       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52943       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=   4986.960     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2875        40.920        .67824E-02    .15092E-03
   2  alpha         2.3143        2.7201        .34950        .39677E-05
   3  Normalizat    1.4938        .16852        .48811E-01   -.32245E-06
   4  Prefactor     .52940        .13848        .62100E-01    .24612E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28753
  alpha      = 2.31434
  Normalizat = 1.49375
  Prefactor  = 0.529402
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.960     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .42E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2875        1.3808        .61486E-04   -1.5405    
   2  alpha         2.3143        .56817        .13483E-01   -.74333E-01
   3  Normalizat    1.4938        .23567        .21578E-03   -.77954    
   4  Prefactor     .52940        .18497        .27477E-03   -1.1065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19937e-14
Minuit parameter uncertainties:
  1  1.38085
  2  0.573202
  3  0.235848
  4  0.185179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511791': 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) = 4986.95962429
delta logL = 0.00473089477873

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  2.288e+00  1.381e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.314e+00  5.732e-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:  5.294e-01  1.852e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.494e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.35
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.31 +/- 0.57
Photon Flux (Free Index): 7.11e-08 +/- 5.73e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/511791/cmap_HighResolution_504748801_505008001_4FGL_J1522.1+3144_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.48e-08', energy_flux2='2.37e-05', photon_flux_error='5.06e-08', dlogl='4.73e-03', energy_flux='2.36e-05', photon_flux2='7.11e-08', job_status='DONE', time_completed='2021-09-12 02:34:07.835735', photon_index_error2='0.57', photon_index2='2.31', ts='8.33', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.49', time_epoch_completed='1631439247.84', return_code='0', job_id='511791', GAL2='0.53', EG2='1.49', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='5.73e-08', ts2='8.35', photon_index='2.37' WHERE bin_id='1024' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 511791: <4FGL_J1522.1+3144_daily_bin1024> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1024 230.545 31.7395 504748801 505008001 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 :                                   577.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

