aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 138 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 = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0636.5+7138_monthly_bin167
RA = 99.1402, Dec = 71.6473
tmin = 669859201, tmax = 672451201
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='880408', job_status='RUN', time_executed='2022-04-24 01:07:28.769045', time_epoch_executed='1650787648.77' WHERE source_name='4FGL J0636.5+7138' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880408

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880408/ft1_4FGL_J0636.5+7138_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880408/ft1_4FGL_J0636.5+7138_monthly_bin167.fits outfile=/scratch/kocevski/880408/ft1_filteredMKT_4FGL_J0636.5+7138_monthly_bin167.fits ra=99.1402 dec=71.6473 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.14
user 37.11
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.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/880408/ft1_filteredMKT_4FGL_J0636.5+7138_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/880408/ft1_filtered_4FGL_J0636.5+7138_monthly_bin167.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 0.86
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 10607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880408/ft1_filtered_4FGL_J0636.5+7138_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/880408/ltcube_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.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/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits
.....................!
real 132.38
user 131.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880408/ft1_filtered_4FGL_J0636.5+7138_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/880408/ltcube_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.fits outfile=/scratch/kocevski/880408/expmap_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.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/880408/ltcube_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.fits
.....................!
real 194.18
user 188.48
sys 5.19

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/880408/ft1_filtered_4FGL_J0636.5+7138_monthly_bin167.fits scfile=/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits outfile=/scratch/kocevski/880408/cmap_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.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 0.82
user 0.64
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880408/ft1_filtered_4FGL_J0636.5+7138_monthly_bin167.fits scfile=/scratch/kocevski/880408/ft2_4FGL_J0636.5+7138_monthly_bin167.fits outfile=/scratch/kocevski/880408/cmap_HighResolution_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.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 0.84
user 0.66
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91763       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26897       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4873       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17391E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0927       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9749       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70421       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3727       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97908       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0648       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   111416.8     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2910 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91814        1.5155         .0000        .20809E-01
   2  Prefactor     .22717        1.3178         .0000        .25403E-02
   3  norm          1.9773        4.5307         .0000        .27377E-01
   4  Prefactor     5.9829        2.4996         .0000       -.47405E-03
   5  Prefactor     1.4901        14.227         .0000        .10342E-01
   6  norm          4.1105        25.138         .0000        .16700E-02
   7  Prefactor     .10000E-03    1.4282         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.9404         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.5859         .0000    ** at limit **
  10  Prefactor     7.2131        6.9760         .0000        .39263E-03
  11  Prefactor     .10000E-03    6.1740         .0000    ** at limit **
  12  norm          1.0929        1.7047         .0000        .66496E-02
  13  norm          1.7893        .18916         .0000       -.48875E-03
  14  Prefactor     .10000E-03    43.057         .0000    ** at limit **
  15  Prefactor     .10000E-03    5.1834         .0000    ** at limit **
  16  norm          1.9653        2.2433         .0000        .88020E-02
  17  Prefactor     6.0049        6.8594         .0000        .32258E-03
  18  Prefactor     5.9544        7.3797         .0000        .55704E-02
  19  Prefactor     3.9750        1.0154         .0000        .10372E-02
  20  Prefactor     .70412        .46414         .0000        .14425E-01
  21  norm          2.3732        .63409         .0000        .98131E-02
  22  Prefactor     .10000E-03    4.9865         .0000    ** at limit **
  23  Normalizat    .97905        .51736E-01     .0000        .82730E-03
  24  Prefactor     1.0649        .25152E-01     .0000        .95978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.918138
  Prefactor  = 0.227173
  norm       = 1.9773
  Prefactor  = 5.98295
  Prefactor  = 1.49011
  norm       = 4.11047
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.2131
  Prefactor  = 0.0001
  norm       = 1.09289
  norm       = 1.78931
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 1.96525
  Prefactor  = 6.00495
  Prefactor  = 5.95444
  Prefactor  = 3.975
  Prefactor  = 0.704123
  norm       = 2.37316
  Prefactor  = 0.0001
  Normalizat = 0.979051
  Prefactor  = 1.06485
 **********
 **   18 **HESSE 
 **********

 FCN=   111416.8     FROM HESSE     STATUS=OK           419 CALLS     3329 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91814        1.5065        .50616E-03   -1.5516    
   2  Prefactor     .22717        1.4298        .13345       -1.5613    
   3  norm          1.9773        4.5104        .14729E-02   -1.5427    
   4  Prefactor     5.9829        2.5007        .82079E-03   -1.5219    
   5  Prefactor     1.4901        14.380        .17583E-02   -1.5464    
   6  norm          4.1105        25.167        .19855E-03   -1.5302    
   7  Prefactor     .10000E-03    12.955        .76572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2131        6.9808        .14934E-03   -1.5171    
  11  Prefactor     .10000E-03    6.4080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0929        1.7882        .52726E-02   -1.5499    
  13  norm          1.7893        .18901        .45345E-04   -1.5440    
  14  Prefactor     .10000E-03    43.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9653        2.2381        .14789E-02   -1.5428    
  17  Prefactor     6.0049        6.6109        .16387E-03   -1.5218    
  18  Prefactor     5.9544        7.3884        .82294E-03   -1.5220    
  19  Prefactor     3.9750        1.0154        .20230E-04   -1.5309    
  20  Prefactor     .70412        .38260        .16619E-02   -1.5540    
  21  norm          2.3732        .63259        .12933E-03   -1.5400    
  22  Prefactor     .10000E-03    5.0912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97905        .57620E-01    .33649E-03   -.93736    
  24  Prefactor     1.0649        .28247E-01    .16488E-03   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31991e-08
