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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin749
RA = 174.075, Dec = 34.129
tmin = 433468801, tmax = 433728001
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='948225', job_status='RUN', time_executed='2021-09-04 05:04:33.505779', time_epoch_executed='1630757073.51' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948225/ft1_4FGL_J1136.2+3407_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948225/ft2_4FGL_J1136.2+3407_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948225/ft1_4FGL_J1136.2+3407_daily_bin749.fits outfile=/scratch/kocevski/948225/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin749.fits ra=174.075 dec=34.129 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.22
user 5.73
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948225/ft2_4FGL_J1136.2+3407_daily_bin749.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/948225/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/948225/ft1_filtered_4FGL_J1136.2+3407_daily_bin749.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.54
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948225/ft1_filtered_4FGL_J1136.2+3407_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/948225/ft2_4FGL_J1136.2+3407_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/948225/ltcube_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.fits outfile=/scratch/kocevski/948225/expmap_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.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/948225/ltcube_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.fits
.....................!
real 190.47
user 185.21
sys 4.48

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/948225/ft1_filtered_4FGL_J1136.2+3407_daily_bin749.fits scfile=/scratch/kocevski/948225/ft2_4FGL_J1136.2+3407_daily_bin749.fits outfile=/scratch/kocevski/948225/cmap_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948225/ft1_filtered_4FGL_J1136.2+3407_daily_bin749.fits scfile=/scratch/kocevski/948225/ft2_4FGL_J1136.2+3407_daily_bin749.fits outfile=/scratch/kocevski/948225/cmap_HighResolution_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11283E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.339       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4680       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75469       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3703       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=   4232.407     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3925 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.981        .28738E-07** at limit **
   2  Prefactor     .10002E-03    607.49       -.69021E-05** at limit **
   3  Prefactor     .10000E-03    2.9095        .99870E-08** at limit **
   4  norm          2.6842        .53191       -.12719E-07    .46557E-03
   5  Prefactor     1.3273        2.1563        .15693E-06    .23236E-04
   6  Prefactor     4.5588        18.790        .80735E-06    .37214E-04
   7  Prefactor     .10000E-03    9.6177       -.19979E-07** at limit **
   8  norm          .10000E-03    9.8900       -.69257E-07** at limit **
   9  norm          9.7144        11.170        .65111E-07    .31772E-05
  10  Prefactor     .10000E-03    4.4647       -.33881E-05** at limit **
  11  Prefactor     59.075        72.815        .16424E-05    .12498E-03
  12  Prefactor     .10000E-03    10.626       -.10313E-06** at limit **
  13  norm          4.1484        4.4708        .42442E-07    .44596E-03
  14  Prefactor     27.090        17.421        .88161E-07    .14629E-04
  15  Prefactor     .10000E-03    3.8176       -.27312E-06** at limit **
  16  Prefactor     59.347        72.703        .48196E-06    .38512E-04
  17  norm          5.0134        2.1156        .27627E-07    .20618E-03
  18  Prefactor     5.4818        14.019        .23700E-06   -.12434E-04
  19  Prefactor     .10000E-03    1.2895       -.37136E-07** at limit **
  20  norm          .10000E-03    5.6816        .55469E-07** at limit **
  21  Prefactor     56.209        36.327        .19562E-06    .31883E-04
  22  Prefactor     .10000E-03    164.12        .41365E-06** at limit **
  23  norm          .10000E-03    .83046        .43522E-08** at limit **
  24  Prefactor     .10000E-03    18.186        .23076E-07** at limit **
  25  norm          2.4703        3.8314        .38056E-06    .27667E-04
  26  Prefactor     .10000E-03    5.9677        .31413E-07** at limit **
  27  Prefactor     .10000E-03    2.9478       -.52754E-07** at limit **
  28  Prefactor     .10000E-03    1.7615        .15521E-07** at limit **
  29  Normalizat    .75461        .22911       -.74510E-06    .11883E-03
  30  Prefactor     1.3704        .26258       -.32387E-07    .94600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 2.68424
  Prefactor  = 1.32727
  Prefactor  = 4.55875
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.71439
  Prefactor  = 0.0001
  Prefactor  = 59.0753
  Prefactor  = 0.0001
  norm       = 4.1484
  Prefactor  = 27.0901
  Prefactor  = 0.0001
  Prefactor  = 59.3467
  norm       = 5.01344
  Prefactor  = 5.48175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.2093
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.754607
  Prefactor  = 1.3704
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.407     FROM HESSE     STATUS=OK           578 CALLS     4503 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    617.05        .20681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9103        .10838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6842        .53263        .19806E-04   -1.5380    
   5  Prefactor     1.3273        2.1172        .11759E-03   -1.5478    
   6  Prefactor     4.5588        18.771        .18853E-03   -1.5281    
   7  Prefactor     .10000E-03    9.6248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.9038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7144        11.173        .12857E-03   -1.5085    
  10  Prefactor     .10000E-03    4.4891        .26326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.075        73.915        .52174E-04   -1.4169    
  12  Prefactor     .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1484        4.4404        .11553E-03   -1.5301    
  14  Prefactor     27.090        17.423        .76972E-04   -1.4667    
  15  Prefactor     .10000E-03    3.8351        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.347        72.962        .52083E-04   -1.4166    
  17  norm          5.0134        2.1235        .52937E-04   -1.5260    
  18  Prefactor     5.4818        13.999        .17166E-03   -1.5240    
  19  Prefactor     .10000E-03    1.3224        .14411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.6844        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.209        36.440        .53506E-04   -1.4207    
  22  Prefactor     .10000E-03    164.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .86165        .11558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4703        3.4873        .13947E-03   -1.5394    
  26  Prefactor     .10000E-03    5.9896        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.6702        .19775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.7857        .84238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .75461        .27106        .29568E-03   -1.0178    
  30  Prefactor     1.3704        .31281        .27499E-03   -.81237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10838e-10
