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


Performing analysis on: 4FGL_J0636.5+7138_daily_bin1081
RA = 99.1402, Dec = 71.6473
tmin = 519523201, tmax = 519782401
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='575180', job_status='RUN', time_executed='2021-08-25 13:00:56.781634', time_epoch_executed='1629921656.78' WHERE source_name='4FGL J0636.5+7138' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575180

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575180/ft1_4FGL_J0636.5+7138_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575180/ft1_4FGL_J0636.5+7138_daily_bin1081.fits outfile=/scratch/kocevski/575180/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1081.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=519523201.0 tmax=519782401.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.61
user 2.71
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.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/575180/ft1_filteredMKT_4FGL_J0636.5+7138_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/575180/ft1_filtered_4FGL_J0636.5+7138_daily_bin1081.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.45
user 0.31
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575180/ft1_filtered_4FGL_J0636.5+7138_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/575180/ltcube_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.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/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits
.....................!
real 10.50
user 9.38
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575180/ft1_filtered_4FGL_J0636.5+7138_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/575180/ltcube_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.fits outfile=/scratch/kocevski/575180/expmap_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.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/575180/ltcube_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.fits
.....................!
real 190.51
user 184.96
sys 5.17

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/575180/ft1_filtered_4FGL_J0636.5+7138_daily_bin1081.fits scfile=/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits outfile=/scratch/kocevski/575180/cmap_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.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.11
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575180/ft1_filtered_4FGL_J0636.5+7138_daily_bin1081.fits scfile=/scratch/kocevski/575180/ft2_4FGL_J0636.5+7138_daily_bin1081.fits outfile=/scratch/kocevski/575180/cmap_HighResolution_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.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.18
user 0.37
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.906       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.399       1.0000         .10000E-03   10000.    
     6 'norm      '    59.216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    84.125       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.646       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .82426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4398       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95045       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0581       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=   9041.015     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2773 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6086        .78500E-07** at limit **
   2  Prefactor     19.907        29.880        .25093E-06   -.33945E-05
   3  norm          .10000E-03    26.883       -.43053E-07** at limit **
   4  Prefactor     .10000E-03    6.6220        .39499E-07** at limit **
   5  Prefactor     10.399        28.979        .99020E-07   -.20289E-05
   6  norm          59.218        65.479        .54076E-07    .10862E-05
   7  Prefactor     10.281        29.027        .20280E-06   -.65140E-05
   8  Prefactor     .10000E-03    41.446        .25119E-06** at limit **
   9  Prefactor     84.147        34.110       -.26202E-06    .41235E-04
  10  Prefactor     9.3813        30.703        .53377E-06   -.36155E-04
  11  Prefactor     56.635        39.944       -.97681E-08   -.20692E-04
  12  norm          .10000E-03    11.031       -.17597E-06** at limit **
  13  norm          2.0473        .70833       -.17142E-07   -.87130E-04
  14  Prefactor     .10000E-03    43.167        .10803E-06** at limit **
  15  Prefactor     .10000E-03    17.618       -.23295E-06** at limit **
  16  norm          .10000E-03    8.4665       -.19818E-06** at limit **
  17  Prefactor     .10000E-03    7.8769        .29021E-07** at limit **
  18  Prefactor     9.9856        29.718       -.14296E-05   -.51549E-04
  19  Prefactor     .82853        3.9215        .23381E-05   -.25801E-04
  20  Prefactor     .10000E-03    .40275        .32392E-07** at limit **
  21  norm          1.4400        1.9307        .25349E-06   -.48130E-04
  22  Prefactor     .10000E-03    45.064       -.14301E-06** at limit **
  23  Normalizat    .95063        .19055        .10496E-05   -.10253E-03
  24  Prefactor     1.0580        .91987E-01   -.73755E-06    .33152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.9067
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3988
  norm       = 59.2178
  Prefactor  = 10.2806
  Prefactor  = 0.0001
  Prefactor  = 84.1473
  Prefactor  = 9.38127
  Prefactor  = 56.6348
  norm       = 0.0001
  norm       = 2.04726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98562
  Prefactor  = 0.82853
  Prefactor  = 0.0001
  norm       = 1.43999
  Prefactor  = 0.0001
  Normalizat = 0.950632
  Prefactor  = 1.05803
 **********
 **   18 **HESSE 
 **********

 FCN=   9041.015     FROM HESSE     STATUS=OK           393 CALLS     3166 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.907        29.915        .89772E-04   -1.4815    
   3  norm          .10000E-03    26.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.399        28.996        .12425E-03   -1.5063    
   6  norm          59.218        65.482        .52137E-04   -1.4167    
   7  Prefactor     10.281        29.039        .12494E-03   -1.5067    
   8  Prefactor     .10000E-03    41.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     84.147        33.913        .43797E-04   -1.3871    
  10  Prefactor     9.3813        30.573        .13057E-03   -1.5095    
  11  Prefactor     56.635        39.954        .53300E-04   -1.4201    
  12  norm          .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0473        .70801        .45181E-04   -1.5422    
  14  Prefactor     .10000E-03    43.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.4692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9856        29.850        .12661E-03   -1.5076    
  19  Prefactor     .82853        3.9958        .36572E-03   -1.5526    
  20  Prefactor     .10000E-03    .40548        .58917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4400        1.9246        .14466E-03   -1.5468    
  22  Prefactor     .10000E-03    45.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95063        .20864        .34656E-03   -.94703    
  24  Prefactor     1.0580        .10068        .16773E-03   -.90819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1044e-11
