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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin740
RA = 174.075, Dec = 34.129
tmin = 431136001, tmax = 431395201
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='948212', job_status='RUN', time_executed='2021-09-04 05:03:36.472974', time_epoch_executed='1630757016.47' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948212/ft1_4FGL_J1136.2+3407_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948212/ft1_4FGL_J1136.2+3407_daily_bin740.fits outfile=/scratch/kocevski/948212/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin740.fits ra=174.075 dec=34.129 rad=12.0 tmin=431136001.0 tmax=431395201.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 4.98
user 4.47
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.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/948212/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.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.96
user 0.28
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/948212/ltcube_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.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/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits
.....................!
real 10.73
user 10.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/948212/ltcube_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits outfile=/scratch/kocevski/948212/expmap_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.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/948212/ltcube_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits
.....................!
real 156.52
user 151.76
sys 4.22

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

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits outfile=/scratch/kocevski/948212/cmap_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.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.075 yref=34.129 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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits outfile=/scratch/kocevski/948212/cmap_HighResolution_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.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.075 yref=34.129 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.49
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948212/Model_4FGL_J1136.2+3407_daily_bin740.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/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits.....................!
real 39.64
user 38.43
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits', '/scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits', expMap='/scratch/kocevski/948212/expmap_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits', expCube='/scratch/kocevski/948212/ltcube_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948212/Model_4FGL_J1136.2+3407_daily_bin740.xml', optimizer='MINUIT')

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

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948212/ft1_filtered_4FGL_J1136.2+3407_daily_bin740.fits
Spacecraft file(s): /scratch/kocevski/948212/ft2_4FGL_J1136.2+3407_daily_bin740.fits
Exposure map: /scratch/kocevski/948212/expmap_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits
Exposure cube: /scratch/kocevski/948212/ltcube_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948212/Model_4FGL_J1136.2+3407_daily_bin740.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) = 5120.19517415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    187.26       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.399       1.0000         .10000E-03   10000.    
     4 'norm      '    .82949       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.096       1.0000         .10000E-03   10000.    
     9 'norm      '    9.5312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.814       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.665       1.0000         .10000E-03   10000.    
    17 'norm      '    8.5816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6702       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.128       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.7823       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90227       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5120.164     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3878 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.946       -.46622E-06** at limit **
   2  Prefactor     187.30        147.73        .10023E-05    .14173E-04
   3  Prefactor     24.402        13.841        .17459E-06    .22733E-04
   4  norm          .82954        .31770        .40262E-07    .95929E-03
   5  Prefactor     .10000E-03    .93703       -.11819E-06** at limit **
   6  Prefactor     .10000E-03    50.891       -.35165E-06** at limit **
   7  Prefactor     .10000E-03    12.157       -.87262E-07** at limit **
   8  norm          31.099        18.004        .32996E-06    .10359E-03
   9  norm          9.5380        18.097        .88020E-06    .39991E-04
  10  Prefactor     .10000E-03    1.2493       -.29224E-06** at limit **
  11  Prefactor     .10000E-03    26.742       -.45298E-06** at limit **
  12  Prefactor     14.817        15.007        .20929E-06    .38798E-04
  13  norm          3.5734        3.7979        .86897E-06    .60441E-03
  14  Prefactor     .10000E-03    7.1735       -.20506E-06** at limit **
  15  Prefactor     6.4656        5.0847        .16498E-07    .66468E-04
  16  Prefactor     27.815        82.726        .71836E-06    .28047E-04
  17  norm          8.5809        2.4282       -.15140E-06   -.54313E-03
  18  Prefactor     6.5780        24.323        .22708E-05    .94889E-04
  19  Prefactor     4.6705        2.8762        .57270E-07    .28123E-03
  20  norm          .10000E-03    6.4460        .17197E-06** at limit **
  21  Prefactor     .10000E-03    27.181       -.59875E-06** at limit **
  22  Prefactor     .10000E-03    57.301        .21578E-07** at limit **
  23  norm          .10000E-03    .88454       -.45756E-06** at limit **
  24  Prefactor     .10000E-03    21.075       -.32562E-06** at limit **
  25  norm          14.128        6.0431       -.11843E-06    .19929E-03
  26  Prefactor     5.7833        9.5354        .48099E-06    .54901E-04
  27  Prefactor     1.6021        3.8528        .60812E-06    .25368E-03
  28  Prefactor     .10000E-03    .90843       -.74095E-07** at limit **
  29  Normalizat    1.1158        .26940       -.73290E-05    .39661E-03
  30  Prefactor     .90301        .28203        .92953E-05    .19534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 187.3
  Prefactor  = 24.4025
  norm       = 0.82954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.0988
  norm       = 9.53801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8175
  norm       = 3.57336
  Prefactor  = 0.0001
  Prefactor  = 6.46564
  Prefactor  = 27.8151
  norm       = 8.58092
  Prefactor  = 6.57802
  Prefactor  = 4.67051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1283
  Prefactor  = 5.78331
  Prefactor  = 1.60214
  Prefactor  = 0.0001
  Normalizat = 1.11579
  Prefactor  = 0.903011
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.164     FROM HESSE     STATUS=OK           578 CALLS     4456 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     187.30        147.66        .14754E-03   -1.2962    
   3  Prefactor     24.402        13.837        .81095E-04   -1.4720    
   4  norm          .82954        .31765        .24035E-04   -1.5526    
   5  Prefactor     .10000E-03    .94025        .67637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.099        17.960        .71852E-04   -1.4592    
   9  norm          9.5380        18.060        .12981E-03   -1.5090    
  10  Prefactor     .10000E-03    1.2712        .78221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.817        15.004        .10406E-03   -1.4938    
  13  norm          3.5734        3.8262        .13117E-03   -1.5330    
  14  Prefactor     .10000E-03    7.1898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4656        5.0834        .13805E-03   -1.5199    
  16  Prefactor     27.815        82.648        .76167E-04   -1.4653    
  17  norm          8.5809        2.4447        .50314E-04   -1.5122    
  18  Prefactor     6.5780        24.106        .15651E-03   -1.5195    
  19  Prefactor     4.6705        2.8677        .88946E-04   -1.5276    
  20  norm          .10000E-03    6.4580        .17743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9045        .12550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.128        5.9774        .88927E-04   -1.4956    
  26  Prefactor     5.7833        9.5228        .16703E-03   -1.5227    
  27  Prefactor     1.6021        3.8043        .16963E-03   -1.5455    
  28  Prefactor     .10000E-03    .91282        .66597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1158        .27178        .26536E-03   -.89246    
  30  Prefactor     .90301        .28563        .32918E-03   -.96036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07419e-10
