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


Performing analysis on: 4FGL_J1136.4+7009_monthly_bin84
RA = 174.122, Dec = 70.1537
tmin = 454723201, tmax = 457315201
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='561179', job_status='RUN', time_executed='2021-10-22 22:29:27.205354', time_epoch_executed='1634966967.21' WHERE source_name='4FGL J1136.4+7009' and cadence='monthly' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561179

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561179/ft1_4FGL_J1136.4+7009_monthly_bin84.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561179/ft1_4FGL_J1136.4+7009_monthly_bin84.fits outfile=/scratch/kocevski/561179/ft1_filteredMKT_4FGL_J1136.4+7009_monthly_bin84.fits ra=174.122 dec=70.1537 rad=12.0 tmin=454723201.0 tmax=457315201.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 37.42
user 36.58
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.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/561179/ft1_filteredMKT_4FGL_J1136.4+7009_monthly_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/561179/ltcube_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.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/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits
.....................!
real 110.31
user 109.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/561179/ltcube_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits outfile=/scratch/kocevski/561179/expmap_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.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/561179/ltcube_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits
.....................!
real 192.85
user 187.72
sys 4.72

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/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits outfile=/scratch/kocevski/561179/cmap_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.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.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits outfile=/scratch/kocevski/561179/cmap_HighResolution_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.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.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561179/Model_4FGL_J1136.4+7009_monthly_bin84.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/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits.....................!
real 720.67
user 718.15
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits', '/scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits', expMap='/scratch/kocevski/561179/expmap_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits', expCube='/scratch/kocevski/561179/ltcube_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/561179/Model_4FGL_J1136.4+7009_monthly_bin84.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/561179/ft1_filtered_4FGL_J1136.4+7009_monthly_bin84.fits
Spacecraft file(s): /scratch/kocevski/561179/ft2_4FGL_J1136.4+7009_monthly_bin84.fits
Exposure map: /scratch/kocevski/561179/expmap_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits
Exposure cube: /scratch/kocevski/561179/ltcube_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/561179/Model_4FGL_J1136.4+7009_monthly_bin84.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) = 74014.2472997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4766       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8728       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.632       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4319       1.0000         .10000E-03   10000.    
     9 'norm      '    .96851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42941       1.0000         .10000E-03   10000.    
    12 'norm      '    .16543       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29591       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15332E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0293       1.0000         .10000E-03   10000.    
    19 'norm      '    .50916       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11912E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3310       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3254       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.867       1.0000         .10000E-03   10000.    
    27 'norm      '    7.9227       1.0000         .10000E-03   10000.    
    28 'norm      '    1.4950       1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.564       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.6069       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.0785       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.3619       1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.5484       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .17372       1.0000         .10000E-03   10000.    
    35 'Prefactor '    2.4861       1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.2441       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .76748       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.

 FCN=   74014.16     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     4936 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4766        3.2354        .66870E-07   -.94065E-04
   2  norm          2.8728        .27893       -.68828E-08   -.97357E-06
   3  norm          1.1733        2.9733       -.19850E-06   -.11227E-04
   4  Prefactor     13.632        3.9866        .28344E-06   -.22079E-03
   5  Prefactor     18.137        8.3112        .34016E-07   -.64671E-04
   6  Prefactor     14.089        8.9106        .61444E-06   -.14712E-03
   7  norm          3.2061        .89544       -.86820E-07    .14824E-03
   8  Prefactor     2.4323        8.3174        .11551E-06   -.35230E-04
   9  norm          .96860        1.1799        .33251E-07    .22583E-04
  10  Prefactor     6.3114        27.341        .62225E-06   -.78174E-05
  11  Prefactor     .42951        .58486       -.80052E-07   -.41132E-03
  12  norm          .16544        .13463       -.13682E-07   -.16904E-02
  13  norm          2.2379        .82615       -.31567E-07   -.27541E-03
  14  Prefactor     14.426        3.5955       -.94504E-07    .85952E-04
  15  Prefactor     .29245        .68648        .58395E-07   -.71249E-03
  16  Prefactor     .10000E-03    3.6165       -.29917E-06** at limit **
  17  Prefactor     .10000E-03    1.1973       -.89595E-07** at limit **
  18  Prefactor     2.0293        .77147       -.78082E-08   -.19018E-04
  19  norm          .50933        .41433       -.11341E-06   -.66408E-03
  20  Prefactor     .10000E-03    .46004       -.16257E-07** at limit **
  21  norm          .10000E-03    .31824        .17641E-06** at limit **
  22  Prefactor     .10000E-03    .47537        .95135E-06** at limit **
  23  Prefactor     4.3306        5.3387       -.23254E-05   -.56981E-03
  24  Prefactor     2.5908        9.5636       -.80322E-06    .10636E-04
  25  Prefactor     7.3260        4.3921        .37668E-06   -.25165E-03
  26  Prefactor     15.861        18.413       -.99770E-05    .10815E-03
  27  norm          7.9229        1.5634       -.18845E-07   -.17186E-03
  28  norm          1.4947        .75461        .88452E-09   -.25327E-04
  29  Prefactor     17.564        11.340        .48273E-06   -.66727E-04
  30  Prefactor     7.6075        9.1725        .12950E-06   -.20913E-04
  31  Prefactor     5.0785        7.0848        .19457E-07   -.39958E-04
  32  Prefactor     2.3621        3.5253        .10428E-06   -.93414E-04
  33  Prefactor     4.5490        3.8935       -.15683E-06   -.53166E-04
  34  Prefactor     .17360        .54367        .19545E-06   -.13413E-02
  35  Prefactor     2.4862        2.9685        .59622E-06   -.27200E-03
  36  Normalizat    1.2440        .50066E-01    .21708E-06   -.15537E-02
  37  Prefactor     .76752        .47304E-01   -.33789E-08   -.70972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4766
  norm       = 2.8728
  norm       = 1.17329
  Prefactor  = 13.6325
  Prefactor  = 18.1372
  Prefactor  = 14.0889
  norm       = 3.20607
  Prefactor  = 2.43226
  norm       = 0.968603
  Prefactor  = 6.31143
  Prefactor  = 0.429511
  norm       = 0.165438
  norm       = 2.23788
  Prefactor  = 14.426
  Prefactor  = 0.292447
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.02927
  norm       = 0.509329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.33059
  Prefactor  = 2.59075
  Prefactor  = 7.32596
  Prefactor  = 15.8609
  norm       = 7.92287
  norm       = 1.4947
  Prefactor  = 17.5644
  Prefactor  = 7.60752
  Prefactor  = 5.07852
  Prefactor  = 2.36214
  Prefactor  = 4.54898
  Prefactor  = 0.173602
  Prefactor  = 2.48623
  Normalizat = 1.24401
  Prefactor  = 0.767516
 **********
 **   18 **HESSE 
 **********

 FCN=   74014.16     FROM HESSE     STATUS=OK           901 CALLS     5837 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4766        3.2381        .73337E-03   -1.5161    
   2  norm          2.8728        .27854        .42827E-04   -1.5369    
   3  norm          1.1733        2.9415        .42323E-03   -1.5491    
   4  Prefactor     13.632        3.9707        .10848E-03   -1.4969    
   5  Prefactor     18.137        8.3143        .94045E-04   -1.4856    
   6  Prefactor     14.089        9.1266        .10672E-03   -1.4957    
   7  norm          3.2061        .91390        .10594E-03   -1.5350    
   8  Prefactor     2.4323        8.1501        .13120E-02   -1.5396    
   9  norm          .96860        1.0914        .26390E-03   -1.5511    
  10  Prefactor     6.3114        27.315        .15978E-03   -1.5205    
  11  Prefactor     .42951        .64652        .19995E-02   -1.5577    
  12  norm          .16544        .96633E-01    .74819E-03   -1.5627    
  13  norm          2.2379        1.6108        .10345E-03   -1.5409    
  14  Prefactor     14.426        3.3513        .10545E-03   -1.4948    
  15  Prefactor     .29245        11.350        .23428E-02   -1.5600    
  16  Prefactor     .10000E-03    3.6706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1733        .10453       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0293        .77211        .14297E-03   -1.5423    
  19  norm          .50933        2.3417        .22616E-02   -1.5565    
  20  Prefactor     .10000E-03    2.0616        .33946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .97781        .28734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8793        .33748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3306        5.2129        .19356E-03   -1.5292    
  24  Prefactor     2.5908        9.5627        .25347E-03   -1.5386    
  25  Prefactor     7.3260        4.3939        .14819E-03   -1.5167    
  26  Prefactor     15.861        18.222        .10055E-03   -1.4911    
  27  norm          7.9229        1.5665        .71226E-03   -1.5145    
  28  norm          1.4947        .73264        .15768E-03   -1.5463    
  29  Prefactor     17.564        11.343        .95568E-04   -1.4870    
  30  Prefactor     7.6075        9.1679        .14540E-03   -1.5156    
  31  Prefactor     5.0785        7.0845        .89210E-03   -1.5257    
  32  Prefactor     2.3621        3.5170        .13333E-02   -1.5401    
  33  Prefactor     4.5490        3.8806        .18876E-03   -1.5281    
  34  Prefactor     .17360        2.1018        .34074E-02   -1.5625    
  35  Prefactor     2.4862        2.9765        .12963E-02   -1.5393    
  36  Normalizat    1.2440        .57890E-01    .22649E-03   -.85253    
  37  Prefactor     .76752        .54950E-01    .27403E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96825e-06
