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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin756
RA = 174.075, Dec = 34.129
tmin = 435283201, tmax = 435542401
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='948235', job_status='RUN', time_executed='2021-09-04 05:03:41.410156', time_epoch_executed='1630757021.41' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948235/ft1_4FGL_J1136.2+3407_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948235/ft1_4FGL_J1136.2+3407_daily_bin756.fits outfile=/scratch/kocevski/948235/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin756.fits ra=174.075 dec=34.129 rad=12.0 tmin=435283201.0 tmax=435542401.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 5.52
user 4.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.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/948235/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/948235/ft1_filtered_4FGL_J1136.2+3407_daily_bin756.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.60
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948235/ft1_filtered_4FGL_J1136.2+3407_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/948235/ltcube_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.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/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits
.....................!
real 12.31
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948235/ft1_filtered_4FGL_J1136.2+3407_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/948235/ltcube_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.fits outfile=/scratch/kocevski/948235/expmap_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.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/948235/ltcube_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.fits
.....................!
real 189.31
user 185.10
sys 3.80

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/948235/ft1_filtered_4FGL_J1136.2+3407_daily_bin756.fits scfile=/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits outfile=/scratch/kocevski/948235/cmap_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948235/ft1_filtered_4FGL_J1136.2+3407_daily_bin756.fits scfile=/scratch/kocevski/948235/ft2_4FGL_J1136.2+3407_daily_bin756.fits outfile=/scratch/kocevski/948235/cmap_HighResolution_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.518       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .79545       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10728E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17114E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2483       1.0000         .10000E-03   10000.    
    17 'norm      '    15.859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5962       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    96.299       1.0000         .10000E-03   10000.    
    23 'norm      '    .72275       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.392       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.6243       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83860       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89482       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=   4944.161     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4009 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.319        24.773       -.29172E-05    .38814E-04
   2  Prefactor     29.180        87.800       -.28245E-04    .72309E-05
   3  Prefactor     22.512        16.587       -.36216E-05    .33246E-03
   4  norm          2.6703        .49897       -.75548E-07    .14817E-02
   5  Prefactor     .10000E-03    3.4524       -.27136E-05** at limit **
   6  Prefactor     .10000E-03    9.2843       -.68456E-05** at limit **
   7  Prefactor     .10000E-03    6.1490       -.70446E-06** at limit **
   8  norm          .10000E-03    3.9016        .24922E-05** at limit **
   9  norm          .10000E-03    3.7666        .32473E-05** at limit **
  10  Prefactor     .79816        1.8954        .11871E-05    .10453E-02
  11  Prefactor     22.525        28.089       -.17514E-04   -.62935E-05
  12  Prefactor     10.707        20.576       -.43174E-04   -.51303E-04
  13  norm          2.5490        2.6414        .49373E-06   -.10380E-03
  14  Prefactor     .10000E-03    7.9265        .52673E-05** at limit **
  15  Prefactor     .10007E-03    4.9494        .73428E-06** at limit **
  16  Prefactor     6.2351        233.41       -.50917E-04   -.14262E-04
  17  norm          15.858        3.1117        .32125E-06    .26261E-03
  18  Prefactor     12.253        29.143       -.74596E-05    .65583E-04
  19  Prefactor     1.5953        2.6872       -.36202E-06   -.37139E-03
  20  norm          .10000E-03    4.1864       -.37772E-05** at limit **
  21  Prefactor     .10000E-03    8.1414        .30439E-05** at limit **
  22  Prefactor     96.300        75.484        .11360E-05    .27311E-04
  23  norm          .72223        1.4853       -.69747E-06   -.86407E-03
  24  Prefactor     .10000E-03    20.377        .89302E-05** at limit **
  25  norm          16.392        5.2187       -.26869E-06    .89883E-04
  26  Prefactor     8.6205        12.234       -.42950E-05   -.33952E-04
  27  Prefactor     .10000E-03    2.7596        .17252E-07** at limit **
  28  Prefactor     .10000E-03    3.4918        .43496E-06** at limit **
  29  Normalizat    .83902        .21483        .11350E-04   -.13887E-03
  30  Prefactor     .89433        .22387        .38637E-05    .20202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3186
  Prefactor  = 29.1796
  Prefactor  = 22.5121
  norm       = 2.67031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.798163
  Prefactor  = 22.5253
  Prefactor  = 10.7071
  norm       = 2.54897
  Prefactor  = 0.000100003
  Prefactor  = 0.000100068
  Prefactor  = 6.23514
  norm       = 15.8577
  Prefactor  = 12.2532
  Prefactor  = 1.59527
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.3001
  norm       = 0.722226
  Prefactor  = 0.0001
  norm       = 16.3923
  Prefactor  = 8.62049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.83902
  Prefactor  = 0.894329
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.161     FROM HESSE     STATUS=OK           588 CALLS     4597 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.319        24.769        .93576E-04   -1.4852    
   2  Prefactor     29.180        87.761        .74149E-04   -1.4627    
   3  Prefactor     22.512        16.523        .84410E-04   -1.4759    
   4  norm          2.6703        .49968        .20657E-04   -1.5381    
   5  Prefactor     .10000E-03    3.5345        .25294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1508        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9039        .13564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7716        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .79816        1.5405        .13863E-02   -1.5529    
  11  Prefactor     22.525        27.917        .42186E-03   -1.4758    
  12  Prefactor     10.707        20.619        .12225E-03   -1.5053    
  13  norm          2.5490        2.6156        .10925E-03   -1.5389    
  14  Prefactor     .10000E-03    7.9872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    14.522        .29677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2351        231.04        .16059E-03   -1.5209    
  17  norm          15.858        3.1097        .43807E-04   -1.4911    
  18  Prefactor     12.253        28.703        .11442E-03   -1.5008    
  19  Prefactor     1.5953        2.6247        .12902E-03   -1.5455    
  20  norm          .10000E-03    4.1871        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     96.300        75.640        .40960E-04   -1.3742    
  23  norm          .72223        1.4282        .11189E-03   -1.5538    
  24  Prefactor     .10000E-03    20.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.392        5.1615        .86084E-04   -1.4898    
  26  Prefactor     8.6205        12.267        .13650E-03   -1.5121    
  27  Prefactor     .10000E-03    2.8490        .22641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.6315        .25588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83902        .25496        .27987E-03   -.98637    
  30  Prefactor     .89433        .26730        .30858E-03   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25661e-09
