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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1745
RA = 99.1402, Dec = 71.6473
tmin = 691632001, tmax = 691891201
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='637773', job_status='RUN', time_executed='2022-12-05 00:10:06.063462', time_epoch_executed='1670227806.06' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637773/ft1_4FGL_J0636.5+7138_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637773/ft1_4FGL_J0636.5+7138_daily_bin1745.fits outfile=/scratch/kocevski/637773/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1745.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.37
user 2.15
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.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/637773/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.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.32
sys 0.16

Number of photons that the gtmktime cut: 452

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/637773/ltcube_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.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/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits
.....................!
real 12.75
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/637773/ltcube_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits outfile=/scratch/kocevski/637773/expmap_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.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/637773/ltcube_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits
.....................!
real 191.27
user 185.54
sys 5.38

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 210 point sources and 1 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 J0636.5+7138 @ 99.1402 71.6473

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits outfile=/scratch/kocevski/637773/cmap_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.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=99.1402 yref=71.6473 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits outfile=/scratch/kocevski/637773/cmap_HighResolution_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.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=99.1402 yref=71.6473 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637773/Model_4FGL_J0636.5+7138_daily_bin1745.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
Working on...
/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits.....................!
real 69.68
user 68.39
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits', '/scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits', expMap='/scratch/kocevski/637773/expmap_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits', expCube='/scratch/kocevski/637773/ltcube_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637773/Model_4FGL_J0636.5+7138_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0636.5+7138'

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  6.290e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.516e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  9.141e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/637773/ft1_filtered_4FGL_J0636.5+7138_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/637773/ft2_4FGL_J0636.5+7138_daily_bin1745.fits
Exposure map: /scratch/kocevski/637773/expmap_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits
Exposure cube: /scratch/kocevski/637773/ltcube_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637773/Model_4FGL_J0636.5+7138_daily_bin1745.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) = 4965.71103663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10472       1.0000          .0000       .10000E+07
     2 'norm      '    33.302       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20185E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    246.23       1.0000          .0000       .10000E+07
     5 'Prefactor '    139.04       1.0000          .0000       .10000E+07
     6 'Prefactor '    19.939       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34609E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .20147       1.0000          .0000       .10000E+07
     9 'norm      '    .42229E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.1094       1.0000          .0000       .10000E+07
    11 'norm      '    12.074       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11354       1.0000          .0000       .10000E+07
    13 'Prefactor '    .79675E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7898       1.0000          .0000       .10000E+07
    15 'Prefactor '    .50558E-02   1.0000          .0000       .10000E+07
    16 'norm      '    7.8200       1.0000          .0000       .10000E+07
    17 'Prefactor '    .31835E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3904       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4965.699     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1457 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78507E-05    6.5090        .83450E-06** at limit **
   2  norm          32.019        61.359       -.31295E-06   -.20520E-01
   3  Prefactor      .0000        14.613       -.36622E-06** at limit **
   4  Prefactor     246.73        17.212        .43475E-07    .43848E-01
   5  Prefactor     140.65        78.620        .18577E-06   -.41062E-01
   6  Prefactor     21.815        45.795        .79540E-06   -.34883E-03
   7  Prefactor     .55511E-10    18.042       -.59504E-06** at limit **
   8  Prefactor     .55511E-10    40.089        .59290E-06** at limit **
   9  norm          .53846E-08    114.41       -.18006E-05** at limit **
  10  norm          1.1051        .81368       -.68831E-07    .23350E-02
  11  norm          12.182        16.925       -.48198E-06    .30329E-03
  12  Prefactor      .0000        34.960       -.80507E-06** at limit **
  13  Prefactor     .13989E-07    46.273        .23074E-05** at limit **
  14  Prefactor     3.7860        3.4935        .11358E-06   -.50446E-03
  15  Prefactor     .49960E-09    52.419       -.16035E-05** at limit **
  16  norm          7.8172        3.5070       -.11593E-07    .21214E-03
  17  Prefactor     .27756E-09    53.414       -.20617E-05** at limit **
  18  Normalizat    1.3888        .27560        .60071E-06    .33809E-04
  19  Prefactor     .82921        .13882       -.37111E-05    .59956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85066e-06
  norm       = 32.0186
  Prefactor  = 0
  Prefactor  = 246.732
  Prefactor  = 140.654
  Prefactor  = 21.8148
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 5.38458e-09
  norm       = 1.1051
  norm       = 12.1825
  Prefactor  = 0
  Prefactor  = 1.39888e-08
  Prefactor  = 3.786
  Prefactor  = 4.996e-10
  norm       = 7.81719
  Prefactor  = 2.77556e-10
  Normalizat = 1.38878
  Prefactor  = 0.829207
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.699     FROM HESSE     STATUS=OK           314 CALLS     1771 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78507E-05    64.680        .18308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          32.019        96.681        .17331E-03   -1.5595    
   3  Prefactor      .0000        14.617        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     246.73        115.60        .63736E-04   -1.5394    
   5  Prefactor     140.65        106.35        .84812E-04   -1.5471    
   6  Prefactor     21.815        46.225        .22402E-03   -1.5615    
   7  Prefactor     .55511E-10    18.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    40.038        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .53846E-08    112.82        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1051        .82204        .11216E-02   -1.5687    
  11  norm          12.182        16.927        .28803E-03   -1.5638    
  12  Prefactor      .0000        34.916        .13579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13989E-07    46.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7860        3.4950        .51829E-03   -1.5669    
  15  Prefactor     .49960E-09    1.5457        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.8172        3.5000        .35834E-03   -1.5652    
  17  Prefactor     .27756E-09    52.526        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3888        .24848        .69237E-01   -.80954    
  19  Prefactor     .82921        .12767        .44099E-01   -.98661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0094e-07
