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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin133
RA = 174.075, Dec = 34.129
tmin = 273801601, tmax = 274060801
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='945481', job_status='RUN', time_executed='2021-09-04 04:54:17.117290', time_epoch_executed='1630756457.12' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945481/ft1_4FGL_J1136.2+3407_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945481/ft1_4FGL_J1136.2+3407_daily_bin133.fits outfile=/scratch/kocevski/945481/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin133.fits ra=174.075 dec=34.129 rad=12.0 tmin=273801601.0 tmax=274060801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.59
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.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/945481/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/945481/ltcube_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.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/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits
.....................!
real 12.66
user 12.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/945481/ltcube_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits outfile=/scratch/kocevski/945481/expmap_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.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/945481/ltcube_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits
.....................!
real 191.07
user 185.35
sys 5.29

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/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits scfile=/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits outfile=/scratch/kocevski/945481/cmap_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits scfile=/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits outfile=/scratch/kocevski/945481/cmap_HighResolution_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits', '/scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits', expMap='/scratch/kocevski/945481/expmap_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits', expCube='/scratch/kocevski/945481/ltcube_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/945481/Model_4FGL_J1136.2+3407_daily_bin133.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/945481/ft1_filtered_4FGL_J1136.2+3407_daily_bin133.fits
Spacecraft file(s): /scratch/kocevski/945481/ft2_4FGL_J1136.2+3407_daily_bin133.fits
Exposure map: /scratch/kocevski/945481/expmap_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits
Exposure cube: /scratch/kocevski/945481/ltcube_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/945481/Model_4FGL_J1136.2+3407_daily_bin133.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) = 5794.69643675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8853       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12615E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.7294       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9352       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2148       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12182E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5409       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1753       1.0000         .10000E-03   10000.    
    25 'norm      '    .77632       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0628       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23440E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6548       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76640       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=   5794.574     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3396 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.808       -.45338E-04** at limit **
   2  Prefactor     .10000E-03    23.577       -.47190E-05** at limit **
   3  Prefactor     2.8802        10.867       -.13828E-05   -.14344E-03
   4  norm          1.0343        .28773       -.56691E-09    .79132E-03
   5  Prefactor     .10000E-03    2.2065        .67731E-07** at limit **
   6  Prefactor     .10000E-03    15.338        .13626E-05** at limit **
   7  Prefactor     .10000E-03    5.5258       -.57866E-06** at limit **
   8  norm          4.7022        13.711       -.59181E-05   -.37692E-04
   9  norm          4.0124        12.966       -.48225E-05   -.12783E-03
  10  Prefactor     .10000E-03    .76968        .14296E-07** at limit **
  11  Prefactor     .10000E-03    15.509       -.46093E-06** at limit **
  12  Prefactor     .10000E-03    5.5529        .52445E-06** at limit **
  13  norm          6.9344        2.9190       -.12420E-06    .40337E-04
  14  Prefactor     .10000E-03    3.6908       -.99857E-08** at limit **
  15  Prefactor     7.2545        5.0411        .48737E-06   -.99927E-04
  16  Prefactor     .10000E-03    23.333       -.65608E-05** at limit **
  17  norm          .10000E-03    .30276       -.14243E-06** at limit **
  18  Prefactor     .10000E-03    26.878        .12427E-04** at limit **
  19  Prefactor     2.2146        1.8680       -.16584E-06   -.46589E-03
  20  norm          .10000E-03    2.3721       -.13035E-07** at limit **
  21  Prefactor     .10000E-03    24.226        .30953E-05** at limit **
  22  Prefactor     .10000E-03    67.658        .52581E-04** at limit **
  23  norm          1.5398        1.3331       -.98392E-07   -.47492E-03
  24  Prefactor     6.0199        46.703       -.10926E-04   -.52401E-05
  25  norm          .77716        2.4490       -.21802E-06   -.56979E-03
  26  Prefactor     3.0586        7.2534       -.18837E-05   -.28552E-03
  27  Prefactor     .10325E-02    1.4185       -.34597E-06** at limit **
  28  Prefactor     2.6541        2.8623       -.82711E-07   -.14163E-03
  29  Normalizat    1.1920        .18191        .23627E-05    .13218E-03
  30  Prefactor     .76620        .20271        .13866E-06    .13214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88021
  norm       = 1.03426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70215
  norm       = 4.01245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9344
  Prefactor  = 0.0001
  Prefactor  = 7.25446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21463
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.53978
  Prefactor  = 6.01989
  norm       = 0.777161
  Prefactor  = 3.05856
  Prefactor  = 0.0010325
  Prefactor  = 2.65408
  Normalizat = 1.19197
  Prefactor  = 0.766199
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.574     FROM HESSE     STATUS=OK           594 CALLS     3990 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8802        10.816        .23926E-03   -1.5369    
   4  norm          1.0343        .28814        .20786E-04   -1.5505    
   5  Prefactor     .10000E-03    2.2687        .21939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5314        .17474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7022        13.708        .18503E-03   -1.5274    
   9  norm          4.0124        13.010        .20067E-03   -1.5307    
  10  Prefactor     .10000E-03    .77789        .65146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5596        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9344        2.9121        .80161E-04   -1.5181    
  14  Prefactor     .10000E-03    3.6962        .14282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2545        5.0372        .13623E-03   -1.5169    
  16  Prefactor     .10000E-03    23.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .44570        .81204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2146        1.8653        .92025E-04   -1.5410    
  20  norm          .10000E-03    2.3727        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    67.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5398        1.3150        .76824E-04   -1.5460    
  24  Prefactor     6.0199        46.304        .16155E-03   -1.5217    
  25  norm          .77716        2.5260        .17391E-03   -1.5532    
  26  Prefactor     3.0586        7.2454        .23180E-03   -1.5358    
  27  Prefactor     .10325E-02    3.5870        .28889E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.6541        2.7732        .12086E-03   -1.5382    
  29  Normalizat    1.1920        .21012        .21851E-03   -.86851    
  30  Prefactor     .76620        .23285        .30917E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29458e-09
