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


Performing analysis on: 4FGL_J0644.4-6712_monthly_bin170
RA = 101.105, Dec = -67.2124
tmin = 677635201, tmax = 680227201
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='87442', job_status='RUN', time_executed='2022-07-23 00:52:29.480107', time_epoch_executed='1658562749.48' WHERE source_name='4FGL J0644.4-6712' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87442

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87442/ft1_4FGL_J0644.4-6712_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87442/ft1_4FGL_J0644.4-6712_monthly_bin170.fits outfile=/scratch/kocevski/87442/ft1_filteredMKT_4FGL_J0644.4-6712_monthly_bin170.fits ra=101.105 dec=-67.2124 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.56
user 31.59
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.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/87442/ft1_filteredMKT_4FGL_J0644.4-6712_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.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.83
user 0.64
sys 0.17

Number of photons that the gtmktime cut: 10699

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87442/ltcube_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.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/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits
.....................!
real 112.04
user 111.41
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87442/ltcube_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits outfile=/scratch/kocevski/87442/expmap_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.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/87442/ltcube_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits
.....................!
real 192.37
user 186.24
sys 5.76

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
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Added 198 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0644.4-6712 @ 101.105 -67.2124

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits outfile=/scratch/kocevski/87442/cmap_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.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=101.105 yref=-67.2124 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.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits outfile=/scratch/kocevski/87442/cmap_HighResolution_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.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=101.105 yref=-67.2124 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.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87442/Model_4FGL_J0644.4-6712_monthly_bin170.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits.....................!
real 64945.46
user 64783.46
sys 10.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits', '/scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits', expMap='/scratch/kocevski/87442/expmap_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits', expCube='/scratch/kocevski/87442/ltcube_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87442/Model_4FGL_J0644.4-6712_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0644.4-6712'

4FGL J0644.4-6712
   Spectrum: LogParabola
313         norm:  2.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.037e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  9.950e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87442/ft1_filtered_4FGL_J0644.4-6712_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/87442/ft2_4FGL_J0644.4-6712_monthly_bin170.fits
Exposure map: /scratch/kocevski/87442/expmap_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits
Exposure cube: /scratch/kocevski/87442/ltcube_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87442/Model_4FGL_J0644.4-6712_monthly_bin170.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) = 111379.117394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2894       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.254       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13584E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3728       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5846       1.0000         .10000E-03   10000.    
    13 'norm      '    .54122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0950       1.0000         .10000E-03   10000.    
    17 'norm      '    .35059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.241       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.137       1.0000         .10000E-03   10000.    
    20 'norm      '    11.785       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   111379.0     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2132 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2896        2.8884       -.22075E-06   -.85000E-05
   2  Prefactor     2.8896        2.7973       -.86471E-07    .27208E-05
   3  Prefactor     31.254        12.678       -.35518E-06    .67139E-05
   4  norm          2.1327        .72064       -.84101E-08   -.49943E-05
   5  Prefactor     .10000E-03    .30744       -.26954E-08** at limit **
   6  norm          1.3742        5.5455       -.19276E-06   -.15528E-04
   7  Prefactor     .10000E-03    .28884        .42994E-07** at limit **
   8  norm          3.2193        1.8116       -.48722E-07   -.20567E-04
   9  Prefactor     .10000E-03    1.0261       -.22854E-07** at limit **
  10  Prefactor     .10000E-03    .51821       -.10411E-08** at limit **
  11  Prefactor     2.3284        1.0491        .28426E-07   -.50751E-03
  12  Prefactor     5.5857        2.6563       -.38990E-06   -.62184E-04
  13  norm          .54141        .72052       -.18248E-07   -.19806E-03
  14  Prefactor     .10000E-03    5.9223        .15737E-08** at limit **
  15  norm          3.3841        .94318       -.12472E-08    .78690E-04
  16  Prefactor     1.0955        2.3607       -.29989E-06   -.58592E-04
  17  norm          .35121        .70330        .80362E-07   -.29998E-04
  18  Prefactor     32.240        17.693       -.14215E-05    .11421E-04
  19  Prefactor     15.135        11.660       -.19364E-05   -.56057E-05
  20  norm          11.785        3.5031        .51605E-07    .14382E-04
  21  Normalizat    1.0551        .60791E-01    .22322E-06    .68660E-04
  22  Prefactor     .97980        .24214E-01    .41013E-07    .86248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28958
  Prefactor  = 2.88959
  Prefactor  = 31.2537
  norm       = 2.13272
  Prefactor  = 0.0001
  norm       = 1.37425
  Prefactor  = 0.0001
  norm       = 3.21926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3284
  Prefactor  = 5.5857
  norm       = 0.541412
  Prefactor  = 0.0001
  norm       = 3.38411
  Prefactor  = 1.09551
  norm       = 0.351208
  Prefactor  = 32.2403
  Prefactor  = 15.1352
  norm       = 11.7848
  Normalizat = 1.05508
  Prefactor  = 0.979795
 **********
 **   18 **HESSE 
 **********

 FCN=   111379.0     FROM HESSE     STATUS=OK           366 CALLS     2498 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2896        2.8795        .27130E-03   -1.5405    
   2  Prefactor     2.8896        2.7986        .23907E-03   -1.5368    
   3  Prefactor     31.254        12.685        .71671E-04   -1.4589    
   4  norm          2.1327        .72081        .15991E-03   -1.5416    
   5  Prefactor     .10000E-03    1.8626        .35560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3742        5.4998        .37197E-03   -1.5474    
   7  Prefactor     .10000E-03    .28961        .59684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2193        1.8073        .22579E-03   -1.5349    
   9  Prefactor     .10000E-03    1.0302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .52176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3284        2.5639        .13438E-02   -1.5403    
  12  Prefactor     5.5857        2.6607        .17000E-03   -1.5235    
  13  norm          .54141        .72733        .31763E-03   -1.5561    
  14  Prefactor     .10000E-03    6.0616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3841        .93823        .16359E-03   -1.5340    
  16  Prefactor     1.0955        2.4283        .45572E-02   -1.5499    
  17  norm          .35121        .72355        .40190E-03   -1.5589    
  18  Prefactor     32.240        17.665        .70568E-04   -1.4572    
  19  Prefactor     15.135        11.650        .10294E-03   -1.4930    
  20  norm          11.785        3.5027        .11670E-03   -1.5021    
  21  Normalizat    1.0551        .70103E-01    .37997E-03   -.91207    
  22  Prefactor     .97980        .28004E-01    .16169E-03   -.93406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96579e-07
