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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1214
RA = 99.1402, Dec = 71.6473
tmin = 553996801, tmax = 554256001
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='576656', job_status='RUN', time_executed='2021-08-25 13:06:05.450927', time_epoch_executed='1629921965.45' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576656/ft1_4FGL_J0636.5+7138_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576656/ft1_4FGL_J0636.5+7138_daily_bin1214.fits outfile=/scratch/kocevski/576656/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1214.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=553996801.0 tmax=554256001.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.73
user 2.47
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/576656/ltcube_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.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/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits
.....................!
real 19.94
user 18.52
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/576656/ltcube_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits outfile=/scratch/kocevski/576656/expmap_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.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/576656/ltcube_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits
.....................!
real 195.34
user 187.97
sys 5.72

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/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits scfile=/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits outfile=/scratch/kocevski/576656/cmap_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.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 1.43
user 0.40
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits scfile=/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits outfile=/scratch/kocevski/576656/cmap_HighResolution_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.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 1.29
user 0.41
sys 0.87

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits', '/scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits', expMap='/scratch/kocevski/576656/expmap_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits', expCube='/scratch/kocevski/576656/ltcube_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576656/Model_4FGL_J0636.5+7138_daily_bin1214.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/576656/ft1_filtered_4FGL_J0636.5+7138_daily_bin1214.fits
Spacecraft file(s): /scratch/kocevski/576656/ft2_4FGL_J0636.5+7138_daily_bin1214.fits
Exposure map: /scratch/kocevski/576656/expmap_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits
Exposure cube: /scratch/kocevski/576656/ltcube_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576656/Model_4FGL_J0636.5+7138_daily_bin1214.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) = 6169.08836194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   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 '    10000.       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    371.53       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.250       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3978       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8255       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5368       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64028       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1602       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=   6169.070     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3218 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0325        6.9679       -.31953E-05   -.49295E-03
   2  Prefactor     .10000E-03    24.967        .31541E-06** at limit **
   3  norm          .10000E-03    47.378        .15879E-04** at limit **
   4  Prefactor     .10000E-03    7.2504       -.11876E-06** at limit **
   5  Prefactor     10000.        574.31        .44445E-03** at limit **
   6  norm          .10000E-03    300.76        .17425E-03** at limit **
   7  Prefactor     .75145        21.379        .40662E-05   -.58038E-03
   8  Prefactor     .10000E-03    51.444       -.24789E-04** at limit **
   9  Prefactor     16.828        30.874       -.12331E-05   -.11792E-03
  10  Prefactor     .10000E-03    40.526        .27411E-04** at limit **
  11  Prefactor     371.53        224.90       -.28293E-05    .18946E-05
  12  norm          .10000E-03    10.925       -.24781E-06** at limit **
  13  norm          4.8335        1.1924        .38484E-08    .89682E-04
  14  Prefactor     .10000E-03    96.044       -.13988E-04** at limit **
  15  Prefactor     .10000E-03    37.285       -.20759E-04** at limit **
  16  norm          .10000E-03    7.0713       -.26983E-06** at limit **
  17  Prefactor     18.247        41.604       -.10939E-05   -.62530E-06
  18  Prefactor     15.377        31.345        .19268E-05    .10297E-05
  19  Prefactor     5.3977        4.2937       -.99616E-08    .74009E-04
  20  Prefactor     .10000E-03    2.4706        .46388E-08** at limit **
  21  norm          7.8278        5.6495        .22730E-05   -.79265E-04
  22  Prefactor     8.4939        76.150       -.27041E-04   -.64533E-06
  23  Normalizat    .64030        .25168       -.62723E-06   -.31084E-04
  24  Prefactor     1.1602        .12032        .47534E-06   -.12274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03253
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.751453
  Prefactor  = 0.0001
  Prefactor  = 16.828
  Prefactor  = 0.0001
  Prefactor  = 371.528
  norm       = 0.0001
  norm       = 4.8335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2468
  Prefactor  = 15.3767
  Prefactor  = 5.39774
  Prefactor  = 0.0001
  norm       = 7.82782
  Prefactor  = 8.49387
  Normalizat = 0.640298
  Prefactor  = 1.16018
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.070     FROM HESSE     STATUS=OK           395 CALLS     3613 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0325        6.9893        .29015E-03   -1.5423    
   2  Prefactor     .10000E-03    25.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    47.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10000.        573.53        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    300.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .75145        220.71        .70610E-02   -1.5535    
   8  Prefactor     .10000E-03    51.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.828        30.829        .97631E-04   -1.4887    
  10  Prefactor     .10000E-03    40.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     371.53        224.83        .10574E-03   -1.1829    
  12  norm          .10000E-03    10.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8335        1.1929        .40711E-04   -1.5268    
  14  Prefactor     .10000E-03    96.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.247        41.450        .93754E-04   -1.4853    
  18  Prefactor     15.377        31.427        .10213E-03   -1.4924    
  19  Prefactor     5.3977        4.2925        .14005E-03   -1.5243    
  20  Prefactor     .10000E-03    2.5143        .24006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8278        5.6713        .99830E-04   -1.5148    
  22  Prefactor     8.4939        76.059        .13720E-03   -1.5125    
  23  Normalizat    .64030        .26931        .43382E-03   -1.0630    
  24  Prefactor     1.1602        .12983        .16949E-03   -.87566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81339e-08
Minuit parameter uncertainties:
  1  6.99215
  2  6.31401e-06
  3  1.31809e-06
  4  2.38874e-07
  5  8.8927e-06
  6  1.49577e-06
  7  25.852
  8  8.28737e-06
  9  30.8577
  10  3.95416e-05
  11  225.366
  12  4.60536e-06
  13  1.19294
  14  2.48502e-06
  15  2.47769e-05
  16  3.02764e-06
  17  41.5158
  18  31.4604
  19  4.29272
  20  1.79698e-06
  21  5.67168
  22  50.9207
  23  0.269861
  24  0.129864
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.683e+01  3.086e+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.160e+00  1.299e-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:  6.403e-01  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/576656/likelihoodResults_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.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) = 6169.06376966
delta logL = 0.0060043264084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.06005249
delta logL = 0.00972149866084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3618       1.0000          .0000       10.000    
     3 'Normalizat'    .64268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6169.060     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      251 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.255        43.945        .89031E-04   -.75960E-03
   2  Index         2.3614        1.1049        .11140E-01   -.42154E-03
   3  Normalizat    .64276        .23969        .43305E-03    .86429E-03
   4  Prefactor     1.1590        .12376        .16956E-03    .22059E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2545
  Index      = 2.36144
  Normalizat = 0.642765
  Prefactor  = 1.15905
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.060     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.255        41.561        .17806E-04   -1.4808    
   2  Index         2.3614        1.0461        .44561E-03   -.55591    
   3  Normalizat    .64276        .23968        .86609E-04   -1.0620    
   4  Prefactor     1.1590        .12371        .33912E-04   -.87601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31516e-08
Minuit parameter uncertainties:
  1  41.6207
  2  1.05698
  3  0.240068
  4  0.123744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576656': 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) = 6169.06005235
delta logL = 0.00972163486222

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  2.025e+01  4.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.361e+00  1.057e+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.159e+00  1.237e-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:  6.428e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/576656/cmap_HighResolution_553996801_554256001_4FGL_J0636.5+7138_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-08-25 13:20:49.716117', job_id='576656', GAL2='1.16', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1629922849.72', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.72e-03', ts2='0.39', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1214' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 576656: <4FGL_J0636.5+7138_daily_bin1214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1214 99.1402 71.6473 553996801 554256001 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 :                                   888.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