Minuit parameter uncertainties:
  1  2.00337e-06
  2  0.00624143
  3  1.68978e-07
  4  0.532631
  5  2.11731
  6  18.511
  7  1.97091e-06
  8  2.9911e-06
  9  11.1754
  10  9.51601e-06
  11  74.0298
  12  4.5148e-06
  13  4.44075
  14  17.4264
  15  4.29414e-06
  16  73.0724
  17  2.12351
  18  14.0072
  19  1.02228e-06
  20  5.22192e-06
  21  36.4542
  22  0.000143755
  23  3.06871e-07
  24  1.31964e-06
  25  3.4876
  26  3.5778e-06
  27  6.61338e-05
  28  1.06981e-06
  29  0.271549
  30  0.313242
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.294e-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.370e+00  3.132e-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:  7.546e-01  2.715e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948225/likelihoodResults_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.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) = 4232.40852988
delta logL = -0.00123588087536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4232.40729396
delta logL = 3.27772795572e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5418       1.0000          .0000       10.000    
     3 'Normalizat'    .75463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3704       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=   4232.407     FROM MIGRAD    STATUS=FAILED       103 CALLS      259 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.206        .12471E-01** at limit **
   2  Index         2.1690        8.4532        .50000       -.22714E-05
   3  Normalizat    .75461        .14692E-01    .29568E-03    .55405E-04
   4  Prefactor     1.3704        .17928E-01    .27499E-03    .66347E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4232.407     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      430 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.206        .34784E-03** at limit **
   2  Index         2.1690        8.4532        .37772E-05   -.22714E-05
   3  Normalizat    .75461        .14692E-01    .36816E-07    .55405E-04
   4  Prefactor     1.3704        .17928E-01    .13582E-07    .66347E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4232.407     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      499 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.149        .26090E-03** at limit **
   2  Index         2.1686        5.6737        .50000       -.23101E-05
   3  Normalizat    .75461        .25470        .23655E-05    .54789E-04
   4  Prefactor     1.3704        .31086        .10999E-04    .66148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16855
  Normalizat = 0.754606
  Prefactor  = 1.3704
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.407     FROM HESSE     STATUS=OK            27 CALLS      526 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3472        .52179E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1686        8.5416        .50000       -.60200    
   3  Normalizat    .75461        .24342        .47309E-06   -1.0178    
   4  Prefactor     1.3704        .29957        .21999E-05   -.81237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79359e-09
Minuit parameter uncertainties:
  1  1.71717e-05
  2  122.795
  3  0.243775
  4  0.299948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948225': 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) = 4232.40729274
delta logL = 1.25953101815e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.717e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.169e+00  1.228e+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.370e+00  2.999e-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:  7.546e-01  2.438e-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/948225/cmap_HighResolution_433468801_433728001_4FGL_J1136.2+3407_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 05:17:12.727879', job_id='948225', GAL2='1.37', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630757832.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='749' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 948225: <4FGL_J1136.2+3407_daily_bin749> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:28 2021
Job was executed on host(s) <bullet0241>, 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:13 2021
Results reported at Sat Sep  4 05:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin749 174.075 34.129 433468801 433728001 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 :                                   754.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            945 sec.

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

