/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 4 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 = 7604
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0636.5+7138_daily_bin769
RA = 99.1402, Dec = 71.6473
tmin = 438652801, tmax = 438912001
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='572369', job_status='RUN', time_executed='2021-08-25 12:51:10.153332', time_epoch_executed='1629921070.15' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572369

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572369/ft1_4FGL_J0636.5+7138_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572369/ft1_4FGL_J0636.5+7138_daily_bin769.fits outfile=/scratch/kocevski/572369/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin769.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=438652801.0 tmax=438912001.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.82
user 6.21
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.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/572369/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin769.fits evtable="EVENTS" outfile="/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.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.97
user 0.34
sys 1.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/572369/ltcube_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.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/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits
.....................!
real 15.74
user 13.79
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/572369/ltcube_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits outfile=/scratch/kocevski/572369/expmap_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.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/572369/ltcube_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits
.....................!
real 194.51
user 186.47
sys 6.52

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/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits outfile=/scratch/kocevski/572369/cmap_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.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 2.30
user 0.37
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits outfile=/scratch/kocevski/572369/cmap_HighResolution_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.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 2.12
user 0.38
sys 1.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572369/Model_4FGL_J0636.5+7138_daily_bin769.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/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits.....................!
real 84.48
user 80.24
sys 2.93

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits', '/scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits', expMap='/scratch/kocevski/572369/expmap_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits', expCube='/scratch/kocevski/572369/ltcube_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572369/Model_4FGL_J0636.5+7138_daily_bin769.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  1.000e-04  1.000e+04 ( 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/572369/ft1_filtered_4FGL_J0636.5+7138_daily_bin769.fits
Spacecraft file(s): /scratch/kocevski/572369/ft2_4FGL_J0636.5+7138_daily_bin769.fits
Exposure map: /scratch/kocevski/572369/expmap_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits
Exposure cube: /scratch/kocevski/572369/ltcube_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572369/Model_4FGL_J0636.5+7138_daily_bin769.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) = 6562.06982813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.209       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.238       1.0000         .10000E-03   10000.    
    16 'norm      '    54.287       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9383       1.0000         .10000E-03   10000.    
    21 'norm      '    .10627E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.994       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .51037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1313       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6562.040     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2697 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9873        7.1026       -.11726E-05   -.14529E-02
   2  Prefactor     15.208        32.361       -.11359E-05    .37692E-04
   3  norm          .10000E-03    10.724        .61477E-06** at limit **
   4  Prefactor     .10000E-03    6.3984       -.45389E-07** at limit **
   5  Prefactor     .10000E-03    13.364       -.26087E-05** at limit **
   6  norm          .10001E-03    39.257        .68229E-05** at limit **
   7  Prefactor     .10000E-03    8.0690       -.81888E-07** at limit **
   8  Prefactor     14.052        21.903       -.11493E-05    .71251E-04
   9  Prefactor     10.830        26.650       -.60709E-06    .42533E-04
  10  Prefactor     23.089        31.054       -.41530E-06    .72187E-04
  11  Prefactor     .10001E-03    45.282        .88636E-05** at limit **
  12  norm          .10000E-03    49.733        .18844E-05** at limit **
  13  norm          6.3255        1.4252        .22974E-07    .76901E-03
  14  Prefactor     .10002E-03    55.908       -.11176E-04** at limit **
  15  Prefactor     43.238        54.221       -.11886E-06    .14147E-03
  16  norm          54.285        39.631       -.16044E-05    .15897E-03
  17  Prefactor     .10000E-03    17.847        .35031E-07** at limit **
  18  Prefactor     .10001E-03    31.797       -.78486E-05** at limit **
  19  Prefactor     4.7989        5.0348       -.18446E-06    .21736E-03
  20  Prefactor     3.9384        1.9414        .17820E-07    .16847E-03
  21  norm          .10008E-03    1.9016       -.18817E-05** at limit **
  22  Prefactor     72.004        49.981        .10756E-04    .34014E-04
  23  Normalizat    .51034        .24308       -.28722E-05    .16263E-03
  24  Prefactor     1.1313        .11283        .84581E-06    .18553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.98732
  Prefactor  = 15.2082
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 14.0519
  Prefactor  = 10.8299
  Prefactor  = 23.0894
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 6.3255
  Prefactor  = 0.000100016
  Prefactor  = 43.2377
  norm       = 54.285
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 4.79888
  Prefactor  = 3.93838
  norm       = 0.00010008
  Prefactor  = 72.0038
  Normalizat = 0.510341
  Prefactor  = 1.13131
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.040     FROM HESSE     STATUS=OK           391 CALLS     3088 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9873        7.4272        .75881E-03   -1.5179    
   2  Prefactor     15.208        32.400        .10270E-03   -1.4928    
   3  norm          .10000E-03    10.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    38.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.052        21.891        .10684E-03   -1.4958    
   9  Prefactor     10.830        26.575        .12174E-03   -1.5050    
  10  Prefactor     23.089        30.973        .83359E-04   -1.4747    
  11  Prefactor     .10001E-03    44.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    50.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3255        1.4284        .41184E-04   -1.5205    
  14  Prefactor     .10002E-03    54.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.238        54.351        .60967E-04   -1.4392    
  16  norm          54.285        39.549        .54439E-04   -1.4233    
  17  Prefactor     .10000E-03    17.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    31.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7989        5.0329        .18048E-03   -1.5270    
  20  Prefactor     3.9384        1.9412        .76814E-04   -1.5311    
  21  norm          .10008E-03    15.407        .19926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     72.004        48.586        .47314E-04   -1.4009    
  23  Normalizat    .51034        .25436        .45900E-03   -1.1194    
  24  Prefactor     1.1313        .12029        .15586E-03   -.88472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08921e-09
