/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 190 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 = 73129
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.4+7009_monthly_bin45
RA = 174.122, Dec = 70.1537
tmin = 353635201, tmax = 356227201
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='559957', job_status='RUN', time_executed='2021-10-22 22:23:48.911502', time_epoch_executed='1634966628.91' WHERE source_name='4FGL J1136.4+7009' and cadence='monthly' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559957

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559957/ft1_4FGL_J1136.4+7009_monthly_bin45.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559957/ft1_4FGL_J1136.4+7009_monthly_bin45.fits outfile=/scratch/kocevski/559957/ft1_filteredMKT_4FGL_J1136.4+7009_monthly_bin45.fits ra=174.122 dec=70.1537 rad=12.0 tmin=353635201.0 tmax=356227201.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 31.65
user 30.55
sys 0.62

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.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/559957/ft1_filteredMKT_4FGL_J1136.4+7009_monthly_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.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.84
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/559957/ltcube_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.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/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits
.....................!
real 112.32
user 110.03
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/559957/ltcube_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits outfile=/scratch/kocevski/559957/expmap_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.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/559957/ltcube_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits
.....................!
real 193.15
user 186.27
sys 5.11

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
Added 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.4+7009 @ 174.122 70.1537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits outfile=/scratch/kocevski/559957/cmap_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.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=174.122 yref=70.1537 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.78
user 0.58
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits outfile=/scratch/kocevski/559957/cmap_HighResolution_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.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=174.122 yref=70.1537 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.79
user 0.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559957/Model_4FGL_J1136.4+7009_monthly_bin45.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 GAL_V02
Working on...
/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits.....................!
real 700.35
user 695.30
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits', '/scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits', expMap='/scratch/kocevski/559957/expmap_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits', expCube='/scratch/kocevski/559957/ltcube_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559957/Model_4FGL_J1136.4+7009_monthly_bin45.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.4+7009'

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  1.574e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/559957/ft1_filtered_4FGL_J1136.4+7009_monthly_bin45.fits
Spacecraft file(s): /scratch/kocevski/559957/ft2_4FGL_J1136.4+7009_monthly_bin45.fits
Exposure map: /scratch/kocevski/559957/expmap_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits
Exposure cube: /scratch/kocevski/559957/ltcube_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559957/Model_4FGL_J1136.4+7009_monthly_bin45.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) = 74105.0111624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7709       1.0000         .10000E-03   10000.    
     2 'norm      '    .44568E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.398       1.0000         .10000E-03   10000.    
     7 'norm      '    .15912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.757       1.0000         .10000E-03   10000.    
     9 'norm      '    5.9775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18245E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80242       1.0000         .10000E-03   10000.    
    12 'norm      '    .38330       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95892E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26728E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4133       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7047       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8145       1.0000         .10000E-03   10000.    
    21 'norm      '    6.0799       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1122       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.381       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11976E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .83355       1.0000         .10000E-03   10000.    
    28 'norm      '    .15518       1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.749       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    25.553       1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.0558       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    1.2058       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .97414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74104.81     FROM MIGRAD    STATUS=CONVERGED   1085 CALLS     4930 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7710        3.0523         .0000       -.41750E-02
   2  norm          .44591E-01    .85952E-01     .0000        .26230E-01
   3  norm          3.3628        2.5887         .0000       -.20079E-02
   4  Prefactor     .10001E-03    .66675         .0000    ** at limit **
   5  Prefactor     12.048        6.4602         .0000        .76577E-03
   6  Prefactor     28.398        6.6590         .0000       -.35838E-03
   7  norm          .15912        .28593         .0000        .19215E-01
   8  Prefactor     22.744        13.464         .0000        .15450E-03
   9  norm          5.9776        1.5833         .0000        .22669E-02
  10  Prefactor     .10000E-03    31.970         .0000    ** at limit **
  11  Prefactor     .80592        1.3253         .0000        .15993E-01
  12  norm          .38306        .17339         .0000        .14626E-01
  13  norm          .10000E-03    .11612         .0000    ** at limit **
  14  Prefactor     .95926E-01    .67132         .0000        .20506E-02
  15  Prefactor     1.1310        1.4721         .0000        .38203E-03
  16  Prefactor     .10006E-03    1.2290         .0000    ** at limit **
  17  Prefactor     .10000E-03    1.1288         .0000    ** at limit **
  18  Prefactor     2.4133        .89422         .0000        .63207E-03
  19  norm          1.7043        2.3427         .0000        .37349E-02
  20  Prefactor     3.8147        2.9912         .0000        .42471E-02
  21  norm          6.0791        1.6098         .0000        .33367E-02
  22  Prefactor     1.1140        1.2897         .0000        .62328E-02
  23  Prefactor     .10000E-03    2.2054         .0000    ** at limit **
  24  Prefactor     16.382        9.0458         .0000        .32991E-03
  25  Prefactor     .10000E-03    .93298         .0000    ** at limit **
  26  Prefactor     .10001E-03    11.306         .0000    ** at limit **
  27  norm          .83362        .72362         .0000        .36933E-02
  28  norm          .15474        .34461         .0000        .14450E-01
  29  Prefactor     17.751        8.4408         .0000        .26833E-03
  30  Prefactor     .10000E-03    4.6034         .0000    ** at limit **
  31  Prefactor     25.556        9.9592         .0000        .61553E-03
  32  Prefactor     9.0562        5.7632         .0000        .17077E-03
  33  Prefactor     .10000E-03    1.3414         .0000    ** at limit **
  34  Prefactor     1.2063        1.8351         .0000        .28331    
  35  Prefactor     .10000E-03    1.5167         .0000    ** at limit **
  36  Normalizat    1.0056        .46838E-01     .0000       -.69037E-03
  37  Prefactor     .97413        .45985E-01     .0000       -.29260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77098
  norm       = 0.0445908
  norm       = 3.36276
  Prefactor  = 0.000100013
  Prefactor  = 12.0484
  Prefactor  = 28.3981
  norm       = 0.159123
  Prefactor  = 22.7443
  norm       = 5.97764
  Prefactor  = 0.000100001
  Prefactor  = 0.805923
  norm       = 0.383062
  norm       = 0.0001
  Prefactor  = 0.0959261
  Prefactor  = 1.13101
  Prefactor  = 0.000100058
  Prefactor  = 0.000100003
  Prefactor  = 2.41332
  norm       = 1.70432
  Prefactor  = 3.81475
  norm       = 6.07905
  Prefactor  = 1.11399
  Prefactor  = 0.0001
  Prefactor  = 16.3824
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.83362
  norm       = 0.154736
  Prefactor  = 17.7512
  Prefactor  = 0.0001
  Prefactor  = 25.5556
  Prefactor  = 9.05616
  Prefactor  = 0.0001
  Prefactor  = 1.20626
  Prefactor  = 0.0001
  Normalizat = 1.00557
  Prefactor  = 0.97413
 **********
 **   18 **HESSE 
 **********

 FCN=   74104.81     FROM HESSE     STATUS=OK           895 CALLS     5825 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7710        3.0483        .13534E-03   -1.5116    
   2  norm          .44591E-01    .14873        .10500E-02   -1.5666    
   3  norm          3.3628        2.5889        .22068E-03   -1.5341    
   4  Prefactor     .10001E-03    1.1102        .63557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.048        6.6702        .11539E-03   -1.5014    
   6  Prefactor     28.398        6.3340        .75179E-04   -1.4642    
   7  norm          .15912        .32083        .17062E-02   -1.5628    
   8  Prefactor     22.744        12.652        .83966E-04   -1.4754    
   9  norm          5.9776        1.7001        .14312E-03   -1.5219    
  10  Prefactor     .10000E-03    32.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .80592        1.1517        .27765E-03   -1.5528    
  12  norm          .38306        .15158        .59654E-03   -1.5584    
  13  norm          .10000E-03    .35773        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .95926E-01    1.3197        .62327E-01   -1.5646    
  15  Prefactor     1.1310        1.2543        .43881E-04   -1.5495    
  16  Prefactor     .10006E-03    10.386        .57715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5134        .56169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4133        .89333        .15155E-03   -1.5397    
  19  norm          1.7043        2.3251        .32209E-03   -1.5447    
  20  Prefactor     3.8147        2.8831        .20666E-03   -1.5317    
  21  norm          6.0791        1.5811        .16219E-03   -1.5215    
  22  Prefactor     1.1140        1.2448        .31162E-03   -1.5497    
  23  Prefactor     .10000E-03    2.2683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.382        9.0454        .98959E-04   -1.4898    
  25  Prefactor     .10000E-03    3.7256        .50727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .83362        .71351        .20894E-03   -1.5525    
  28  norm          .15474        .53098        .21646E-02   -1.5629    
  29  Prefactor     17.751        8.4417        .95068E-04   -1.4865    
  30  Prefactor     .10000E-03    4.6516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     25.556        9.9563        .79246E-04   -1.4696    
  32  Prefactor     9.0562        5.7582        .13319E-03   -1.5106    
  33  Prefactor     .10000E-03    1.3616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.2063        1.8295        .20633E-02   -1.5488    
  35  Prefactor     .10000E-03    1.5349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    1.0056        .52892E-01    .23250E-03   -.92844    
  37  Prefactor     .97413        .52883E-01    .23698E-03   -.93597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82023e-07