Minuit parameter uncertainties:
  1  24.7833
  2  88.1525
  3  16.5266
  4  0.499685
  5  7.1365e-05
  6  2.12143e-05
  7  3.18371e-06
  8  1.83837e-06
  9  1.3342e-05
  10  1.54054
  11  27.9333
  12  20.6323
  13  2.61572
  14  0.000329968
  15  0.00199304
  16  76.2286
  17  3.10978
  18  28.7358
  19  2.62487
  20  3.09164e-06
  21  1.85207e-05
  22  75.7155
  23  1.4283
  24  5.14336e-05
  25  5.16164
  26  12.2702
  27  8.61767e-06
  28  6.54919e-05
  29  0.255328
  30  0.267696
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.001e-04  1.993e-03  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:  8.943e-01  2.677e-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:  8.390e-01  2.553e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948235/likelihoodResults_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.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) = 4944.16171068
delta logL = -0.000326424870764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4944.16138456
delta logL = -3.01154614135e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5644       1.0000          .0000       10.000    
     3 'Normalizat'    .83891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89451       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=   4944.161     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      237 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .75878        .47584E-01** at limit **
   2  Index         2.5744        5.5598        .50000       -.56568E-05
   3  Normalizat    .83903        .20311E-02    .63270E-01    .94945E-04
   4  Prefactor     .89432        .23190E-02    .69751E-01    .79437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.57439
  Normalizat = 0.839027
  Prefactor  = 0.894322
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.161     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      272 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.39        .29568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5744        8.1824        .50000       -.50650    
   3  Normalizat    .83903        .15417E-01    .27986E-03   -.98637    
   4  Prefactor     .89432        .17601E-01    .30858E-03   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04745e-07
Minuit parameter uncertainties:
  1  0.000796373
  2  405.892
  3  0.0154173
  4  0.0176016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948235': 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) = 4944.16138422
delta logL = 3.33611751557e-08

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  7.964e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.574e+00  4.059e+02  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.943e-01  1.760e-02  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:  8.390e-01  1.542e-02  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/948235/cmap_HighResolution_435283201_435542401_4FGL_J1136.2+3407_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-04 05:17:14.627343', job_id='948235', GAL2='0.89', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630757834.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='756' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 948235: <4FGL_J1136.2+3407_daily_bin756> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin756 174.075 34.129 435283201 435542401 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 :                                   809.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

