aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 17315
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0144.6+2705_weekly_bin612
RA = 26.1502, Dec = 27.0899
tmin = 609120001, tmax = 609724801
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='240483', job_status='RUN', time_executed='2021-07-04 01:23:43.485322', time_epoch_executed='1625387023.49' WHERE source_name='4FGL J0144.6+2705' and cadence='weekly' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240483

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240483/ft1_4FGL_J0144.6+2705_weekly_bin612.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240483/ft1_4FGL_J0144.6+2705_weekly_bin612.fits outfile=/scratch/kocevski/240483/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin612.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=609120001.0 tmax=609724801.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 7.30
user 5.90
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.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/240483/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin612.fits evtable="EVENTS" outfile="/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.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 1.00
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/240483/ltcube_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.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/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits
.....................!
real 28.63
user 27.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/240483/ltcube_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits outfile=/scratch/kocevski/240483/expmap_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.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/240483/ltcube_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits
.....................!
real 200.05
user 187.35
sys 5.96

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/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits outfile=/scratch/kocevski/240483/cmap_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.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.68
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits outfile=/scratch/kocevski/240483/cmap_HighResolution_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.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.78
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240483/Model_4FGL_J0144.6+2705_weekly_bin612.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/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits......................!
real 24.71
user 17.76
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits', '/scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits', expMap='/scratch/kocevski/240483/expmap_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits', expCube='/scratch/kocevski/240483/ltcube_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240483/Model_4FGL_J0144.6+2705_weekly_bin612.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  1.000e-04  1.000e+04 ( 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  0.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/240483/ft1_filtered_4FGL_J0144.6+2705_weekly_bin612.fits
Spacecraft file(s): /scratch/kocevski/240483/ft2_4FGL_J0144.6+2705_weekly_bin612.fits
Exposure map: /scratch/kocevski/240483/expmap_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits
Exposure cube: /scratch/kocevski/240483/ltcube_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240483/Model_4FGL_J0144.6+2705_weekly_bin612.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) = 450.271447124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17066E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30629E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    112.16       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    190.25       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2294       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .24820       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.

 FCN=   448.0362     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     4194 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.774        23.458        .75659E-06   -.93233E-06
   2  Prefactor     .10000E-03    35.341       -.55937E-06** at limit **
   3  norm          .10000E-03    1.2778        .21675E-06** at limit **
   4  norm          .10000E-03    4.0798       -.13918E-06** at limit **
   5  Prefactor     .10000E-03    93.326        .40559E-04** at limit **
   6  Prefactor     24.929        25.004        .59144E-06    .59543E-05
   7  Prefactor     .10000E-03    43.678        .13429E-04** at limit **
   8  Prefactor     .10000E-03    149.65       -.82568E-04** at limit **
   9  Prefactor    10000.0        9968.9        .18668E-02** at limit **
  10  Prefactor    10000.0        8961.7        .17949E-02** at limit **
  11  norm          10000.        204.36       -.61359E-04** at limit **
  12  Prefactor    10000.0        7047.7        .15740E-02** at limit **
  13  Prefactor     .10000E-03    193.80        .32645E-04** at limit **
  14  Prefactor     .10000E-03    423.54        .12735E-03** at limit **
  15  norm          .10000E-03    105.11       -.29181E-04** at limit **
  16  Prefactor     .10000E-03    9969.1       -.10415E-02** at limit **
  17  Prefactor     112.15        123.13       -.27226E-05    .55973E-04
  18  Prefactor     .10000E-03    39.233       -.73220E-05** at limit **
  19  Prefactor     .10000E-03    50.455       -.13141E-04** at limit **
  20  norm          .10000E-03    1.0563       -.88430E-08** at limit **
  21  norm          .10000E-03    720.25       -.27375E-03** at limit **
  22  Prefactor     190.27        258.49        .11444E-04    .98921E-05
  23  norm          5.2301        4.7669        .89022E-07    .12677E-03
  24  Normalizat    .10000E-01    .76188E-01   -.90448E-06** at limit **
  25  Prefactor     .24820        .15199        .13865E-05    .71086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7736
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 112.15
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 190.266
  norm       = 5.23012
  Normalizat = 0.01
  Prefactor  = 0.248202
 **********
 **   18 **HESSE 
 **********

 FCN=   448.0362     FROM HESSE     STATUS=OK           407 CALLS     4601 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.774        23.446        .10088E-03   -1.4913    
   2  Prefactor     .10000E-03    35.341        .12303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2818        .23379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1752        .83387E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.929        25.006        .80239E-04   -1.4709    
   7  Prefactor     .10000E-03    43.692        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    149.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9968.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8961.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10000.        204.37        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7047.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    193.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    423.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    105.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9969.1        .19806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     112.15        122.98        .18992E-03   -1.3586    
  18  Prefactor     .10000E-03    39.233        .12963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.678        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1119        .42260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    720.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     190.27        258.55        .14640E-03   -1.2940    
  23  norm          5.2301        4.7765        .41833E-04   -1.5251    
  24  Normalizat    .10000E-01    .76288E-01    .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .24820        .15184        .18591E-03   -1.2544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93031e-11
