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


Performing analysis on: 4FGL_J1522.1+3144_daily_bin1769
RA = 230.545, Dec = 31.7395
tmin = 697852801, tmax = 698112001
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='438425', job_status='RUN', time_executed='2023-02-15 01:01:01.714285', time_epoch_executed='1676451661.71' WHERE source_name='4FGL J1522.1+3144' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438425/ft1_4FGL_J1522.1+3144_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438425/ft1_4FGL_J1522.1+3144_daily_bin1769.fits outfile=/scratch/kocevski/438425/ft1_filteredMKT_4FGL_J1522.1+3144_daily_bin1769.fits ra=230.545 dec=31.7395 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.49
user 4.26
sys 0.20

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

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

Number of photons that the gtmktime cut: 628

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438425/ft1_filtered_4FGL_J1522.1+3144_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/438425/ltcube_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.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/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits
.....................!
real 12.05
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438425/ft1_filtered_4FGL_J1522.1+3144_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/438425/ltcube_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.fits outfile=/scratch/kocevski/438425/expmap_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.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/438425/ltcube_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.fits
.....................!
real 189.91
user 185.21
sys 4.38

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/438425/ft1_filtered_4FGL_J1522.1+3144_daily_bin1769.fits scfile=/scratch/kocevski/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits outfile=/scratch/kocevski/438425/cmap_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438425/ft1_filtered_4FGL_J1522.1+3144_daily_bin1769.fits scfile=/scratch/kocevski/438425/ft2_4FGL_J1522.1+3144_daily_bin1769.fits outfile=/scratch/kocevski/438425/cmap_HighResolution_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13096E-04   1.0000          .0000       .10000E+07
     2 'norm      '    2.5729       1.0000          .0000       .10000E+07
     3 'Prefactor '    387.65       1.0000          .0000       .10000E+07
     4 'norm      '    .11494E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.4689       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49510E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.135       1.0000          .0000       .10000E+07
     8 'norm      '    .22926E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82592E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .89126E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    22.848       1.0000          .0000       .10000E+07
    12 'norm      '    .17667       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42691E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .29591E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .41582E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .53177E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14999E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.3986       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.0646       1.0000          .0000       .10000E+07
    20 'Normalizat'    .77942       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1489       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=   6721.630     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2151 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.4525       -.96863E-08** at limit **
   2  norm          2.5726        2.5252       -.15316E-06    .14593E-02
   3  Prefactor     388.89        63.400        .29307E-06   -.66504E-03
   4  norm           .0000        5.3079        .26168E-06** at limit **
   5  Prefactor     9.4492        12.024        .84544E-07   -.12989E-03
   6  Prefactor      .0000        2.1502       -.42586E-06** at limit **
   7  Prefactor     12.137        9.4436       -.13200E-06    .39246E-03
   8  norm           .0000        .90752       -.23336E-06** at limit **
   9  Prefactor     .16653E-09    28.769        .90603E-06** at limit **
  10  Prefactor      .0000        36.312       -.15124E-06** at limit **
  11  Prefactor     22.752        19.017        .61705E-07    .54143E-04
  12  norm          .17705        .74013        .27869E-06** at limit **
  13  Prefactor     .55511E-10    7.2526        .66185E-06** at limit **
  14  Prefactor     .94369E-09    65.247       -.25792E-05** at limit **
  15  norm           .0000        7.3514        .27756E-06** at limit **
  16  Prefactor      .0000        4.6992        .23781E-06** at limit **
  17  Prefactor     .16653E-09    15.312       -.88490E-06** at limit **
  18  Prefactor     8.4025        7.4878       -.55414E-08   -.10540E-04
  19  Prefactor     2.0646        2.2678       -.30058E-06    .30253E-02
  20  Normalizat    .77897        .20277       -.83109E-05    .99029E-05
  21  Prefactor     1.1490        .16710        .66847E-05   -.50650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 2.5726
  Prefactor  = 388.894
  norm       = 0
  Prefactor  = 9.44924
  Prefactor  = 0
  Prefactor  = 12.1369
  norm       = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 22.7518
  norm       = 0.177051
  Prefactor  = 5.55112e-11
  Prefactor  = 9.4369e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 8.40252
  Prefactor  = 2.0646
  Normalizat = 0.778974
  Prefactor  = 1.14903
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.630     FROM HESSE     STATUS=OK           357 CALLS     2508 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.4529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5726        2.5177        .63606E-03   -1.5676    
   3  Prefactor     388.89        63.240        .50800E-04   -1.5314    
   4  norm           .0000        5.2994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4492        12.014        .32543E-03   -1.5646    
   6  Prefactor      .0000        2.1491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.137        9.4408        .28731E-03   -1.5638    
   8  norm           .0000        .88791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    28.805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        36.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.752        18.921        .20926E-03   -1.5613    
  12  norm          .17705        .73592        .12207E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    7.2359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94369E-09    64.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        7.3460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        4.5933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-09    15.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4025        7.4853        .34568E-03   -1.5650    
  19  Prefactor     2.0646        2.2724        .71881E-03   -1.5679    
  20  Normalizat    .77897        .17732        .65761E-01   -1.0085    
  21  Prefactor     1.1490        .14480        .35968E-01   -.87914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15471e-09
