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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1056
RA = 99.1402, Dec = 71.6473
tmin = 513043201, tmax = 513302401
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='573964', job_status='RUN', time_executed='2021-08-25 12:59:09.244090', time_epoch_executed='1629921549.24' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573964/ft1_4FGL_J0636.5+7138_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573964/ft1_4FGL_J0636.5+7138_daily_bin1056.fits outfile=/scratch/kocevski/573964/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1056.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=513043201.0 tmax=513302401.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.56
user 6.14
sys 1.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.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/573964/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/573964/ft1_filtered_4FGL_J0636.5+7138_daily_bin1056.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.66
user 0.35
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573964/ft1_filtered_4FGL_J0636.5+7138_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/573964/ltcube_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.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/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits
.....................!
real 13.49
user 11.81
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573964/ft1_filtered_4FGL_J0636.5+7138_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/573964/ltcube_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.fits outfile=/scratch/kocevski/573964/expmap_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.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/573964/ltcube_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.fits
.....................!
real 193.61
user 186.63
sys 5.77

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/573964/ft1_filtered_4FGL_J0636.5+7138_daily_bin1056.fits scfile=/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits outfile=/scratch/kocevski/573964/cmap_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.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.73
user 0.37
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573964/ft1_filtered_4FGL_J0636.5+7138_daily_bin1056.fits scfile=/scratch/kocevski/573964/ft2_4FGL_J0636.5+7138_daily_bin1056.fits outfile=/scratch/kocevski/573964/cmap_HighResolution_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.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.88
user 0.38
sys 1.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.829       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    77.392       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .55428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    206.02       1.0000         .10000E-03   10000.    
    15 'Prefactor '    90.060       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    91.859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.816       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82940       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=   2956.857     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2690 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2581       -.41842E-07** at limit **
   2  Prefactor     69.816        114.71       -.39506E-06   -.44291E-05
   3  norm          .10000E-03    23.500        .60493E-07** at limit **
   4  Prefactor     .10000E-03    14.638       -.13183E-07** at limit **
   5  Prefactor     .10000E-03    51.673       -.47128E-07** at limit **
   6  norm          .10000E-03    154.34       -.13352E-06** at limit **
   7  Prefactor     .10000E-03    21.562        .21786E-07** at limit **
   8  Prefactor     32.262        37.455       -.98575E-07   -.61217E-05
   9  Prefactor     .10000E-03    29.318       -.38343E-07** at limit **
  10  Prefactor     77.392        72.359       -.32755E-06   -.13092E-04
  11  Prefactor     .10000E-03    53.101       -.12182E-06** at limit **
  12  norm          .10000E-03    14.179        .14936E-06** at limit **
  13  norm          .55286        .83430        .56633E-06    .10085E-02
  14  Prefactor     206.00        221.78        .97835E-06   -.94222E-05
  15  Prefactor     90.146        92.644        .68033E-06    .29791E-04
  16  norm          .10000E-03    15.758        .30587E-07** at limit **
  17  Prefactor     .10000E-03    12.356        .18929E-07** at limit **
  18  Prefactor     91.894        112.45        .75420E-06    .83592E-05
  19  Prefactor     14.815        13.871        .94755E-06    .37956E-04
  20  Prefactor     .10000E-03    1.3307        .94586E-07** at limit **
  21  norm          .10000E-03    3.6160        .40784E-06** at limit **
  22  Prefactor     .10000E-03    12.008        .25498E-07** at limit **
  23  Normalizat    1.0595        .34242       -.68685E-05    .24450E-04
  24  Prefactor     .82964        .16941        .34677E-05   -.14265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 69.8162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2624
  Prefactor  = 0.0001
  Prefactor  = 77.3918
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.552857
  Prefactor  = 206.002
  Prefactor  = 90.1464
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.8943
  Prefactor  = 14.8149
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05954
  Prefactor  = 0.829644
 **********
 **   18 **HESSE 
 **********

 FCN=   2956.857     FROM HESSE     STATUS=OK           387 CALLS     3077 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2628        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.816        114.73        .48037E-04   -1.4035    
   3  norm          .10000E-03    23.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    154.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.262        37.463        .70533E-04   -1.4571    
   9  Prefactor     .10000E-03    29.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.392        72.375        .45646E-04   -1.3946    
  11  Prefactor     .10000E-03    53.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55286        .83205        .62232E-03   -1.5559    
  14  Prefactor     206.00        221.83        .14080E-03   -1.2827    
  15  Prefactor     90.146        92.642        .21171E-03   -1.3806    
  16  norm          .10000E-03    15.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     91.894        112.75        .41929E-04   -1.3788    
  19  Prefactor     14.815        13.882        .52028E-03   -1.4938    
  20  Prefactor     .10000E-03    11.807        .12101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7911        .20196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0595        .34736        .31725E-03   -.91061    
  24  Prefactor     .82964        .17175        .18527E-03   -.98645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9378e-10
Minuit parameter uncertainties:
  1  3.22025e-06
  2  115.095
  3  3.97647e-05
  4  2.97782e-06
  5  4.04211e-06
  6  0.000185036
  7  3.38057e-05
  8  37.49
  9  9.33046e-05
  10  72.4579
  11  8.2658e-05
  12  2.82292e-05
  13  0.832072
  14  222.739
  15  92.7913
  16  4.54616e-05
  17  2.23578e-05
  18  113.01
  19  13.8846
  20  2.578e-05
  21  2.26004e-05
  22  1.06639e-05
  23  0.348108
  24  0.171857
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  9.330e-05  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:  8.296e-01  1.719e-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.060e+00  3.481e-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: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573964/likelihoodResults_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.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) = 2956.8573222
delta logL = -0.000162199075476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2956.85716005
delta logL = -5.24551069248e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5291       1.0000          .0000       10.000    
     3 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82965       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=   2956.857     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.278        .90712E-02** at limit **
   2  Index         2.5253        6.2624        .50000        .11406E-05
   3  Normalizat    1.0595        .28111        .71700E-01    .21466E-04
   4  Prefactor     .82965        .14812        .44102E-01    .22614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52526
  Normalizat = 1.05954
  Prefactor  = 0.829646
 **********
 **   18 **HESSE 
 **********

 FCN=   2956.857     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5253        6.2619        .50000       -.51777    
   3  Normalizat    1.0595        .31467        .31726E-03   -.91062    
   4  Prefactor     .82965        .16605        .18527E-03   -.98645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35671e-12
Minuit parameter uncertainties:
  1  1.55056e-05
  2  4.46689
  3  0.315227
  4  0.166148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573964': 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) = 2956.85716
delta logL = -2.29692886933e-09

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.551e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.525e+00  4.467e+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.296e-01  1.661e-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.060e+00  3.152e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/573964/cmap_HighResolution_513043201_513302401_4FGL_J0636.5+7138_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', job_status='DONE', photon_flux_upper_limit='1.93e-07', time_completed='2021-08-25 13:08:37.292359', job_id='573964', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629922117.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.30e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1056' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 573964: <4FGL_J0636.5+7138_daily_bin1056> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1056 99.1402 71.6473 513043201 513302401 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 :                                   581.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            788 sec.

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

