aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 26 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7499
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1777
RA = 230.545, Dec = 31.7395
tmin = 699926401, tmax = 700185601
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='918210', job_status='RUN', time_executed='2023-03-11 00:55:58.790552', time_epoch_executed='1678524958.79' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918210/ft1_4FGL_J1522.1+3144_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918210/ft1_4FGL_J1522.1+3144_daily_bin1777.fits outfile=/scratch/kocevski/918210/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1777.fits ra=230.545 dec=31.7395 rad=12.0 tmin=699926401.0 tmax=700185601.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 3.61
user 3.38
sys 0.22

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

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

Number of photons that the gtmktime cut: 664

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918210/ft1_filtered_4FGL_J1522.1+3144_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/918210/ltcube_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits outfile=/scratch/kocevski/918210/expmap_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.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/918210/ltcube_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits
.....................!
real 192.52
user 186.58
sys 5.62

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/918210/ft1_filtered_4FGL_J1522.1+3144_daily_bin1777.fits scfile=/scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits outfile=/scratch/kocevski/918210/cmap_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.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/918210/ft1_filtered_4FGL_J1522.1+3144_daily_bin1777.fits scfile=/scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits outfile=/scratch/kocevski/918210/cmap_HighResolution_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918210/ft1_filtered_4FGL_J1522.1+3144_daily_bin1777.fits', '/scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits', expMap='/scratch/kocevski/918210/expmap_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits', expCube='/scratch/kocevski/918210/ltcube_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918210/Model_4FGL_J1522.1+3144_daily_bin1777.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  0.000e+00  1.000e+06 ( 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 -5.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/918210/ft1_filtered_4FGL_J1522.1+3144_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/918210/ft2_4FGL_J1522.1+3144_daily_bin1777.fits
Exposure map: /scratch/kocevski/918210/expmap_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits
Exposure cube: /scratch/kocevski/918210/ltcube_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918210/Model_4FGL_J1522.1+3144_daily_bin1777.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) = 7390.68173816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79062E-04   1.0000          .0000       .10000E+07
     2 'norm      '    3.2032       1.0000          .0000       .10000E+07
     3 'Prefactor '    67.013       1.0000          .0000       .10000E+07
     4 'norm      '    .79140E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.974       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14770E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .64245E-02   1.0000          .0000       .10000E+07
     8 'norm      '    3.2386       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33444E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .66432E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .35438E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.4892       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41973E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.927       1.0000          .0000       .10000E+07
    15 'norm      '    15.737       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21959E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    30.691       1.0000          .0000       .10000E+07
    18 'Prefactor '    .75786E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.4625       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1496       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7390.681     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1700 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.4937        .43433E-07** at limit **
   2  norm          3.2056        3.5082       -.71774E-07    .57602E-03
   3  Prefactor     66.660        31.565       -.27085E-06    .80490E-01
   4  norm          .64393E-08    3.4325       -.18728E-05** at limit **
   5  Prefactor     23.983        1.8048       -.63068E-07    .29686E-01
   6  Prefactor     .29976E-08    3.0835        .13968E-05** at limit **
   7  Prefactor     .36637E-08    9.7559        .12653E-06** at limit **
   8  norm          3.2420        1.6990        .30423E-07   -.84111E-03
   9  Prefactor      .0000        23.138       -.93078E-07** at limit **
  10  Prefactor     .29976E-08    4.6355       -.70232E-06** at limit **
  11  Prefactor     .26090E-08    5.8403        .17597E-06** at limit **
  12  norm          1.4897        1.0220       -.11460E-07    .42858E-03
  13  Prefactor     .27756E-09    2.9376       -.63390E-06** at limit **
  14  Prefactor     11.963        18.631       -.57466E-06   -.17952E-01
  15  norm          15.729        7.2189       -.15514E-06    .10468    
  16  Prefactor      .0000        1.2898        .85985E-07** at limit **
  17  Prefactor     31.100        23.378       -.31460E-06    .77747E-01
  18  Prefactor     .68279E-08    3.8076        .13042E-05** at limit **
  19  Prefactor     1.4571        2.6530       -.15852E-06    .91506E-03
  20  Normalizat    1.1493        .20646        .19910E-05   -.18893E-04
  21  Prefactor     .91695        .16231        .51597E-06   -.25128E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.20559
  Prefactor  = 66.6598
  norm       = 6.43929e-09
  Prefactor  = 23.9835
  Prefactor  = 2.9976e-09
  Prefactor  = 3.66374e-09
  norm       = 3.24205
  Prefactor  = 0
  Prefactor  = 2.9976e-09
  Prefactor  = 2.60902e-09
  norm       = 1.48973
  Prefactor  = 2.77556e-10
  Prefactor  = 11.9626
  norm       = 15.7286
  Prefactor  = 0
  Prefactor  = 31.0996
  Prefactor  = 6.82787e-09
  Prefactor  = 1.45713
  Normalizat = 1.14933
  Prefactor  = 0.916952
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.681     FROM HESSE     STATUS=OK           355 CALLS     2055 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.4906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2056        3.5176        .56585E-03   -1.5672    
   3  Prefactor     66.660        38.457        .12216E-03   -1.5545    
   4  norm          .64393E-08    3.4478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.983        12.679        .20428E-03   -1.5610    
   6  Prefactor     .29976E-08    3.0918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .36637E-08    9.7292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2420        1.7027        .56260E-03   -1.5672    
   9  Prefactor      .0000        23.117        .16274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .29976E-08    4.6443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .26090E-08    5.8436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4897        1.0336        .87829E-03   -1.5684    
  13  Prefactor     .27756E-09    2.9376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.963        24.401        .28981E-03   -1.5639    
  15  norm          15.729        15.665        .25221E-03   -1.5629    
  16  Prefactor      .0000        1.2859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.100        32.390        .18053E-03   -1.5596    
  18  Prefactor     .68279E-08    3.8268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4571        2.6886        .88915E-03   -1.5684    
  20  Normalizat    1.1493        .17865        .58196E-01   -.88183    
  21  Prefactor     .91695        .13651        .45222E-01   -.95551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55266e-07
