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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1202
RA = 99.1402, Dec = 71.6473
tmin = 550886401, tmax = 551145601
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='575352', job_status='RUN', time_executed='2021-08-25 13:03:27.805336', time_epoch_executed='1629921807.81' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575352/ft1_4FGL_J0636.5+7138_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575352/ft1_4FGL_J0636.5+7138_daily_bin1202.fits outfile=/scratch/kocevski/575352/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1202.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=550886401.0 tmax=551145601.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 13.14
user 3.54
sys 9.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575352/ft1_filtered_4FGL_J0636.5+7138_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/575352/ltcube_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.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/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits
.....................!
real 23.71
user 12.03
sys 11.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575352/ft1_filtered_4FGL_J0636.5+7138_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/575352/ltcube_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.fits outfile=/scratch/kocevski/575352/expmap_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.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/575352/ltcube_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.fits
.....................!
real 204.85
user 185.16
sys 16.84

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/575352/ft1_filtered_4FGL_J0636.5+7138_daily_bin1202.fits scfile=/scratch/kocevski/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits outfile=/scratch/kocevski/575352/cmap_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.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 9.99
user 0.37
sys 9.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575352/ft1_filtered_4FGL_J0636.5+7138_daily_bin1202.fits scfile=/scratch/kocevski/575352/ft2_4FGL_J0636.5+7138_daily_bin1202.fits outfile=/scratch/kocevski/575352/cmap_HighResolution_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.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 9.97
user 0.39
sys 9.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.177       1.0000         .10000E-03   10000.    
     3 'norm      '    55.942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.859       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.824       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14663E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2173       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1695       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0760       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=   3269.559     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2716 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.808        .16424E-04** at limit **
   2  Prefactor     83.184        69.101        .44427E-05   -.19249E-04
   3  norm          55.958        65.357        .10580E-04   -.13990E-04
   4  Prefactor     .10000E-03    12.150       -.37477E-06** at limit **
   5  Prefactor     74.863        73.437        .12436E-05   -.45409E-05
   6  norm          .10000E-03    99.047       -.58769E-04** at limit **
   7  Prefactor     .10000E-03    19.169       -.17655E-04** at limit **
   8  Prefactor     3.6124        148.44        .65853E-05   -.76312E-05
   9  Prefactor     54.982        49.972        .45178E-05    .20559E-04
  10  Prefactor     34.808        63.981       -.11426E-04    .23806E-06
  11  Prefactor     .10000E-03    294.41       -.32160E-04** at limit **
  12  norm          .10000E-03    11.972        .27768E-06** at limit **
  13  norm          5.9261        1.8158        .85251E-07    .48739E-03
  14  Prefactor     38.815        214.05        .88069E-05    .57237E-06
  15  Prefactor     .10000E-03    299.74       -.45913E-04** at limit **
  16  norm          33.348        33.525        .51960E-06   -.59702E-04
  17  Prefactor     .10000E-03    24.317        .13711E-05** at limit **
  18  Prefactor     .10000E-03    120.22        .90849E-04** at limit **
  19  Prefactor     .10000E-03    5.2458       -.71674E-07** at limit **
  20  Prefactor     2.2173        2.8742       -.48408E-07   -.14260E-03
  21  norm          5.1663        4.5070       -.50933E-07   -.39528E-04
  22  Prefactor     .10000E-03    49.300        .17917E-05** at limit **
  23  Normalizat    .69747        .31360        .21067E-05   -.11330E-03
  24  Prefactor     1.0759        .15147       -.17774E-05   -.62563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 83.1842
  norm       = 55.958
  Prefactor  = 0.0001
  Prefactor  = 74.8632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61241
  Prefactor  = 54.9816
  Prefactor  = 34.8082
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.92606
  Prefactor  = 38.8148
  Prefactor  = 0.000100002
  norm       = 33.3483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21726
  norm       = 5.16633
  Prefactor  = 0.0001
  Normalizat = 0.697465
  Prefactor  = 1.07587
 **********
 **   18 **HESSE 
 **********

 FCN=   3269.559     FROM HESSE     STATUS=OK           383 CALLS     3099 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.184        69.197        .44043E-04   -1.3881    
   3  norm          55.958        65.623        .53632E-04   -1.4210    
   4  Prefactor     .10000E-03    12.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.863        73.441        .46406E-04   -1.3975    
   6  norm          .10000E-03    99.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6124        148.69        .21278E-03   -1.5328    
   9  Prefactor     54.982        49.935        .54097E-04   -1.4224    
  10  Prefactor     34.808        63.988        .67909E-04   -1.4527    
  11  Prefactor     .10000E-03    298.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9261        1.8174        .40533E-04   -1.5221    
  14  Prefactor     38.815        214.09        .64339E-04   -1.4461    
  15  Prefactor     .10000E-03    303.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.348        33.536        .69385E-04   -1.4552    
  17  Prefactor     .10000E-03    24.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    120.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2674        .12789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2173        2.8588        .10680E-03   -1.5410    
  21  norm          5.1663        4.5200        .10651E-03   -1.5253    
  22  Prefactor     .10000E-03    49.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69747        .33871        .40194E-03   -1.0399    
  24  Prefactor     1.0759        .16553        .16629E-03   -.90242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15327e-10
