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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin431
RA = 174.075, Dec = 34.129
tmin = 351043201, tmax = 351302401
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='946762', job_status='RUN', time_executed='2021-09-04 04:59:55.839110', time_epoch_executed='1630756795.84' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946762/ft1_4FGL_J1136.2+3407_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946762/ft2_4FGL_J1136.2+3407_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946762/ft1_4FGL_J1136.2+3407_daily_bin431.fits outfile=/scratch/kocevski/946762/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin431.fits ra=174.075 dec=34.129 rad=12.0 tmin=351043201.0 tmax=351302401.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.42
user 3.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946762/ft1_filtered_4FGL_J1136.2+3407_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/946762/ft2_4FGL_J1136.2+3407_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/946762/ltcube_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.fits outfile=/scratch/kocevski/946762/expmap_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.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/946762/ltcube_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.fits
.....................!
real 191.00
user 185.19
sys 5.40

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/946762/ft1_filtered_4FGL_J1136.2+3407_daily_bin431.fits scfile=/scratch/kocevski/946762/ft2_4FGL_J1136.2+3407_daily_bin431.fits outfile=/scratch/kocevski/946762/cmap_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.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/946762/ft1_filtered_4FGL_J1136.2+3407_daily_bin431.fits scfile=/scratch/kocevski/946762/ft2_4FGL_J1136.2+3407_daily_bin431.fits outfile=/scratch/kocevski/946762/cmap_HighResolution_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2467       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.055       1.0000         .10000E-03   10000.    
     9 'norm      '    .25802E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.290       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .80534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.999       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5070       1.0000         .10000E-03   10000.    
    20 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3867       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.542       1.0000         .10000E-03   10000.    
    23 'norm      '    .10876E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.825       1.0000         .10000E-03   10000.    
    25 'norm      '    3.8556       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4153       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7679       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .45601       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5027.013     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     3322 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.407        1.9502       -.31122E-09   -.22414E-03
   2  Prefactor     .10002E-03    43.279        .47582E-05** at limit **
   3  Prefactor     .10000E-03    3.8494       -.11105E-05** at limit **
   4  norm          1.2467        .32574        .35112E-07    .49313E-04
   5  Prefactor     6.8861        2.9735        .69330E-07    .19360E-02
   6  Prefactor     11.843        2.1808        .65936E-07   -.21598E-02
   7  Prefactor     .10000E-03    4.2862       -.14982E-05** at limit **
   8  norm          33.072        4.9460       -.64304E-07    .64543E-02
   9  norm          .10000E-03    17.522        .25311E-05** at limit **
  10  Prefactor     .10000E-03    2.5304        .10917E-05** at limit **
  11  Prefactor     88.446        28.825       -.28542E-07    .73325E-02
  12  Prefactor     12.277        4.9155        .32179E-07   -.16861E-02
  13  norm          .10000E-03    1.3390        .32140E-06** at limit **
  14  Prefactor     17.291        2.7347       -.13313E-08    .95695E-03
  15  Prefactor     .10000E-03    2.1828        .70545E-06** at limit **
  16  Prefactor     .10000E-03    32.045        .25634E-05** at limit **
  17  norm          .80514        .68057       -.11642E-06   -.16419E-03
  18  Prefactor     11.996        1.0235        .15879E-07   -.10716E-03
  19  Prefactor     3.5075        1.7676        .68922E-07    .18427E-04
  20  norm          .10000E-03    8.4166       -.36079E-06** at limit **
  21  Prefactor     1.3759        3.1216        .18299E-06   -.73795E-03
  22  Prefactor     36.598        24.820       -.29314E-08    .26548E-02
  23  norm          .10000E-03    5.1992       -.15701E-05** at limit **
  24  Prefactor     23.824        1.0258        .73856E-08   -.54601E-03
  25  norm          3.8562        1.6970       -.22502E-06    .30347E-02
  26  Prefactor     .10000E-03    1.8776        .43240E-06** at limit **
  27  Prefactor     3.4153        2.0559        .24772E-06   -.15911E-02
  28  Prefactor     7.7698        2.8065       -.44308E-06   -.14291E-02
  29  Normalizat    .45574        .18238       -.16936E-05   -.87375E-04
  30  Prefactor     1.0782        .21900       -.13155E-05   -.10450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4071
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 1.24673
  Prefactor  = 6.88607
  Prefactor  = 11.8433
  Prefactor  = 0.0001
  norm       = 33.0724
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.4463
  Prefactor  = 12.277
  norm       = 0.0001
  Prefactor  = 17.2911
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.80514
  Prefactor  = 11.9956
  Prefactor  = 3.50753
  norm       = 0.0001
  Prefactor  = 1.37585
  Prefactor  = 36.5981
  norm       = 0.0001
  Prefactor  = 23.8235
  norm       = 3.85624
  Prefactor  = 0.0001
  Prefactor  = 3.41531
  Prefactor  = 7.76984
  Normalizat = 0.455739
  Prefactor  = 1.07821
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.013     FROM HESSE     STATUS=OK           670 CALLS     3992 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.407        29.097        .17079E-02   -1.4534    
   2  Prefactor     .10002E-03    43.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2467        .33048        .45326E-02   -1.5485    
   5  Prefactor     6.8861        3.1941        .38227E-02   -1.5183    
   6  Prefactor     11.843        14.438        .29091E-02   -1.5020    
   7  Prefactor     .10000E-03    4.2863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.072        17.882        .17424E-02   -1.4557    
   9  norm          .10000E-03    6.2208        .58207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7206        .32500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.446        48.819        .10677E-02   -1.3824    
  12  Prefactor     12.277        25.273        .28566E-02   -1.5007    
  13  norm          .10000E-03    1.3064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.291        16.291        .24082E-02   -1.4876    
  15  Prefactor     .10000E-03    2.1587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .80514        .71728        .11708E-01   -1.5529    
  18  Prefactor     11.996        15.482        .28911E-02   -1.5015    
  19  Prefactor     3.5075        1.8067        .53972E-02   -1.5333    
  20  norm          .10000E-03    8.3207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3759        101.01        .92317E-02   -1.5473    
  22  Prefactor     36.598        35.991        .16574E-02   -1.4497    
  23  norm          .10000E-03    .61190        .34355E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.824        28.527        .20516E-02   -1.4731    
  25  norm          3.8562        2.9511        .51379E-02   -1.5315    
  26  Prefactor     .10000E-03    1.8755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.4153        2.4334        .54724E-02   -1.5338    
  28  Prefactor     7.7698        2.8977        .35969E-02   -1.5150    
  29  Normalizat    .45574        .18164        .66006E-01   -1.1451    
  30  Prefactor     1.0782        .19778        .38479E-01   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71866e-07