Minuit parameter uncertainties:
  1  5.01863e-06
  2  29.9378
  3  3.61909e-05
  4  2.74656e-06
  5  29.0349
  6  65.5621
  7  29.0785
  8  3.90139e-05
  9  33.9205
  10  30.6236
  11  39.9729
  12  5.99875e-06
  13  0.708014
  14  2.94325e-05
  15  1.42289e-06
  16  9.14268e-06
  17  5.53775e-06
  18  29.895
  19  3.63922
  20  1.82589e-07
  21  1.92467
  22  0.000117416
  23  0.208823
  24  0.100701
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  8.415e+01  3.392e+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.058e+00  1.007e-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:  9.506e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.52
Ra Dec: 99.140 71.647
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 1.67e-05

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) = 9041.00651539
delta logL = 0.00843149882166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9040.99587457
delta logL = 0.019072313733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.173       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5805       1.0000          .0000       10.000    
     3 'Normalizat'    .94642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0594       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=   9040.996     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      253 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.173        44.174        .45420E-04   -.18522E-04
   2  Index         2.5805        .35096        .42305E-02    .69238E-03
   3  Normalizat    .94643        .19438        .34721E-03    .99539E-05
   4  Prefactor     1.0594        .98164E-01    .16764E-03    .25499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.1732
  Index      = 2.58051
  Normalizat = 0.946429
  Prefactor  = 1.05936
 **********
 **   18 **HESSE 
 **********

 FCN=   9040.996     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.173        42.343        .18168E-05   -1.3937    
   2  Index         2.5805        .33627        .84610E-03   -.50510    
   3  Normalizat    .94643        .19443        .13888E-04   -.94847    
   4  Prefactor     1.0594        .98192E-01    .67055E-05   -.90776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43413e-12
Minuit parameter uncertainties:
  1  42.3596
  2  0.336603
  3  0.194579
  4  0.0982086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575180': 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) = 9040.99587456
delta logL = 0.0190723252035

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  7.817e+01  4.236e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.581e+00  3.366e-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.059e+00  9.821e-02  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:  9.464e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.63
Ra Dec: 99.140 71.647
Photon Index (Free Index): 2.58 +/- 0.34
Photon Flux (Free Index): 1.49e-07 +/- 5.71e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.64e-05

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/575180/cmap_HighResolution_519523201_519782401_4FGL_J0636.5+7138_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.99e-05', photon_flux_error='5.86e-08', dlogl='1.91e-02', energy_flux='4.15e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-08-25 13:16:04.008516', photon_index_error2='0.34', photon_index2='2.58', ts='13.52', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.95', time_epoch_completed='1629922564.01', return_code='0', job_id='575180', GAL2='1.06', EG2='0.95', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.71e-08', ts2='13.63', photon_index='2.52' WHERE bin_id='1081' AND source_name='4FGL J0636.5+7138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 575180: <4FGL_J0636.5+7138_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_daily_bin1081 99.1402 71.6473 519523201 519782401 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 :                                   915.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