Minuit parameter uncertainties:
  1  5.94705e-05
  2  69.2646
  3  65.7079
  4  6.10299e-06
  5  73.5303
  6  8.51735e-06
  7  2.2626e-06
  8  46.4753
  9  49.9735
  10  64.1142
  11  0.0011232
  12  1.15407e-06
  13  1.81737
  14  183.334
  15  0.00159329
  16  33.5548
  17  4.27618e-06
  18  0.000318004
  19  6.17798e-06
  20  2.85898
  21  4.52028
  22  1.01545e-05
  23  0.339731
  24  0.165609
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  5.498e+01  4.997e+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.076e+00  1.656e-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.975e-01  3.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 99.140 71.647
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 8.63e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.46e-05

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

Saving results to:
/scratch/kocevski/575352/likelihoodResults_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.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) = 3269.46555107
delta logL = 0.0934765057773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3269.46171316
delta logL = 0.0973144139284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.540       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8913       1.0000          .0000       10.000    
     3 'Normalizat'    .67119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0820       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=   3269.462     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      280 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.508        55.673        .64562E-04   -.76863E-04
   2  Index         2.8918        .97540        .50007E-02   -.81438E-04
   3  Normalizat    .67135        .31804        .40881E-03   -.10066E-02
   4  Prefactor     1.0823        .15765        .16581E-03   -.27275E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5077
  Index      = 2.89177
  Normalizat = 0.671352
  Prefactor  = 1.08234
 **********
 **   18 **HESSE 
 **********

 FCN=   3269.462     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.508        50.221        .12912E-04   -1.4466    
   2  Index         2.8918        .87972        .20003E-03   -.43526    
   3  Normalizat    .67135        .31731        .81763E-04   -1.0503    
   4  Prefactor     1.0823        .15750        .33161E-04   -.90033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95664e-09
Minuit parameter uncertainties:
  1  50.2761
  2  0.885334
  3  0.31818
  4  0.157565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575352': 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) = 3269.46170337
delta logL = 0.0973242062528

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  3.851e+01  5.028e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.892e+00  8.853e-01  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.082e+00  1.576e-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.714e-01  3.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 99.140 71.647
Photon Index (Free Index): 2.89 +/- 0.89
Photon Flux (Free Index): 1.23e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.59e-05 +/- 2.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/575352/cmap_HighResolution_550886401_551145601_4FGL_J0636.5+7138_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-02', comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='2.59e-05', photon_flux_error='8.63e-08', dlogl='9.73e-02', energy_flux='2.71e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-08-25 13:15:34.325009', photon_index_error2='0.89', photon_index2='2.89', ts='2.41', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.73e-07', energy_flux_error2='2.02e-05', EG='0.70', time_epoch_completed='1629922534.33', return_code='0', job_id='575352', GAL2='1.08', EG2='0.67', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='1.09e-07', ts2='2.64', photon_index='2.52' WHERE bin_id='1202' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 575352: <4FGL_J0636.5+7138_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0636.5+7138_daily_bin1202> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 25 13:00:36 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:00:37 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:00:37 2021
Terminated at Wed Aug 25 13:15:36 2021
Results reported at Wed Aug 25 13:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1202 99.1402 71.6473 550886401 551145601 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 :                                   867.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