Minuit parameter uncertainties:
  1  7.82531e-06
  2  3.51761
  3  38.4572
  4  0.000298198
  5  12.6791
  6  0.000192166
  7  0.000377814
  8  1.70267
  9  1.40473e-05
  10  0.000235341
  11  0.000245858
  12  1.03363
  13  5.82029e-05
  14  24.4008
  15  15.6651
  16  1.07297e-06
  17  32.3904
  18  0.000323687
  19  2.68861
  20  0.178745
  21  0.136561
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.490e+00  1.034e+00  0.000e+00  1.000e+06 ( 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 -5.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:  9.170e-01  1.366e-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.149e+00  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.06e-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) = 7390.59513019
delta logL = 0.0853963416639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7390.59425418
delta logL = 0.0862723473829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4845       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1399       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91221       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=   7390.594     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4845        40.278        .88019E-03    .16362E-01
   2  alpha         2.1399        2.6381        .41292        .25720E-04
   3  Normalizat    1.1594        .16783        .57976E-01    .47574E-04
   4  Prefactor     .91221        .17340        .45160E-01   -.93555E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48446
  alpha      = 2.13987
  Normalizat = 1.15939
  Prefactor  = 0.912208
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.594     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4845        1.0574        .71156E-05   -1.5684    
   2  alpha         2.1399        .54545        .15443E-01   -.14456    
   3  Normalizat    1.1594        .20283        .25639E-03   -.87867    
   4  Prefactor     .91221        .16162        .22807E-03   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20958e-10
Minuit parameter uncertainties:
  1  1.05741
  2  0.549971
  3  0.202965
  4  0.161709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918210': 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) = 7390.59425418
delta logL = 0.0862723475602

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.484e+00  1.057e+00  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.140e+00  5.500e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00 -5.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:  9.122e-01  1.617e-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.159e+00  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 230.545 31.739
Photon Index (Free Index): 2.14 +/- 0.55
Photon Flux (Free Index): 4.00e-08 +/- 3.53e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.23e-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/918210/cmap_HighResolution_699926401_700185601_4FGL_J1522.1+3144_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='1.66e-05', photon_flux_error='3.37e-08', dlogl='8.63e-02', energy_flux='1.53e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2023-03-11 01:05:23.293541', photon_index_error2='0.55', photon_index2='2.14', ts='4.18', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.15', time_epoch_completed='1678525523.29', return_code='0', job_id='918210', GAL2='0.91', EG2='1.16', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.53e-08', ts2='4.34', photon_index='2.37' WHERE bin_id='1777' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:05:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 918210: <4FGL_J1522.1+3144_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1522.1+3144_daily_bin1777> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Mar 11 00:55:23 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:55:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:55:24 2023
Terminated at Sat Mar 11 01:05:24 2023
Results reported at Sat Mar 11 01:05:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1777 230.545 31.7395 699926401 700185601 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            601 sec.

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