Minuit parameter uncertainties:
  1  1.50653
  2  1.13962
  3  4.51122
  4  2.50077
  5  9.26057
  6  20.3545
  7  0.00018474
  8  2.51745e-05
  9  5.29072e-06
  10  6.9816
  11  5.77282e-05
  12  1.78827
  13  0.189012
  14  0.000851319
  15  0.000129364
  16  2.23818
  17  6.61173
  18  7.38955
  19  1.01545
  20  0.382599
  21  0.63259
  22  5.15318e-05
  23  0.0576234
  24  0.0282476
Done.

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

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.291e-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.065e+00  2.825e-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.791e-01  5.762e-02  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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.50e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880408/likelihoodResults_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.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) = 111416.835765
delta logL = -0.00299230779638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 111416.832773
delta logL = 8.68749339134e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5062       1.0000          .0000       10.000    
     3 'Normalizat'    .97907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0648       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   111416.8     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    317.69        .18142E-02** at limit **
   2  Index         2.4961        5.9058        .50000        .54370E-04
   3  Normalizat    .97905        .29512E-01    .33649E-03    .80546E-04
   4  Prefactor     1.0649        .15107E-01    .16488E-03    .11473E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   111416.8     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      416 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    317.69        .25291E-03** at limit **
   2  Index         2.4961        5.9058        .38273E-05    .54370E-04
   3  Normalizat    .97905        .29512E-01    .34483E-07    .80546E-04
   4  Prefactor     1.0649        .15107E-01    .10642E-07    .11473E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   111416.8     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      450 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7857        .36285E-03** at limit **
   2  Index         2.4956        6.2477        .50000        .54342E-04
   3  Normalizat    .97905        .52204E-01    .13460E-04    .11622E-03
   4  Prefactor     1.0649        .26739E-01    .65954E-05    .18203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.4956
  Normalizat = 0.979051
  Prefactor  = 1.06485
 **********
 **   18 **HESSE 
 **********

 FCN=   111416.8     FROM HESSE     STATUS=OK            29 CALLS      479 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6123        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4956        6.2454        .50000       -.52461    
   3  Normalizat    .97905        .52180E-01    .26919E-05   -.93736    
   4  Prefactor     1.0649        .26734E-01    .13191E-05   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60478e-09
Minuit parameter uncertainties:
  1  0.00017629
  2  4.33582
  3  0.0521825
  4  0.0267346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880408': 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) = 111416.832772
delta logL = 2.60188244283e-07

Extracting fit parameters...

4FGL J0636.5+7138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.763e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.496e+00  4.336e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  9.141e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.065e+00  2.673e-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.791e-01  5.218e-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 -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/880408/cmap_HighResolution_669859201_672451201_4FGL_J0636.5+7138_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-04', job_status='DONE', photon_flux_upper_limit='1.22e-08', time_completed='2022-04-24 03:55:56.096916', job_id='880408', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1650797756.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='167' AND source_name='4FGL J0636.5+7138' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:55:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 880408: <4FGL_J0636.5+7138_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0636.5+7138_monthly_bin167> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 01:00:36 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:05:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:05:00 2022
Terminated at Sun Apr 24 03:55:57 2022
Results reported at Sun Apr 24 03:55:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0636.5+7138_monthly_bin167 99.1402 71.6473 669859201 672451201 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 :                                   10083.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             476.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10256 sec.
    Turnaround time :                            10521 sec.

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