Minuit parameter uncertainties:
  1  3.04831
  2  0.148727
  3  2.58895
  4  0.000240245
  5  6.6706
  6  6.3341
  7  0.320837
  8  12.6535
  9  1.70013
  10  0.000348712
  11  1.15172
  12  0.151584
  13  8.97886e-06
  14  0.711242
  15  1.25436
  16  0.00155287
  17  0.000216865
  18  0.893333
  19  2.3252
  20  2.88324
  21  1.5811
  22  1.24484
  23  4.98092e-05
  24  9.04617
  25  6.69322e-05
  26  0.000616949
  27  0.713514
  28  0.530999
  29  8.44231
  30  7.57639e-05
  31  9.9569
  32  5.75851
  33  1.67322e-05
  34  1.82961
  35  3.02576e-05
  36  0.0528943
  37  0.0528863
Done.

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

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  2.413e+00  8.933e-01  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  9.741e-01  5.289e-02  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  1.006e+00  5.289e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.95
Ra Dec: 174.122 70.154
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 4.04e-09
Energy Flux (Fixed Index): 1.26e-05 +/- 4.68e-06

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) = 74104.7912872
delta logL = 0.0145989588054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74104.7887112
delta logL = 0.0171750069858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3780       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8662       1.0000          .0000       10.000    
     3 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+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=   74104.79     FROM MIGRAD    STATUS=FAILED        92 CALLS      263 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3780        .92300        .14717E-03    .39995E-02
   2  Index         1.8662        .30601        .13963E-01    .33282E-02
   3  Normalizat    1.0043        .50896E-01    .23262E-03    .15639E-05
   4  Prefactor     .97455        .50835E-01    .23693E-03    .76774E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   74104.79     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      334 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3780        .92300        .33663E-04   -1.5400    
   2  Index         1.8662        .30601        .34831E-03   -.67740    
   3  Normalizat    1.0043        .50896E-01    .56618E-04   -.92886    
   4  Prefactor     .97455        .50835E-01    .88133E-04   -.93583    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74104.79     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      372 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3779        .89808        .58869E-05   -.19157E-03
   2  Index         1.8662        .29778        .27926E-02    .37843E-04
   3  Normalizat    1.0043        .50862E-01    .93049E-05   -.19549E-04
   4  Prefactor     .97455        .50858E-01    .94771E-05   -.15355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37794
  Index      = 1.86616
  Normalizat = 1.00432
  Prefactor  = 0.974555
 **********
 **   18 **HESSE 
 **********

 FCN=   74104.79     FROM HESSE     STATUS=OK            23 CALLS      395 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3779        .89395        .11774E-05   -1.5400    
   2  Index         1.8662        .29618        .11171E-03   -.67740    
   3  Normalizat    1.0043        .50785E-01    .18610E-05   -.92886    
   4  Prefactor     .97455        .50807E-01    .18954E-05   -.93583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92658e-12