Minuit parameter uncertainties:
  1  3.23819
  2  0.278543
  3  2.94191
  4  3.97078
  5  8.31484
  6  9.12751
  7  0.913907
  8  8.15383
  9  1.09139
  10  26.2801
  11  0.646529
  12  0.0966333
  13  1.61086
  14  3.35135
  15  3.64392
  16  3.3416e-06
  17  7.27789e-05
  18  0.772114
  19  2.18414
  20  8.35141e-06
  21  1.90777e-05
  22  0.000135026
  23  5.21344
  24  9.56837
  25  4.39414
  26  18.2279
  27  1.56654
  28  0.732641
  29  11.3448
  30  9.16962
  31  7.08567
  32  3.51734
  33  3.88079
  34  1.20781
  35  2.97666
  36  0.0578929
  37  0.0549538
Done.

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

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  2.029e+00  7.721e-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:  7.675e-01  5.495e-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.244e+00  5.789e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.07
Ra Dec: 174.122 70.154
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 9.18e-09 +/- 3.49e-09
Energy Flux (Fixed Index): 1.06e-05 +/- 4.05e-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) = 74013.9543547
delta logL = 0.204706611563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 74013.9503947
delta logL = 0.208666608829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1571       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6347       1.0000          .0000       10.000    
     3 'Normalizat'    1.2463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76682       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.

 FCN=   74013.95     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1571        8.0445        .70122E-02   -.49996E-03
   2  Index         1.6347        1.4144        .28434        .16442E-03
   3  Normalizat    1.2463        .17666E-01    .51190E-01    .41890E-04
   4  Prefactor     .76682        .14134E-01    .61982E-01    .22063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15711
  Index      = 1.63468
  Normalizat = 1.24626
  Prefactor  = 0.766821
 **********
 **   18 **HESSE 
 **********

 FCN=   74013.95     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1571        .85350        .15282E-03   -1.5414    
   2  Index         1.6347        .27236        .10920E-01   -.73834    
   3  Normalizat    1.2463        .53735E-01    .22632E-03   -.85185    
   4  Prefactor     .76682        .52509E-01    .27415E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80564e-12