Minuit parameter uncertainties:
  1  23.4599
  2  6.8097e-07
  3  2.45009e-07
  4  1.15952e-05
  5  7.71449e-06
  6  25.0163
  7  1.08583e-05
  8  7.45979e-06
  9  0.00604279
  10  0.000820448
  11  1.27104e-05
  12  0.00014829
  13  2.72786e-05
  14  0.000207388
  15  0.000159611
  16  0.000256346
  17  123.259
  18  7.78536e-06
  19  0.000135769
  20  6.21223e-06
  21  0.000255754
  22  260.123
  23  4.77688
  24  1.24812e-07
  25  0.152086
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.000e+04  1.271e-05  1.000e-04  1.000e+04 ( 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  0.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:  2.482e-01  1.521e-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:  1.000e-02  1.248e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 100.11
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 5.07e-04 +/- 6.44e-13
Energy Flux (Fixed Index): 2.67e-01 +/- 3.40e-10

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) = 366.330121176
delta logL = 81.7060732945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 366.329961943
delta logL = 81.7062325276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22490       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.

 FCN=   366.3299     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      185 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        179.53        .90725E-02** at limit **
   2  alpha         5.0000        .17124E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .68211E-01    .70036E-01** at limit **
   4  Prefactor     .22491        .12090        .35658E-01   -.31440E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.224914
 **********
 **   18 **HESSE 
 **********

 FCN=   366.3299     FROM HESSE     STATUS=OK            25 CALLS      210 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        179.53        .18145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .17121E-01    .10952E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .68330E-01    .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22491        .12054        .15232E-03   -1.2697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28803e-12
Minuit parameter uncertainties:
  1  0.000566742
  2  1.77915e-08
  3  3.22777e-07
  4  0.120673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240483': 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) = 366.329935144
delta logL = 81.7062593262

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.000e+04  5.667e-04  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  5.000e+00  1.779e-08  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  8.399e-02  0.000e+00  0.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:  2.249e-01  1.207e-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:  1.000e-02  3.228e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 268.11
Ra Dec: 26.150 27.090
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.86e-02 +/- 3.13e-09
Energy Flux (Free Index): 6.60e+00 +/- 4.21e-07

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/240483/cmap_HighResolution_609120001_609724801_4FGL_J0144.6+2705_weekly_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-04', energy_flux2='6.60e+00', photon_flux_error='6.44e-13', dlogl='8.17e+01', energy_flux='2.67e-01', photon_flux2='4.86e-02', job_status='DONE', time_completed='2021-07-04 01:30:53.809880', photon_index_error2='0.00', photon_index2='5.00', ts='100.11', fit_tolerance='1e-08', GAL='0.25', photon_index_error='0.00', energy_flux_error2='4.21e-07', EG='0.01', time_epoch_completed='1625387453.81', return_code='0', job_id='240483', GAL2='0.22', EG2='0.01', return_code2='0', energy_flux_error='3.40e-10', photon_flux_error2='3.13e-09', ts2='268.11', photon_index='2.03' WHERE bin_id='612' AND source_name='4FGL J0144.6+2705' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 01:30:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 240483: <4FGL_J0144.6+2705_weekly_bin612> in cluster <slac> Done

Job <4FGL_J0144.6+2705_weekly_bin612> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 01:21:13 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 01:21:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 01:21:15 2021
Terminated at Sun Jul  4 01:31:01 2021
Results reported at Sun Jul  4 01:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0144.6+2705_weekly_bin612 26.1502 27.0899 609120001 609724801 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 :                                   393.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             203.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            588 sec.

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

