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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin654
RA = 174.075, Dec = 34.129
tmin = 408844801, tmax = 409104001
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='948086', job_status='RUN', time_executed='2021-09-04 05:03:42.860410', time_epoch_executed='1630757022.86' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948086/ft1_4FGL_J1136.2+3407_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948086/ft1_4FGL_J1136.2+3407_daily_bin654.fits outfile=/scratch/kocevski/948086/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin654.fits ra=174.075 dec=34.129 rad=12.0 tmin=408844801.0 tmax=409104001.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.43
user 4.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948086/ft1_filtered_4FGL_J1136.2+3407_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/948086/ltcube_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.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/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits
.....................!
real 11.78
user 11.12
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948086/ft1_filtered_4FGL_J1136.2+3407_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/948086/ltcube_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.fits outfile=/scratch/kocevski/948086/expmap_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.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/948086/ltcube_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.fits
.....................!
real 190.21
user 185.64
sys 4.16

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/948086/ft1_filtered_4FGL_J1136.2+3407_daily_bin654.fits scfile=/scratch/kocevski/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits outfile=/scratch/kocevski/948086/cmap_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948086/ft1_filtered_4FGL_J1136.2+3407_daily_bin654.fits scfile=/scratch/kocevski/948086/ft2_4FGL_J1136.2+3407_daily_bin654.fits outfile=/scratch/kocevski/948086/cmap_HighResolution_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0418       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.477       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10645E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.761       1.0000         .10000E-03   10000.    
    13 'norm      '    .10972E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23482E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.367       1.0000         .10000E-03   10000.    
    17 'norm      '    10.202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6520       1.0000         .10000E-03   10000.    
    20 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .84305E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    11.004       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.937       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6361       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .61398       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5591       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3070.640     FROM MIGRAD    STATUS=FAILED      1442 CALLS     4578 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.702        .18142E-02** at limit **
   2  Prefactor     .10000E-03    128.60        .18142E-02** at limit **
   3  Prefactor     7.0165        20.493        .15117E-03   -.21771E-04
   4  norm          2.8154        .85258        .25746E-04   -.66235E-05
   5  Prefactor     .94898        9.5856        .24441E-02    .25492E-02
   6  Prefactor     19.464        37.295        .90755E-04   -.11399E-04
   7  Prefactor     .10000E-03    24.373        .18142E-02** at limit **
   8  norm          .10000E-03    17.785        .18142E-02** at limit **
   9  norm          .10000E-03    25.115        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.2968        .81849E-03** at limit **
  11  Prefactor     .10000E-03    32.703        .18142E-02** at limit **
  12  Prefactor     17.811        33.042        .95036E-04   -.98092E-05
  13  norm          .10000E-03    3.5012        .10035E-02** at limit **
  14  Prefactor     .10000E-03    48.672        .18142E-02** at limit **
  15  Prefactor     .10000E-03    11.561        .18142E-02** at limit **
  16  Prefactor     75.467        141.08        .46251E-04    .12929E-04
  17  norm          10.210        5.2028        .76490E-04    .16401E-03
  18  Prefactor     .34875        90.759        .89901E-01    .16786E-03
  19  Prefactor     6.6590        4.3353        .79014E-04    .30366E-03
  20  norm          .10000E-03    22.524        .18142E-02** at limit **
  21  Prefactor     .10000E-03    31.376        .18142E-02** at limit **
  22  Prefactor     .10000E-03    179.48        .18142E-02** at limit **
  23  norm          1.6679        1.6924        .68917E-04    .33652E-03
  24  Prefactor     .16924E-03    76.681        .14141    ** at limit **
  25  norm          11.006        6.4306        .10143E-03    .10850E-03
  26  Prefactor     18.944        21.603        .92038E-04    .72383E-04
  27  Prefactor     .10000E-03    2.5691        .86290E-03** at limit **
  28  Prefactor     6.6353        4.8708        .99097E-04    .80478E-04
  29  Normalizat    .61394        .38398        .37184E-03    .10352E-03
  30  Prefactor     1.5592        .39779        .28229E-03    .98256E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3070.640     FROM SIMPLEX   STATUS=UNCHANGED   1747 CALLS     6325 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.702        .43942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    128.60        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0165        20.493        .23773E-05   -1.5178    
   4  norm          2.8154        .85258        .24076E-05   -1.5372    
   5  Prefactor     .94898        9.5856        .24305E-05   -1.5513    
   6  Prefactor     19.464        37.295        .23191E-05   -1.4825    
   7  Prefactor     .10000E-03    24.373        .32476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.785        .41216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.115        .35736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2968        .14982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.703        .29751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.811        33.042        .23286E-05   -1.4864    
  13  norm          .10000E-03    3.5012        .83641E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.672        .63895E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.561        .12389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     75.467        141.08        .21864E-05   -1.3968    
  17  norm          10.210        5.2028        .23600E-05   -1.5069    
  18  Prefactor     .34875        90.759        .25000E-05   -1.5590    
  19  Prefactor     6.6590        4.3353        .23793E-05   -1.5192    
  20  norm          .10000E-03    22.524        .40824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.376        .43191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    179.48        .13492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6679        1.6924        .24202E-05   -1.5450    
  24  Prefactor     .16924E-03    76.681        .12562E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.006        6.4306        .23582E-05   -1.5044    
  26  Prefactor     18.944        21.603        .23257E-05   -1.4837    
  27  Prefactor     .10000E-03    2.5691        .14224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.6353        4.8708        .23790E-05   -1.5193    
  29  Normalizat    .61394        .38398        .16807E-05   -1.0740    
  30  Prefactor     1.5592        .39779        .11883E-05   -.75894    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3070.640     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     6908 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.702        .36285E-03** at limit **
   2  Prefactor     .10000E-03    128.60        .36285E-03** at limit **
   3  Prefactor     7.0165        20.142        .60470E-05    .14702E-03
   4  norm          2.8154        .85255        .10298E-05    .19914E-03
   5  Prefactor     .94902        9.0875        .48881E-03    .24652E-03
   6  Prefactor     19.464        37.289        .36302E-05    .91446E-04
   7  Prefactor     .10000E-03    24.373        .36285E-03** at limit **
   8  norm          .10000E-03    17.786        .36285E-03** at limit **
   9  norm          .10000E-03    25.126        .36285E-03** at limit **
  10  Prefactor     .10000E-03    2.2968        .16370E-03** at limit **
  11  Prefactor     .10000E-03    32.703        .36285E-03** at limit **
  12  Prefactor     17.811        33.036        .38014E-05    .22639E-03
  13  norm          .10000E-03    3.5019        .20069E-03** at limit **
  14  Prefactor     .10008E-03    48.690        .36285E-03** at limit **
  15  Prefactor     .10000E-03    11.565        .36285E-03** at limit **
  16  Prefactor     75.466        141.11        .92502E-05   -.52725E-04
  17  norm          10.210        5.2031        .30596E-05   -.59080E-03
  18  Prefactor     .34807        72.543        .10105        .12195E-03
  19  Prefactor     6.6590        4.3047        .31606E-05    .22841E-03
  20  norm          .10000E-03    22.525        .36285E-03** at limit **
  21  Prefactor     .10000E-03    31.378        .36285E-03** at limit **
  22  Prefactor     .10000E-03    179.48        .36285E-03** at limit **
  23  norm          1.6679        1.6909        .27567E-05   -.23590E-03
  24  Prefactor     .15117E-03    76.398        .14176    ** at limit **
  25  norm          11.006        6.4301        .40572E-05   -.29702E-04
  26  Prefactor     18.944        21.596        .36815E-05    .73186E-04
  27  Prefactor     .10000E-03    2.5692        .17258E-03** at limit **
  28  Prefactor     6.6353        4.8703        .39639E-05    .26100E-04
  29  Normalizat    .61393        .38095        .14873E-04    .13980E-03
  30  Prefactor     1.5593        .39750        .56457E-04    .24378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.01652
  norm       = 2.81544
  Prefactor  = 0.949021
  Prefactor  = 19.4639
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.8111
  norm       = 0.0001
  Prefactor  = 0.000100076
  Prefactor  = 0.000100001
  Prefactor  = 75.4659
  norm       = 10.2101
  Prefactor  = 0.34807
  Prefactor  = 6.65901
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.66789
  Prefactor  = 0.00015117
  norm       = 11.0059
  Prefactor  = 18.9439
  Prefactor  = 0.0001
  Prefactor  = 6.6353
  Normalizat = 0.613933
  Prefactor  = 1.55925
 **********
 **   18 **HESSE 
 **********

 FCN=   3070.640     FROM HESSE     STATUS=OK           576 CALLS     7484 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.702        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    128.60        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0165        20.065        .12094E-05   -1.5178    
   4  norm          2.8154        .85221        .36651E-06   -1.5372    
   5  Prefactor     .94902        8.9762        .19553E-04   -1.5513    
   6  Prefactor     19.464        37.277        .72604E-06   -1.4825    
   7  Prefactor     .10000E-03    24.373        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.786        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.127        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2968        .32740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.703        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.811        32.934        .76029E-06   -1.4864    
  13  norm          .10000E-03    3.5020        .40139E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    48.691        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.566        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     75.466        141.39        .18500E-05   -1.3968    
  17  norm          10.210        5.2065        .61192E-06   -1.5069    
  18  Prefactor     .34807        80.166        .95855E-01   -1.5590    
  19  Prefactor     6.6590        4.3195        .63211E-06   -1.5192    
  20  norm          .10000E-03    22.525        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    179.48        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6679        1.6915        .55133E-06   -1.5450    
  24  Prefactor     .15117E-03    76.455        .14168       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.006        6.4300        .81144E-06   -1.5044    
  26  Prefactor     18.944        21.633        .73631E-06   -1.4837    
  27  Prefactor     .10000E-03    2.5692        .34516E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.6353        4.8713        .79277E-06   -1.5193    
  29  Normalizat    .61393        .38053        .29747E-05   -1.0740    
  30  Prefactor     1.5593        .39739        .11291E-04   -.75894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34176e-09
