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


Performing analysis on: 4FGL_J0144.6+2705_daily_bin1725
RA = 26.1502, Dec = 27.0899
tmin = 686448001, tmax = 686707201
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='875442', job_status='RUN', time_executed='2022-10-06 00:11:14.020101', time_epoch_executed='1665040274.02' WHERE source_name='4FGL J0144.6+2705' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875442/ft1_4FGL_J0144.6+2705_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875442/ft1_4FGL_J0144.6+2705_daily_bin1725.fits outfile=/scratch/kocevski/875442/ft1_filteredMKT_4FGL_J0144.6+2705_daily_bin1725.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=686448001.0 tmax=686707201.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.76
user 4.37
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.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/875442/ft1_filteredMKT_4FGL_J0144.6+2705_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.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.15

Number of photons that the gtmktime cut: 456

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/875442/ltcube_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.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/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits
.....................!
real 12.19
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875442/ltcube_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits outfile=/scratch/kocevski/875442/expmap_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.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/875442/ltcube_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits
.....................!
real 193.48
user 186.54
sys 4.81

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0144.6+2705 @ 26.1502 27.0899

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits outfile=/scratch/kocevski/875442/cmap_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.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=26.1502 yref=27.0899 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits outfile=/scratch/kocevski/875442/cmap_HighResolution_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.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=26.1502 yref=27.0899 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/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875442/Model_4FGL_J0144.6+2705_daily_bin1725.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/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits.....................!
real 57.97
user 56.23
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits', '/scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits', expMap='/scratch/kocevski/875442/expmap_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits', expCube='/scratch/kocevski/875442/ltcube_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875442/Model_4FGL_J0144.6+2705_daily_bin1725.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0144.6+2705'

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.270e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875442/ft1_filtered_4FGL_J0144.6+2705_daily_bin1725.fits
Spacecraft file(s): /scratch/kocevski/875442/ft2_4FGL_J0144.6+2705_daily_bin1725.fits
Exposure map: /scratch/kocevski/875442/expmap_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits
Exposure cube: /scratch/kocevski/875442/ltcube_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875442/Model_4FGL_J0144.6+2705_daily_bin1725.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) = 4840.44474432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.650       1.0000          .0000       .10000E+07
     2 'norm      '    1.3462       1.0000          .0000       .10000E+07
     3 'norm      '    4.4208       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.056       1.0000          .0000       .10000E+07
     5 'Prefactor '    .72720E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1508       1.0000          .0000       .10000E+07
     7 'Prefactor '    .81858E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.4238       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.3347       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59309E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22728E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .36959E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.384       1.0000          .0000       .10000E+07
    14 'Prefactor '    .26218E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .28274       1.0000          .0000       .10000E+07
    16 'norm      '    .65278E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40497       1.0000          .0000       .10000E+07
    18 'norm      '     .0000       1.0000          .0000       .10000E+07
    19 'Normalizat'    .91002       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4840.031     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1186 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.817        9.2353       -.46532E-05    .39912E-01
   2  norm          1.3453        .71352       -.14386E-06    .77591E-02
   3  norm          4.4143        1.7462        .80065E-07    .14272E-02
   4  Prefactor     11.764        7.3897       -.15203E-06   -.58158E-02
   5  Prefactor     .55511E-10    4.3033       -.14470E-05** at limit **
   6  Prefactor     2.9003        9.8448        .11288E-04    .14848E-01
   7  Prefactor     .15654E-07    21.385       -.27815E-05** at limit **
   8  norm          1.4247        .81315        .76482E-08   -.72667E-02
   9  Prefactor     9.1054        13.059       -.29909E-05   -.71315E-02
  10  Prefactor     .12537E-05    29.294        .34454E-05** at limit **
  11  Prefactor     .59508E-07    79.319        .54879E-05** at limit **
  12  norm          .55511E-10    1.9442        .49442E-06** at limit **
  13  Prefactor     24.114        3.0427        .11513E-05    .13941    
  14  Prefactor      .0000        2.0358       -.33339E-06** at limit **
  15  norm          .28261        .72476       -.66773E-06   -.69027E-02
  16  norm          .37470E-07    59.723       -.42952E-05** at limit **
  17  Prefactor     .34430E-04    10.580       -.37718E-05** at limit **
  18  norm          .55511E-10    3.0497       -.36496E-06** at limit **
  19  Normalizat    .91260        .25667       -.69081E-05    .25193E-04
  20  Prefactor     .90090        .14824        .13996E-04    .64933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8167
  norm       = 1.34528
  norm       = 4.41425
  Prefactor  = 11.7642
  Prefactor  = 5.55112e-11
  Prefactor  = 2.90032
  Prefactor  = 1.56541e-08
  norm       = 1.42475
  Prefactor  = 9.10544
  Prefactor  = 1.25366e-06
  Prefactor  = 5.9508e-08
  norm       = 5.55112e-11
  Prefactor  = 24.114
  Prefactor  = 0
  norm       = 0.282609
  norm       = 3.747e-08
  Prefactor  = 3.44302e-05
  norm       = 5.55112e-11
  Normalizat = 0.912597
  Prefactor  = 0.9009
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.031     FROM HESSE     STATUS=OK           337 CALLS     1523 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.817        15.065        .26142E-03   -1.5631    
   2  norm          1.3453        .71566        .93490E-03   -1.5685    
   3  norm          4.4143        1.7483        .47872E-03   -1.5666    
   4  Prefactor     11.764        26.759        .30105E-03   -1.5639    
   5  Prefactor     .55511E-10    4.3053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9003        15.558        .57079E-03   -1.5674    
   7  Prefactor     .15654E-07    21.640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4247        .81869        .90587E-03   -1.5684    
   9  Prefactor     9.1054        13.100        .32778E-03   -1.5648    
  10  Prefactor     .12537E-05    33.842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .59508E-07    22.033        .11050E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.9463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.114        10.348        .20255E-03   -1.5610    
  14  Prefactor      .0000        2.0395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28261        .74099        .10457E-02   -1.5697    
  16  norm          .37470E-07    59.889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34430E-04    111.49        .88914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    3.0029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91260        .22732        .67968E-01   -.96019    
  20  Prefactor     .90090        .12771        .45023E-01   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79767e-07
