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


Performing analysis on: 4FGL_J0644.6+6039_daily_bin1750
RA = 101.162, Dec = 60.6562
tmin = 692928001, tmax = 693187201
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='997802', job_status='RUN', time_executed='2022-12-20 00:07:26.798202', time_epoch_executed='1671523646.8' WHERE source_name='4FGL J0644.6+6039' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997802

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997802/ft1_4FGL_J0644.6+6039_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997802/ft1_4FGL_J0644.6+6039_daily_bin1750.fits outfile=/scratch/kocevski/997802/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1750.fits ra=101.162 dec=60.6562 rad=12.0 tmin=692928001.0 tmax=693187201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.69
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.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/997802/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.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.68
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 986

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/997802/ltcube_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.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/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits
.....................!
real 11.34
user 10.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/997802/ltcube_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits outfile=/scratch/kocevski/997802/expmap_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.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/997802/ltcube_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits
.....................!
real 190.30
user 184.88
sys 5.11

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 189 point sources and 2 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.6+6039 @ 101.162 60.6562

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits outfile=/scratch/kocevski/997802/cmap_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.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.162 yref=60.6562 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits outfile=/scratch/kocevski/997802/cmap_HighResolution_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.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.162 yref=60.6562 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997802/Model_4FGL_J0644.6+6039_daily_bin1750.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits.....................!
real 143.85
user 142.45
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits', '/scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits', expMap='/scratch/kocevski/997802/expmap_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits', expCube='/scratch/kocevski/997802/ltcube_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997802/Model_4FGL_J0644.6+6039_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0644.6+6039'

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  4.581e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
236        Index:  2.071e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/997802/ft1_filtered_4FGL_J0644.6+6039_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/997802/ft2_4FGL_J0644.6+6039_daily_bin1750.fits
Exposure map: /scratch/kocevski/997802/expmap_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits
Exposure cube: /scratch/kocevski/997802/ltcube_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997802/Model_4FGL_J0644.6+6039_daily_bin1750.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) = 10425.5804069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20471E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    30.936       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11045E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    15.697       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.905       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16766E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    56.167       1.0000          .0000       .10000E+07
     8 'Prefactor '    .53488E-02   1.0000          .0000       .10000E+07
     9 'norm      '    3.2388       1.0000          .0000       .10000E+07
    10 'norm      '    3.0136       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20443E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10398E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41549E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.2741       1.0000          .0000       .10000E+07
    15 'Prefactor '    24.991       1.0000          .0000       .10000E+07
    16 'norm      '    .53242       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.5071       1.0000          .0000       .10000E+07
    18 'norm      '    1.3359       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18111E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10425.54     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1601 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93259E-08    8.1673       -.42445E-06** at limit **
   2  Prefactor     32.987        11.044        .19082E-06    .30573E-01
   3  Prefactor     .16653E-09    7.0827        .10930E-05** at limit **
   4  Prefactor     15.694        1.4226        .59797E-07   -.18618E-01
   5  Prefactor     15.875        10.837        .24245E-07    .14417E-02
   6  Prefactor     .29535E-04    53.180        .31488E-05** at limit **
   7  Prefactor     56.315        1.9776        .67852E-07   -.99188E-02
   8  Prefactor     .33015E-04    27.257        .98449E-06** at limit **
   9  norm          3.2552        3.5153       -.38824E-06   -.22691E-02
  10  norm          2.8568        6.0980       -.67509E-06   -.12532E-02
  11  Prefactor     .49405E-08    8.8111        .12810E-05** at limit **
  12  Prefactor     .46633E-05    55.064       -.43361E-05** at limit **
  13  Prefactor     .23315E-07    16.646       -.22100E-05** at limit **
  14  norm          1.2735        .57607       -.65675E-07    .28839E-02
  15  Prefactor     24.609        2.2984       -.19982E-06    .85413E-01
  16  norm          .53399        .75114        .63225E-07    .28371E-02
  17  Prefactor     2.5117        14.013        .11428E-05    .51640E-02
  18  norm          1.3369        2.3461        .13283E-06   -.11955E-02
  19  Prefactor      .0000        .77495        .20366E-06** at limit **
  20  Normalizat    1.0107        .18412        .18516E-04   -.55195E-04
  21  Prefactor     .97283        .81967E-01   -.79217E-05   -.12171E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.32587e-09
  Prefactor  = 32.9872
  Prefactor  = 1.66533e-10
  Prefactor  = 15.6939
  Prefactor  = 15.8754
  Prefactor  = 2.95351e-05
  Prefactor  = 56.3147
  Prefactor  = 3.30151e-05
  norm       = 3.25523
  norm       = 2.85675
  Prefactor  = 4.94049e-09
  Prefactor  = 4.66333e-06
  Prefactor  = 2.33147e-08
  norm       = 1.27352
  Prefactor  = 24.6087
  norm       = 0.533991
  Prefactor  = 2.51169
  norm       = 1.33687
  Prefactor  = 0
  Normalizat = 1.01065
  Prefactor  = 0.97283
 **********
 **   18 **HESSE 
 **********

 FCN=   10425.54     FROM HESSE     STATUS=OK           361 CALLS     1962 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO **********
 **   18 **HESSE 
 **********

 FCN=   10425.54     FROM HESSE     STATUS=OK           361 CALLS     1962 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93259E-08    8.2211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.987        38.119        .17982E-03   -1.5593    
   3  Prefactor     .16653E-09    7.1232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.694        15.121        .25254E-03   -1.5629    
   5  Prefactor     15.875        10.981        .25087E-03   -1.5628    
   6  Prefactor     .29535E-04    83.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.315        35.802        .13344E-03   -1.5558    
   8  Prefactor     .33015E-04    69.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2552        3.5226        .56257E-03   -1.5672    
  10  norm          2.8568        6.1389        .58438E-03   -1.5674    
  11  Prefactor     .49405E-08    8.8429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .46633E-05    61.731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .23315E-07    16.736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2735        .58339        .98448E-03   -1.5685    
  15  Prefactor     24.609        19.804        .20008E-03   -1.5609    
  16  norm          .53399        .76597        .75513E-03   -1.5693    
  17  Prefactor     2.5117        14.064        .64508E-03   -1.5676    
  18  norm          1.3369        2.3727        .94878E-03   -1.5685    
  19  Prefactor      .0000        .76660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0107        .17092        .78703E-01   -.92674    
  21  Prefactor     .97283        .73843E-01    .45934E-01   -.93641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20373e-06