Minuit parameter uncertainties:
  1  29.1088
  2  0.00180368
  3  1.07095e-05
  4  0.330478
  5  3.19421
  6  14.4423
  7  1.4232e-05
  8  17.8854
  9  8.35058e-05
  10  6.69269e-06
  11  48.8408
  12  25.2951
  13  1.70141e-06
  14  16.2951
  15  4.6074e-06
  16  0.00042259
  17  0.717292
  18  15.4868
  19  1.80671
  20  5.97703e-06
  21  23.6185
  22  36.0123
  23  5.51886e-06
  24  28.543
  25  2.95124
  26  2.477e-06
  27  2.43349
  28  2.89771
  29  0.181873
  30  0.197912
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.607e-06  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.078e+00  1.979e-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:  4.557e-01  1.819e-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: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946762/likelihoodResults_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.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) = 5027.01486227
delta logL = -0.00216819214438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5027.01269416
delta logL = -8.68030838319e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5561       1.0000          .0000       10.000    
     3 'Normalizat'    .45571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0783       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=   5027.013     FROM MIGRAD    STATUS=FAILED        87 CALLS      235 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    225.05        .10164E-02** at limit **
   2  Index         2.6049        5.6073        .50000       -.96424E-05
   3  Normalizat    .45574        .45460E-01    .29216E-03    .25137E-04
   4  Prefactor     1.0782        .55532E-01    .23695E-03    .32386E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5027.013     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      385 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    225.05        .23163E-03** at limit **
   2  Index         2.6049        5.6073        .54100E-04   -.96424E-05
   3  Normalizat    .45574        .45460E-01    .23037E-05    .25137E-04
   4  Prefactor     1.0782        .55532E-01    .13146E-05    .32386E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5027.013     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      427 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    476.97        .20329E-03** at limit **
   2  Index         2.8197        8.4184        .50000       -.85038E-08
   3  Normalizat    .45574        .10492        .11686E-04   -.15896E-03
   4  Prefactor     1.0782        .12689        .94781E-05   -.20439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81967
  Normalizat = 0.455738
  Prefactor  = 1.07821
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.013     FROM HESSE     STATUS=OK            29 CALLS      456 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3743        .40658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8197        6.1627        .50000       -.45122    
   3  Normalizat    .45574        .17871        .23373E-05   -1.1451    
   4  Prefactor     1.0782        .21848        .18956E-05   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13775e-11
Minuit parameter uncertainties:
  1  5.24471e-06
  2  153.594
  3  0.178939
  4  0.218665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946762': 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) = 5027.01269372
delta logL = 3.53903487849e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  5.245e-06  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.820e+00  1.536e+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:  1.078e+00  2.187e-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:  4.557e-01  1.789e-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/946762/cmap_HighResolution_351043201_351302401_4FGL_J1136.2+3407_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-09-04 05:12:47.618459', job_id='946762', GAL2='1.08', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630757567.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='431' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:12:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 946762: <4FGL_J1136.2+3407_daily_bin431> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin431> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:56:30 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:56:31 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:56:31 2021
Terminated at Sat Sep  4 05:12:48 2021
Results reported at Sat Sep  4 05:12:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin431 174.075 34.129 351043201 351302401 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 :                                   770.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