Minuit parameter uncertainties:
  1  15.0655
  2  0.715659
  3  1.74829
  4  26.759
  5  2.55391e-05
  6  13.4349
  7  0.00116337
  8  0.818685
  9  13.0999
  10  0.0130273
  11  0.00228963
  12  2.38677e-05
  13  10.3478
  14  1.26359e-05
  15  0.74099
  16  0.00299644
  17  0.123918
  18  3.09601e-05
  19  0.227561
  20  0.127749
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.425e+00  8.187e-01  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.009e-01  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  9.126e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.29
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 2.19e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4839.92530793
delta logL = 0.105995854245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4839.9193484
delta logL = 0.111955384431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3989       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3290       1.0000          .0000       5.0000    
     3 'Normalizat'    .88139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+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.

 FCN=   4839.919     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3990        .79965        .41364E-05    .13069E-01
   2  alpha         2.3290        .61349        .11287E-01    .35212E-04
   3  Normalizat    .88139        .25420        .30524E-03   -.12961E-04
   4  Prefactor     .90973        .14909        .18113E-03    .42167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39895
  alpha      = 2.32902
  Normalizat = 0.881389
  Prefactor  = 0.909732
 **********
 **   18 **HESSE 
 **********

 FCN=   4839.919     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3990        .78622        .16546E-06   -1.5684    
   2  alpha         2.3290        .60235        .45147E-03   -.68444E-01
   3  Normalizat    .88139        .25403        .12209E-04   -.97117    
   4  Prefactor     .90973        .14908        .36225E-04   -.95802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02748e-10
Minuit parameter uncertainties:
  1  0.786224
  2  0.608365
  3  0.254374
  4  0.149144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875442': 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) = 4839.91934839
delta logL = 0.111955387834

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.399e+00  7.862e-01  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.329e+00  6.084e-01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.097e-01  1.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  8.814e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.49
Ra Dec: 26.150 27.090
Photon Index (Free Index): 2.33 +/- 0.61
Photon Flux (Free Index): 9.91e-08 +/- 7.48e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.89e-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/875442/cmap_HighResolution_686448001_686707201_4FGL_J0144.6+2705_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='3.47e-05', photon_flux_error='4.15e-08', dlogl='1.12e-01', energy_flux='3.81e-05', photon_flux2='9.91e-08', job_status='DONE', time_completed='2022-10-06 00:19:06.144146', photon_index_error2='0.61', photon_index2='2.33', ts='8.29', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.91', time_epoch_completed='1665040746.14', return_code='0', job_id='875442', GAL2='0.91', EG2='0.88', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='7.48e-08', ts2='8.49', photon_index='2.03' WHERE bin_id='1725' AND source_name='4FGL J0144.6+2705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:19:06 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 875445: <4FGL_J0144.6+2705_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0144.6+2705_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:53 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:08:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:08:55 2022
Terminated at Thu Oct  6 00:18:41 2022
Results reported at Thu Oct  6 00:18:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0144.6+2705_daily_bin1725 26.1502 27.0899 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0144.6+2705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   465.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            768 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 875442: <4FGL_J0144.6+2705_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0144.6+2705_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:53 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:08:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:08:55 2022
Terminated at Thu Oct  6 00:19:06 2022
Results reported at Thu Oct  6 00:19:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0144.6+2705_daily_bin1725 26.1502 27.0899 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0144.6+2705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   470.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            793 sec.

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

