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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1019
RA = 99.1402, Dec = 71.6473
tmin = 503452801, tmax = 503712001
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='573903', job_status='RUN', time_executed='2021-08-25 12:56:01.035997', time_epoch_executed='1629921361.04' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573903/ft1_4FGL_J0636.5+7138_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573903/ft1_4FGL_J0636.5+7138_daily_bin1019.fits outfile=/scratch/kocevski/573903/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1019.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=503452801.0 tmax=503712001.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 8.44
user 7.53
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.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/573903/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/573903/ft1_filtered_4FGL_J0636.5+7138_daily_bin1019.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.15
user 0.36
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573903/ft1_filtered_4FGL_J0636.5+7138_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/573903/ltcube_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.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/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits
.....................!
real 12.23
user 11.13
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573903/ft1_filtered_4FGL_J0636.5+7138_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/573903/ltcube_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.fits outfile=/scratch/kocevski/573903/expmap_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.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/573903/ltcube_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.fits
.....................!
real 193.20
user 187.63
sys 5.23

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/573903/ft1_filtered_4FGL_J0636.5+7138_daily_bin1019.fits scfile=/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits outfile=/scratch/kocevski/573903/cmap_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.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.21
user 0.36
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573903/ft1_filtered_4FGL_J0636.5+7138_daily_bin1019.fits scfile=/scratch/kocevski/573903/ft2_4FGL_J0636.5+7138_daily_bin1019.fits outfile=/scratch/kocevski/573903/cmap_HighResolution_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.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.22
user 0.39
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5521       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.240       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 '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.178       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0056       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1893       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65675       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1222       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=   8604.963     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2289 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5430        12.526        .43728E-05   -.17159E-03
   2  Prefactor     .10000E-03    10.685        .53568E-06** at limit **
   3  norm          2.8023        31.928        .51725E-05    .12258E-03
   4  Prefactor     25.235        18.270        .55923E-06    .17518E-03
   5  Prefactor     .10000E-03    13.403        .54241E-06** at limit **
   6  norm          .10000E-03    33.893        .29143E-05** at limit **
   7  Prefactor     .10000E-03    13.888        .21596E-06** at limit **
   8  Prefactor     .10000E-03    12.386       -.29979E-06** at limit **
   9  Prefactor     .10000E-03    8.4141        .96476E-08** at limit **
  10  Prefactor     .10000E-03    11.001       -.58743E-06** at limit **
  11  Prefactor     .10000E-03    14.209       -.24704E-06** at limit **
  12  norm          .10000E-03    13.965        .27921E-07** at limit **
  13  norm          1.1491        .53863        .88750E-08   -.64063E-05
  14  Prefactor     .10000E-03    32.905       -.29752E-05** at limit **
  15  Prefactor     .10000E-03    12.641       -.24059E-07** at limit **
  16  norm          11.188        14.925       -.99382E-07   -.39123E-04
  17  Prefactor     .10000E-03    6.4276        .12031E-07** at limit **
  18  Prefactor     15.389        34.045       -.13104E-05   -.63295E-04
  19  Prefactor     .10000E-03    1.5083       -.58199E-07** at limit **
  20  Prefactor     4.0061        1.8597        .72817E-08    .35419E-04
  21  norm          5.1906        2.6157        .46095E-07   -.23468E-04
  22  Prefactor     11.643        20.681       -.39722E-06   -.44367E-04
  23  Normalizat    .65632        .18315        .15318E-05   -.71387E-04
  24  Prefactor     1.1225        .94789E-01   -.96451E-06    .12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54305
  Prefactor  = 0.0001
  norm       = 2.80234
  Prefactor  = 25.235
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.14915
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 11.1881
  Prefactor  = 0.0001
  Prefactor  = 15.389
  Prefactor  = 0.0001
  Prefactor  = 4.00611
  norm       = 5.19057
  Prefactor  = 11.6432
  Normalizat = 0.656322
  Prefactor  = 1.12248
 **********
 **   18 **HESSE 
 **********

 FCN=   8604.963     FROM HESSE     STATUS=OK           393 CALLS     2682 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5430        12.968        .78390E-03   -1.5196    
   2  Prefactor     .10000E-03    10.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8023        33.376        .24263E-03   -1.5373    
   4  Prefactor     25.235        18.380        .79735E-04   -1.4703    
   5  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    34.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1491        .53142        .44960E-04   -1.5494    
  14  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.188        14.918        .11983E-03   -1.5039    
  17  Prefactor     .10000E-03    6.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.389        34.381        .10171E-03   -1.4923    
  19  Prefactor     .10000E-03    1.5196        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0061        1.8616        .83066E-04   -1.5308    
  21  norm          5.1906        2.6250        .92925E-04   -1.5252    
  22  Prefactor     11.643        20.721        .11741E-03   -1.5025    
  23  Normalizat    .65632        .20045        .37866E-03   -1.0564    
  24  Prefactor     1.1225        .10359        .15834E-03   -.88751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44838e-10
Minuit parameter uncertainties:
  1  12.9732
  2  7.32248e-05
  3  19.3554
  4  18.3839
  5  6.67782e-05
  6  0.000710353
  7  3.06281e-05
  8  3.8374e-05
  9  2.92201e-06
  10  7.56147e-05
  11  3.78564e-05
  12  1.68413e-05
  13  0.531419
  14  0.000717457
  15  3.6749e-06
  16  14.9234
  17  1.11863e-07
  18  34.425
  19  1.95317e-07
  20  1.86165
  21  2.62506
  22  20.7335
  23  0.200668
  24  0.103606
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.922e-06  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.122e+00  1.036e-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.563e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 99.140 71.647
Photon Flux Upper Limit: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573903/likelihoodResults_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8604.96397145
delta logL = -0.000564710549952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8604.96340645
delta logL = 2.90761818178e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4798       1.0000          .0000       10.000    
     3 'Normalizat'    .65631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1225       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=   8604.963     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10571E-03    8.0134        .18142E-01** at limit **
   2  Index         2.3612        8.7844        .50000        .27626E-04
   3  Normalizat    .65633        .40255E-02    .37865E-03    .12052E-03
   4  Prefactor     1.1225        .21685E-02    .15835E-03   -.19865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010571
  Index      = 2.36116
  Normalizat = 0.656326
  Prefactor  = 1.12248
 **********
 **   18 **HESSE 
 **********

 FCN=   8604.963     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10571E-03    63.440        .29182E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3612        6.1681        .50000       -.55597    
   3  Normalizat    .65633        .11332E-01    .15146E-04   -1.0564    
   4  Prefactor     1.1225        .61043E-02    .31669E-04   -.88751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.7808e-09
Minuit parameter uncertainties:
  1  0.0381072
  2  271.577
  3  0.0113317
  4  0.00610429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573903': 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) = 8604.96340585
delta logL = 8.88408976607e-07

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.057e-04  3.811e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.361e+00  2.716e+02  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.122e+00  6.104e-03  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.563e-01  1.133e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 99.140 71.647

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/573903/cmap_HighResolution_503452801_503712001_4FGL_J0636.5+7138_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-08-25 13:11:52.969363', job_id='573903', GAL2='1.12', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1629922312.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1019' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 573903: <4FGL_J0636.5+7138_daily_bin1019> in cluster <slac> Done

Job <4FGL_J0636.5+7138_daily_bin1019> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Aug 25 12:55:26 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 12:55:29 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:55:29 2021
Terminated at Wed Aug 25 13:11:53 2021
Results reported at Wed Aug 25 13:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1019 99.1402 71.6473 503452801 503712001 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 :                                   957.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