Minuit parameter uncertainties:
  1  2.87971
  2  2.79869
  3  12.6856
  4  0.720817
  5  4.58104e-07
  6  5.49908
  7  5.14086e-06
  8  1.80732
  9  6.9881e-07
  10  4.59107e-07
  11  2.56404
  12  2.66075
  13  0.727343
  14  5.72775e-06
  15  0.938239
  16  2.42847
  17  0.723567
  18  17.6678
  19  11.6516
  20  3.50274
  21  0.070109
  22  0.028004
Done.

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

Extracting fit parameters...

4FGL J0644.4-6712
   Spectrum: LogParabola
313         norm:  5.414e-01  7.273e-01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.037e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  9.950e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.798e-01  2.800e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.055e+00  7.011e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 101.105 -67.212
Photon Flux Upper Limit: 1.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.56e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87442/likelihoodResults_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.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): 102
logL (Free Index) = 111378.551526
delta logL = 0.493618181994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 111378.548148
delta logL = 0.496996031448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49927       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8791       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+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=   111378.5     FROM MIGRAD    STATUS=FAILED        92 CALLS      255 TOTAL
                     EDM=   .73E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49886        16.404        .18347E-03   -.17826E-02
   2  alpha         2.8799        2.8873        .44111E-01    .26754E-02
   3  Normalizat    1.0432        .91640E-01    .38189E-03   -.30727E-02
   4  Prefactor     .98202        .32565E-01    .16152E-03   -.80747E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   111378.5     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      342 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49886        16.404        .35607E-04   -.17826E-02
   2  alpha         2.8799        2.8873        .14851E-02    .26754E-02
   3  Normalizat    1.0432        .91640E-01    .82699E-04   -.30727E-02
   4  Prefactor     .98202        .32565E-01    .36515E-04   -.80747E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   111378.5     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      379 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49886        .71571        .73387E-05   -.22952E-02
   2  alpha         2.8799        .94831        .88221E-02   -.44804E-04
   3  Normalizat    1.0432        .68659E-01    .15276E-04   -.30198E-02
   4  Prefactor     .98202        .27873E-01    .32305E-04   -.79258E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.498859
  alpha      = 2.8799
  Normalizat = 1.04318
  Prefactor  = 0.982018
 **********
 **   18 **HESSE 
 **********

 FCN=   111378.5     FROM HESSE     STATUS=OK            25 CALLS      404 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49886        .65131        .14677E-05   -1.5567    
   2  alpha         2.8799        .86588        .35288E-03    .15255    
   3  Normalizat    1.0432        .68508E-01    .30552E-05   -.91598    
   4  Prefactor     .98202        .27834E-01    .64609E-05   -.93331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59402e-09
Minuit parameter uncertainties:
  1  0.651323
  2  0.884658
  3  0.068514
  4  0.0278341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87442': 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) = 111378.548146
delta logL = 0.49699824657

Extracting fit parameters...

4FGL J0644.4-6712
   Spectrum: LogParabola
313         norm:  4.989e-01  6.513e-01  1.000e-04  1.000e+04 ( 1.000e-12)
314        alpha:  2.880e+00  8.847e-01  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  9.950e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.820e-01  2.783e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.043e+00  6.851e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 101.105 -67.212
Photon Index (Free Index): 2.88 +/- 0.88
Photon Flux (Free Index): 1.48e-08 +/- 1.42e-08
Energy Flux (Free Index): 3.41e-06 +/- 2.82e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/87442/cmap_HighResolution_677635201_680227201_4FGL_J0644.4-6712_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.56e-06', comment='SUCCESS', energy_flux2='3.41e-06', dlogl='4.97e-01', photon_flux2='1.48e-08', job_status='DONE', time_completed='2022-07-23 20:50:06.656254', photon_index_error2='0.88', photon_index2='2.88', ts='0.64', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.70e-08', energy_flux_error2='2.82e-06', EG='1.06', time_epoch_completed='1658634606.66', return_code='0', job_id='87442', GAL2='0.98', EG2='1.04', return_code2='0', photon_flux_error2='1.42e-08', ts2='1.67', photon_index='2.04' WHERE bin_id='170' AND source_name='4FGL J0644.4-6712' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 20:50:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 87442: <4FGL_J0644.4-6712_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0644.4-6712_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:42 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:44 2022
Terminated at Sat Jul 23 20:50:07 2022
Results reported at Sat Jul 23 20:50:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0644.4-6712_monthly_bin170 101.105 -67.2124 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0644.4-6712 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   71714.00 sec.
    Max Memory :                                 649 MB
    Average Memory :                             624.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   71963 sec.
    Turnaround time :                            71965 sec.

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