Minuit parameter uncertainties:
  1  8.82345e-07
  2  2.51767
  3  63.2403
  4  1.06366e-05
  5  12.0137
  6  1.49044e-05
  7  9.44084
  8  5.65676e-06
  9  0.000137411
  10  3.00079e-05
  11  18.9207
  12  0.721929
  13  4.38178e-05
  14  0.00049785
  15  1.71035e-05
  16  1.47156e-05
  17  9.99579e-05
  18  7.48527
  19  2.27239
  20  0.177453
  21  0.14485
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.771e-01  7.219e-01  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:  1.149e+00  1.449e-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.790e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 230.545 31.739
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438425/likelihoodResults_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.txt

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) = 6721.62797114
delta logL = 0.0022075812949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6721.62779912
delta logL = 0.00237960187042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18135       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6349       1.0000          .0000       5.0000    
     3 'Normalizat'    .77647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1502       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6721.628     FROM MIGRAD    STATUS=FAILED        97 CALLS      291 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18296        91.797        .97319E-04** at limit **
   2  alpha         2.6502        2.5151        .50000       -.25335E-04
   3  Normalizat    .77599        .84792E-01    .29147E-03    .32748E-03
   4  Prefactor     1.1505        .58408E-01    .20755E-03    .14815E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6721.628     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      379 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18296        91.797        .90698E-05** at limit **
   2  alpha         2.6502        2.5151        .24837E-02   -.25335E-04
   3  Normalizat    .77599        .84792E-01    .68465E-04    .32748E-03
   4  Prefactor     1.1505        .58408E-01    .51517E-04    .14815E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6721.628     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      424 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18296        .71344       -.37583E-08** at limit **
   2  alpha         2.6502        .74420        .94764E-05    .23721E-05
   3  Normalizat    .77599        .19389       -.12173E-06    .31006E-03
   4  Prefactor     1.1505        .16434        .60669E-07    .13290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.182962
  alpha      = 2.65022
  Normalizat = 0.775989
  Prefactor  = 1.1505
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.628     FROM HESSE     STATUS=OK            27 CALLS      451 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18296        .73722        .77855E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6502        3.7552        .16974E-01    .60125E-01
   3  Normalizat    .77599        .20091        .23318E-05   -1.0097    
   4  Prefactor     1.1505        .16690        .83019E-05   -.87868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15301e-10
Minuit parameter uncertainties:
  1  0.734528
  2  4.90849
  3  0.201106
  4  0.166979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438425': 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) = 6721.62778921
delta logL = 0.0023895082777

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  1.830e-01  7.345e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.650e+00  4.908e+00  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:  1.150e+00  1.670e-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.760e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 230.545 31.739

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/438425/cmap_HighResolution_697852801_698112001_4FGL_J1522.1+3144_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2023-02-15 01:11:42.717850', job_id='438425', GAL2='1.15', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1676452302.72', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.39e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1769' AND source_name='4FGL J1522.1+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:11:42 PST 2023


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

Job <4FGL_J1522.1+3144_daily_bin1769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 15 01:00:24 2023
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:00:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:00:25 2023
Terminated at Wed Feb 15 01:11:43 2023
Results reported at Wed Feb 15 01:11:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1522.1+3144_daily_bin1769 230.545 31.7395 697852801 698112001 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