Minuit parameter uncertainties:
  1  0.0450684
  2  96.6862
  3  1.98595e-05
  4  115.597
  5  106.349
  6  46.2261
  7  6.43063e-05
  8  0.000109211
  9  0.00155507
  10  0.822044
  11  16.927
  12  1.80908e-05
  13  0.00161595
  14  3.49498
  15  5.50575e-05
  16  3.50005
  17  0.000242427
  18  0.248697
  19  0.127713
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  2.181e+01  4.623e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.516e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  9.141e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.292e-01  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.389e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 99.140 71.647
Photon Flux Upper Limit: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637773/likelihoodResults_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.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) = 4965.00795815
delta logL = 0.690626879945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4965.00213069
delta logL = 0.696454334233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2799       1.0000          .0000       .10000E+07
     2 'Index     '    4.8771       1.0000          .0000       10.000    
     3 'Normalizat'    1.2871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4965.002     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      273 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2667        15.364        .98085E-03    .18886E-01
   2  Index         4.8821        2.6726        .12708        .98799E-04
   3  Normalizat    1.2873        .67120E-01    .71314E-01   -.48654E-04
   4  Prefactor     .85886        .35522E-01    .44479E-01   -.18287E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26671
  Index      = 4.88207
  Normalizat = 1.28731
  Prefactor  = 0.858861
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.002     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2667        38.771        .61327E-05   -1.5685    
   2  Index         4.8821        7.2594        .44113E-02   -.23588E-01
   3  Normalizat    1.2873        .24979        .31554E-03   -.83946    
   4  Prefactor     .85886        .12868        .20042E-03   -.97594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47508e-07
Minuit parameter uncertainties:
  1  14.0161
  2  5.81676
  3  0.250028
  4  0.128728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637773': 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): 102
logL (Free Index) = 4965.00212815
delta logL = 0.696456877424

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.267e+00  1.402e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  4.882e+00  5.817e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  9.141e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.589e-01  1.287e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.287e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 99.140 71.647
Photon Index (Free Index): 4.88 +/- 5.82
Photon Flux (Free Index): 1.61e-07 +/- 1.42e-07
Energy Flux (Free Index): 2.17e-05 +/- 1.81e-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/637773/cmap_HighResolution_691632001_691891201_4FGL_J0636.5+7138_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='6.96e-01', photon_flux2='1.61e-07', job_status='DONE', time_completed='2022-12-05 00:19:37.310307', photon_index_error2='5.82', photon_index2='4.88', ts='0.26', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.81e-05', EG='1.39', time_epoch_completed='1670228377.31', return_code='0', job_id='637773', GAL2='0.86', EG2='1.29', return_code2='102', photon_flux_error2='1.42e-07', ts2='1.79', photon_index='2.52' WHERE bin_id='1745' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:19:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 637774: <4FGL_J0636.5+7138_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0636.5+7138_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:36 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:06:08 2022
Terminated at Mon Dec  5 00:18:51 2022
Results reported at Mon Dec  5 00:18:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1745 99.1402 71.6473 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0636.5+7138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   572.50 sec.
    Max Memory :                                 617 MB
    Average Memory :                             255.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            795 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 637773: <4FGL_J0636.5+7138_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0636.5+7138_daily_bin1745> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:36 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:06:08 2022
Terminated at Mon Dec  5 00:19:38 2022
Results reported at Mon Dec  5 00:19:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1745 99.1402 71.6473 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0636.5+7138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   573.60 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            842 sec.

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