Minuit parameter uncertainties:
  1  9.87401e-05
  2  0.000705672
  3  20.0845
  4  0.85221
  5  5.83817
  6  37.3212
  7  0.000132281
  8  6.85537e-05
  9  0.000378689
  10  1.6847e-06
  11  0.000481406
  12  32.9671
  13  7.84708e-05
  14  0.00383896
  15  0.000231882
  16  142.029
  17  5.20675
  18  10.5776
  19  4.31968
  20  0.000125791
  21  0.000273333
  22  0.000706978
  23  1.69158
  24  0.125255
  25  6.43036
  26  21.6423
  27  1.20369e-05
  28  4.87159
  29  0.382169
  30  0.39819
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.319e-04  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:  1.559e+00  3.982e-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:  6.139e-01  3.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948086/likelihoodResults_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3070.64063038
delta logL = -0.00041160129831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3070.64021878
delta logL = -3.38832251146e-09

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3070.617     FROM MIGRAD    STATUS=FAILED       160 CALLS      315 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46039E-03    .44679        .88001E-03** at limit **
   2  Index         8.1681        5.8289        .50000        .27229E-04
   3  Normalizat    .59577        .36492        .37185E-03   -.10395E-05
   4  Prefactor     1.5731        .20384        .28229E-03    .10447E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3070.617     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      406 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46039E-03    .44679        .16498E-04** at limit **
   2  Index         8.1681        5.8289        .95260E-02    .27229E-04
   3  Normalizat    .59577        .36492        .25227E-03   -.10395E-05
   4  Prefactor     1.5731        .20384        .12765E-03    .10447E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3070.617     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      454 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46038E-03    .22350E-01     .0000    ** at limit **
   2  Index         8.1681        8.8911         .0000        .96633E-04
   3  Normalizat    .59577        .34455         .0000       -.50445E-05
   4  Prefactor     1.5731        .39379         .0000        .91421E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000460383
  Index      = 8.16812
  Normalizat = 0.595767
  Prefactor  = 1.57313
 **********
 **   18 **HESSE 
 **********

 FCN=   3070.617     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      481 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46038E-03    .71728        .20628E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1681        5.6143        .43226E-02    .68623    
   3  Normalizat    .59577        .32191        .29748E-05   -1.0816    
   4  Prefactor     1.5731        .36805        .11291E-04   -.75512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91572e-11
Minuit parameter uncertainties:
  1  0.0321561
  2  40.6524
  3  0.32293
  4  0.36868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948086': 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): 102
logL (Free Index) = 3070.6168494
delta logL = 0.0233693726232

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.604e-04  3.216e-02  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  8.168e+00  4.065e+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:  1.573e+00  3.687e-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:  5.958e-01  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.075 34.129

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/948086/cmap_HighResolution_408844801_409104001_4FGL_J1136.2+3407_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2021-09-04 05:15:40.212614', job_id='948086', GAL2='1.57', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1630757740.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.56', dlogl='2.34e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='654' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 948086: <4FGL_J1136.2+3407_daily_bin654> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin654> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:17 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:18 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:18 2021
Terminated at Sat Sep  4 05:15:40 2021
Results reported at Sat Sep  4 05:15:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin654 174.075 34.129 408844801 409104001 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 :                                   713.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