Minuit parameter uncertainties:
  1  0.893959
  2  0.296468
  3  0.0507873
  4  0.0508092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559957': 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) = 74104.7887112
delta logL = 0.0171750098962

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  2.378e+00  8.940e-01  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.866e+00  2.965e-01  0.000e+00  1.000e+01 (-1.000e+00)
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  9.746e-01  5.081e-02  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  1.004e+00  5.079e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.97
Ra Dec: 174.122 70.154
Photon Index (Free Index): 1.87 +/- 0.30
Photon Flux (Free Index): 1.21e-08 +/- 7.71e-09
Energy Flux (Free Index): 1.19e-05 +/- 5.71e-06

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/559957/cmap_HighResolution_353635201_356227201_4FGL_J1136.4+7009_monthly_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.19e-05', photon_flux_error='4.04e-09', dlogl='1.72e-02', energy_flux='1.26e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-10-23 01:08:04.323675', photon_index_error2='0.30', photon_index2='1.87', ts='34.95', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.71e-06', EG='1.01', time_epoch_completed='1634976484.32', return_code='0', job_id='559957', GAL2='0.97', EG2='1.00', return_code2='0', energy_flux_error='4.68e-06', photon_flux_error2='7.71e-09', ts2='34.97', photon_index='1.81' WHERE bin_id='45' AND source_name='4FGL J1136.4+7009' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 01:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 559957: <4FGL_J1136.4+7009_monthly_bin45> in cluster <slac> Done

Job <4FGL_J1136.4+7009_monthly_bin45> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct 22 22:20:26 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 22:20:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 22:20:28 2021
Terminated at Sat Oct 23 01:08:05 2021
Results reported at Sat Oct 23 01:08:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+7009_monthly_bin45 174.122 70.1537 353635201 356227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.4+7009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9717.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             422.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10057 sec.
    Turnaround time :                            10059 sec.

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