Minuit parameter uncertainties:
  1  0.000275739
  2  5.62124e-06
  3  10.8237
  4  0.288143
  5  6.99993e-06
  6  0.000106977
  7  2.90293e-06
  8  13.7175
  9  13.0194
  10  1.70016e-07
  11  9.10898e-07
  12  1.18506e-06
  13  2.91221
  14  1.34221e-06
  15  5.03753
  16  2.54268e-05
  17  8.92742e-06
  18  7.40452e-05
  19  1.86536
  20  2.28539e-06
  21  3.53412e-05
  22  0.000914627
  23  1.315
  24  33.427
  25  2.52638
  26  7.24745
  27  0.115677
  28  2.7733
  29  0.210268
  30  0.233146
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.254e+00  5.038e+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:  7.662e-01  2.331e-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.192e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.56e-06

TS (Fixed Index): 3.83
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945481/likelihoodResults_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5794.24639085
delta logL = 0.327215400321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5794.22753824
delta logL = 0.346068008756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1089       1.0000          .0000       10.000    
     3 'Normalizat'    1.2091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75099       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=   5794.228     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9285        5.3147       -.99395E-06    .16785E-02
   2  Index         2.1098        .40530        .50320E-05    .33836E-03
   3  Normalizat    1.2091        .17378       -.22426E-06   -.92486E-04
   4  Prefactor     .75113        .20216        .36611E-06   -.52700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.92847
  Index      = 2.10983
  Normalizat = 1.20911
  Prefactor  = 0.751134
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.228     FROM HESSE     STATUS=OK            29 CALLS      259 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9285        6.1365        .13414E-03   -1.5110    
   2  Index         2.1098        .49506        .76942E-02   -.61632    
   3  Normalizat    1.2091        .19989        .21716E-03   -.86322    
   4  Prefactor     .75113        .23169        .31183E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84457e-09
Minuit parameter uncertainties:
  1  6.13698
  2  0.496285
  3  0.20002
  4  0.231991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945481': 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) = 5794.22753481
delta logL = 0.346071437336

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  8.928e+00  6.137e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.110e+00  4.963e-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:  7.511e-01  2.320e-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.209e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.11 +/- 0.50
Photon Flux (Free Index): 3.84e-08 +/- 3.13e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.90e-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/945481/cmap_HighResolution_273801601_274060801_4FGL_J1136.2+3407_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='2.06e-05', photon_flux_error='3.48e-08', dlogl='3.46e-01', energy_flux='1.38e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-04 05:08:14.027029', photon_index_error2='0.50', photon_index2='2.11', ts='3.83', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.90e-05', EG='1.19', time_epoch_completed='1630757294.03', return_code='0', job_id='945481', GAL2='0.75', EG2='1.21', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='3.13e-08', ts2='4.52', photon_index='2.55' WHERE bin_id='133' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 945481: <4FGL_J1136.2+3407_daily_bin133> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin133> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:24 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:52:25 2021
Terminated at Sat Sep  4 05:08:14 2021
Results reported at Sat Sep  4 05:08:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin133 174.075 34.129 273801601 274060801 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 :                                   834.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