Minuit parameter uncertainties:
  1  0.000554019
  2  38.119
  Done.

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

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  3.302e-05  9.553e-02  0.000e+00  1.000e+06 ( 1.000e-14)
236        Index:  2.071e+00  0.000e+00  0.000e+00  1.00Done.

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

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  3.302e-05  9.553e-02  0.000e+00  1.000e+06 ( 1.000e-14)
236        Index:  2.071e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.728e-01  7.385e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.011e+00  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 101.162 60.656
Photon Flux Upper Limit: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997803/likelihoodResults_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.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) = 10425.5458654
delta logL = -0.00747360958121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10425.5383973
delta logL = -5.53191239305e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98371E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.4279       1.0000          .0000       10.000    
     3 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10425.54     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      249 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .95970        .42118E-03** at limit **
   2  Index         1.4034        7.3710        .50000       -.36380E-10
   3  Normalizat    1.0107        .89862E-03    .78701E-01   -.15378E-03
   4  Prefactor     .97283        .41461E-03    .45928E-01   -.24834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.40345
  Normalizat = 1.01065
  Prefactor  = 0.97283
 **********
 **   18 **HESSE 
 **********

 FCN=   10425.54     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      276 TOTAL
                     EDM=   .39E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.0453        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4034        6.8769        .51000       -.80281    
   3  Normalizat    1.0107        .15971E-02    .34832E-03   -.92674    
   4  Prefactor     .97283        .73821E-03    .16265E-03   -.93641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.89624e-14
Minuit parameter uncertainties:
  1  6.1679e-05
  2  100400
  3  0.00159715
  4  0.000738212
shell-init: error retrieving cDone.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10425.5383915
delta logL = 2.37887434196e-07

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  3.331e-10  6.168e-05  0.000e+00  1.000e+06 ( 1.000e-14)
236        Index:  1.403eDone.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10425.5383915
delta logL = 2.37887434196e-07

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  3.331e-10  6.168e-05  0.000e+00  1.000e+06 ( 1.000e-14)
236        Index:  1.403e+00  1.004e+05  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.728e-01  7.382e-04  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.011e+00  1.597e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 101.162 60.656

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/997803/cmap_HighResolution_692928001_693187201_4FGL_J0644.6+6039_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2022-12-20 00:21:08.290023', job_id='997803', GAL2='0.97', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1671524468.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1750' AND source_name='4FGL J0644.6+6039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:21:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 997802: <4FGL_J0644.6+6039_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0644.6+6039_daily_bin1750> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Dec 20 00:05:46 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:05:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:05:51 2022
Terminated at Tue Dec 20 00:21:08 2022
Results reported at Tue Dec 20 00:21:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0644.6+6039_daily_bin1750 101.162 60.6562 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0644.6+6039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   822.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            922 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 997803: <4FGL_J0644.6+6039_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0644.6+6039_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:05:46 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:05:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:05:51 2022
Terminated at Tue Dec 20 00:21:09 2022
Results reported at Tue Dec 20 00:21:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0644.6+6039_daily_bin1750 101.162 60.6562 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0644.6+6039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   829.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            923 sec.

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