Minuit parameter uncertainties:
  1  0.853504
  2  0.272606
  3  0.053737
  4  0.0525126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561179': 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) = 74013.9503947
delta logL = 0.208666611317

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  2.157e+00  8.535e-01  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.635e+00  2.726e-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:  7.668e-01  5.251e-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.246e+00  5.374e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.48
Ra Dec: 174.122 70.154
Photon Index (Free Index): 1.63 +/- 0.27
Photon Flux (Free Index): 6.95e-09 +/- 4.08e-09
Energy Flux (Free Index): 1.40e-05 +/- 8.47e-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/561179/cmap_HighResolution_454723201_457315201_4FGL_J1136.4+7009_monthly_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.18e-09', energy_flux2='1.40e-05', photon_flux_error='3.49e-09', dlogl='2.09e-01', energy_flux='1.06e-05', photon_flux2='6.95e-09', job_status='DONE', time_completed='2021-10-23 01:14:04.932449', photon_index_error2='0.27', photon_index2='1.63', ts='27.07', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='8.47e-06', EG='1.24', time_epoch_completed='1634976844.93', return_code='0', job_id='561179', GAL2='0.77', EG2='1.25', return_code2='0', energy_flux_error='4.05e-06', photon_flux_error2='4.08e-09', ts2='27.48', photon_index='1.81' WHERE bin_id='84' AND source_name='4FGL J1136.4+7009' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 01:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 561179: <4FGL_J1136.4+7009_monthly_bin84> in cluster <slac> Done

Job <4FGL_J1136.4+7009_monthly_bin84> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Oct 22 22:25:25 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 22:25:26 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:25:26 2021
Terminated at Sat Oct 23 01:14:06 2021
Results reported at Sat Oct 23 01:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+7009_monthly_bin84 174.122 70.1537 454723201 457315201 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 :                                   9835.00 sec.
    Max Memory :                                 788 MB
    Average Memory :                             428.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10119 sec.
    Turnaround time :                            10121 sec.

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