Minuit parameter uncertainties:
  1  6.18854e-05
  2  147.956
  3  13.839
  4  0.317651
  5  2.34971e-06
  6  8.11607e-05
  7  2.03934e-05
  8  17.9634
  9  18.0699
  10  1.16473e-05
  11  0.000100303
  12  15.0076
  13  3.82648
  14  1.44718e-05
  15  5.08369
  16  82.9909
  17  2.44476
  18  24.1415
  19  2.86779
  20  7.29878e-06
  21  8.46636e-05
  22  1.9637e-06
  23  7.14581e-05
  24  2.2593e-05
  25  5.97763
  26  9.52524
  27  3.80485
  28  1.66816e-06
  29  0.272127
  30  0.286103
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.466e+00  5.084e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.030e-01  2.861e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.116e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 9.65e-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) = 5119.16849179
delta logL = 0.995385764964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5119.15196467
delta logL = 1.01191288458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4345       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7709       1.0000          .0000       10.000    
     3 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5119.152     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4345        5.6616        .36773E-02   -.54602E-02
   2  Index         1.7710        .41075        .19007       -.35474E-04
   3  Normalizat    1.1375        .21049        .59491E-01    .30592E-06
   4  Prefactor     .88638        .23850        .74958E-01    .20017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43453
  Index      = 1.77101
  Normalizat = 1.1375
  Prefactor  = 0.886379
 **********
 **   18 **HESSE 
 **********

 FCN=   5119.152     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4345        6.0397        .14369E-03   -1.5163    
   2  Index         1.7710        .49290        .74711E-02   -.70207    
   3  Normalizat    1.1375        .25056        .26311E-03   -.88557    
   4  Prefactor     .88638        .28359        .33172E-03   -.96619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63273e-08
Minuit parameter uncertainties:
  1  6.0402
  2  0.494281
  3  0.250819
  4  0.284058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948212': 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) = 5119.15196463
delta logL = 1.01191292673

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.435e+00  6.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.771e+00  4.943e-01  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.864e-01  2.841e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.138e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.77 +/- 0.49
Photon Flux (Free Index): 2.46e-08 +/- 2.34e-08
Energy Flux (Free Index): 3.22e-05 +/- 3.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/948212/cmap_HighResolution_431136001_431395201_4FGL_J1136.2+3407_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='3.22e-05', photon_flux_error='3.51e-08', dlogl='1.01e+00', energy_flux='1.23e-05', photon_flux2='2.46e-08', job_status='DONE', time_completed='2021-09-04 05:13:05.142492', photon_index_error2='0.49', photon_index2='1.77', ts='4.51', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.88e-05', EG='1.12', time_epoch_completed='1630757585.14', return_code='0', job_id='948212', GAL2='0.89', EG2='1.14', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='2.34e-08', ts2='6.54', photon_index='2.55' WHERE bin_id='740' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 948212: <4FGL_J1136.2+3407_daily_bin740> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin740> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:27 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:01:29 2021
Terminated at Sat Sep  4 05:13:05 2021
Results reported at Sat Sep  4 05:13:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin740 174.075 34.129 431136001 431395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   564.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