Minuit parameter uncertainties:
  1  7.42817
  2  32.4377
  3  4.59249e-05
  4  3.04158e-06
  5  0.000215646
  6  0.000963518
  7  9.19182e-06
  8  21.9036
  9  26.6037
  10  30.9946
  11  0.00132491
  12  0.000219981
  13  1.42837
  14  0.0018853
  15  54.4134
  16  39.5684
  17  5.0494e-06
  18  0.00103071
  19  5.03336
  20  1.94121
  21  0.00222751
  22  48.6126
  23  0.254938
  24  0.120322
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.083e+01  2.660e+01  1.000e-04  1.000e+04 ( 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:  1.131e+00  1.203e-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:  5.103e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 99.140 71.647
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572369/likelihoodResults_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.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) = 6562.03491169
delta logL = 0.00514011311589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.03113949
delta logL = 0.00891230792513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.592       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2634       1.0000          .0000       10.000    
     3 'Normalizat'    .51429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1300       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=   6562.031     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.592        454.22        .27162E-02   -.14168E-04
   2  Index         2.2632        1.7500        .47656        .39844E-05
   3  Normalizat    .51422        .30400E-01    .10319        .45578E-04
   4  Prefactor     1.1300        .14787E-01    .36544E-01   -.17518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5916
  Index      = 2.26315
  Normalizat = 0.514216
  Prefactor  = 1.12997
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.031     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.592        34.557        .10865E-03   -1.4970    
   2  Index         2.2632        1.7168        .66254E-02   -.57922    
   3  Normalizat    .51422        .23262        .45738E-03   -1.1176    
   4  Prefactor     1.1300        .11453        .15594E-03   -.88514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22081e-12
Minuit parameter uncertainties:
  1  34.6081
  2  1.76904
  3  0.233063
  4  0.11456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572369': 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) = 6562.03113901
delta logL = 0.00891278885956

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.359e+01  3.461e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.263e+00  1.769e+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:  1.130e+00  1.146e-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:  5.142e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 99.140 71.647

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/572369/cmap_HighResolution_438652801_438912001_4FGL_J0636.5+7138_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-08-25 13:05:47.834493', job_id='572369', GAL2='1.13', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1629921947.83', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.91e-03', ts2='0.22', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='769' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 572369: <4FGL_J0636.5+7138_daily_bin769> in cluster <slac> Done

Job <4FGL_J0636.5+7138_daily_bin769> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 25 12:50:34 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 12:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 12:50:35 2021
Terminated at Wed Aug 25 13:05:49 2021
Results reported at Wed Aug 25 13:05:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin769 99.1402 71.6473 438652801 438912001 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 :                                   885.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

