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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin216
RA = 174.075, Dec = 34.129
tmin = 295315201, tmax = 295574401
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='945615', job_status='RUN', time_executed='2021-09-04 04:55:29.210563', time_epoch_executed='1630756529.21' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945615/ft1_4FGL_J1136.2+3407_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945615/ft2_4FGL_J1136.2+3407_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945615/ft1_4FGL_J1136.2+3407_daily_bin216.fits outfile=/scratch/kocevski/945615/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin216.fits ra=174.075 dec=34.129 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.34
user 2.15
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945615/ft1_filtered_4FGL_J1136.2+3407_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/945615/ft2_4FGL_J1136.2+3407_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/945615/ltcube_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.fits outfile=/scratch/kocevski/945615/expmap_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.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/945615/ltcube_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.fits
.....................!
real 190.01
user 185.25
sys 3.91

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/945615/ft1_filtered_4FGL_J1136.2+3407_daily_bin216.fits scfile=/scratch/kocevski/945615/ft2_4FGL_J1136.2+3407_daily_bin216.fits outfile=/scratch/kocevski/945615/cmap_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945615/ft1_filtered_4FGL_J1136.2+3407_daily_bin216.fits scfile=/scratch/kocevski/945615/ft2_4FGL_J1136.2+3407_daily_bin216.fits outfile=/scratch/kocevski/945615/cmap_HighResolution_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.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/945615/ft1_filtered_4FGL_J1136.2+3407_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/945615/ft2_4FGL_J1136.2+3407_daily_bin216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945615/Model_4FGL_J1136.2+3407_daily_bin216.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/945615/ft1_filtered_4FGL_J1136.2+3407_daily_bin216.fits.....................!
real 49.49
user 48.19
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.564       1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1164       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2586       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22531E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6336       1.0000         .10000E-03   10000.    
     8 'norm      '    .11377E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.204       1.0000         .10000E-03   10000.    
    13 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18576E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12453E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14251E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .60164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27859E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2848       1.0000         .10000E-03   10000.    
    20 'norm      '    13.066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29177E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1007       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.292       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5755       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2742       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7289       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22360E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73843       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1022       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=   5518.220     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2806 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.323        26.894       -.16439E-05    .20846E-02
   2  Prefactor     93.835        92.795        .17508E-05   -.10683E-03
   3  Prefactor     1.1835        33.472       -.10785E-04   -.30184E-03
   4  norm          1.7484        .36849       -.66201E-07   -.50850E-03
   5  Prefactor     2.2574        3.0885        .44881E-06   -.61740E-03
   6  Prefactor     .10000E-03    12.641       -.12994E-04** at limit **
   7  Prefactor     4.7060        8.0669        .42639E-05    .10282E-04
   8  norm          .10000E-03    9.4426       -.26836E-06** at limit **
   9  norm          3.3986        1.1995       -.32821E-06   -.10664E-04
  10  Prefactor     .11073        3.2014       -.13075E-05   -.42256E-03
  11  Prefactor     .10000E-03    15.036        .57586E-05** at limit **
  12  Prefactor     22.300        15.464       -.22886E-05   -.65559E-04
  13  norm          .10000E-03    4.6629        .11023E-06** at limit **
  14  Prefactor     .10000E-03    6.7315        .92614E-06** at limit **
  15  Prefactor     .10000E-03    3.1519       -.13432E-06** at limit **
  16  Prefactor     .10000E-03    12.214        .36454E-05** at limit **
  17  norm          .60257        .64988        .11366E-07   -.58335E-03
  18  Prefactor     .10000E-03    4.5372        .36385E-06** at limit **
  19  Prefactor     5.2880        2.1712       -.46974E-07   -.43119E-06
  20  norm          13.053        9.2593       -.13715E-04   -.26152E-04
  21  Prefactor     12.626        20.978       -.38504E-05   -.14942E-02
  22  Prefactor     .10000E-03    34.509        .82585E-06** at limit **
  23  norm          2.1021        1.1141       -.82598E-07   -.48238E-03
  24  Prefactor     22.967        18.210       -.27460E-05    .25545E-02
  25  norm          4.5872        3.1783       -.99315E-07   -.15091E-03
  26  Prefactor     3.2601        5.2940       -.63923E-07    .88565E-04
  27  Prefactor     5.7237        3.1238       -.25043E-07   -.10348E-03
  28  Prefactor     .10000E-03    13.135        .13673E-04** at limit **
  29  Normalizat    .73712        .20671        .30049E-05   -.24945E-03
  30  Prefactor     1.1025        .23523       -.64621E-06   -.32190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3234
  Prefactor  = 93.8352
  Prefactor  = 1.18351
  norm       = 1.74842
  Prefactor  = 2.2574
  Prefactor  = 0.0001
  Prefactor  = 4.70597
  norm       = 0.0001
  norm       = 3.39861
  Prefactor  = 0.110734
  Prefactor  = 0.0001
  Prefactor  = 22.3
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.602569
  Prefactor  = 0.0001
  Prefactor  = 5.28797
  norm       = 13.0533
  Prefactor  = 12.6257
  Prefactor  = 0.000100001
  norm       = 2.10212
  Prefactor  = 22.967
  norm       = 4.5872
  Prefactor  = 3.26007
  Prefactor  = 5.72365
  Prefactor  = 0.0001
  Normalizat = 0.737121
  Prefactor  = 1.10248
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.220     FROM HESSE     STATUS=OK           674 CALLS     3480 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.323        30.788        .16800E-02   -1.4502    
   2  Prefactor     93.835        92.699        .10488E-02   -1.3768    
   3  Prefactor     1.1835        38.005        .11137E-01   -1.5490    
   4  norm          1.7484        .36765        .44776E-02   -1.5444    
   5  Prefactor     2.2574        3.3220        .68338E-02   -1.5407    
   6  Prefactor     .10000E-03    12.424        .10059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7060        8.0681        .46743E-02   -1.5274    
   8  norm          .10000E-03    9.3395        .10338E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3986        7.2044        .54923E-02   -1.5339    
  10  Prefactor     .11073        1.3008        .27683E-01   -1.5641    
  11  Prefactor     .10000E-03    15.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.300        15.471        .21251E-02   -1.4763    
  13  norm          .10000E-03    1.2377        .26043E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.184        .10255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .60257        .68381        .11679E-01   -1.5553    
  18  Prefactor     .10000E-03    4.5304        .10710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2880        2.1713        .43710E-02   -1.5248    
  20  norm          13.053        9.2673        .27703E-02   -1.4985    
  21  Prefactor     12.626        26.197        .28464E-02   -1.4997    
  22  Prefactor     .10000E-03    34.453        .91680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1021        1.1221        .71183E-02   -1.5418    
  24  Prefactor     22.967        27.778        .20750E-02   -1.4749    
  25  norm          4.5872        3.1740        .47046E-02   -1.5280    
  26  Prefactor     3.2601        5.3163        .55947E-02   -1.5347    
  27  Prefactor     5.7237        3.1196        .41953E-02   -1.5229    
  28  Prefactor     .10000E-03    1.1506        .45644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .73712        .18033        .42801E-01   -1.0245    
  30  Prefactor     1.1025        .20168        .59451E-01   -.89387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67434e-06
Minuit parameter uncertainties:
  1  30.8015
  2  92.8427
  3  13.422
  4  0.367649
  5  3.32223
  6  6.43594e-05
  7  8.06993
  8  3.61176e-05
  9  7.20619
  10  0.758747
  11  6.22759e-05
  12  15.4739
  13  1.18967e-06
  14  3.02714e-05
  15  4.27244e-06
  16  0.000145698
  17  0.68382
  18  3.22017e-05
  19  2.17137
  20  9.26834
  21  26.2208
  22  0.000286412
  23  1.12206
  24  27.794
  25  3.1741
  26  5.31704
  27  3.11964
  28  9.15918e-06
  29  0.180471
  30  0.201819
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.272e-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.102e+00  2.018e-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.371e-01  1.805e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945615/likelihoodResults_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.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) = 5518.22110062
delta logL = -0.00151199481115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5518.21958873
delta logL = -1.04644641397e-07

Fit tolerance = 1e-08

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

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

 FCN=   5518.220     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    569.72        .25388E-03** at limit **
   2  Index         2.5388        6.2598        .50000        .31861E-05
   3  Normalizat    .73712        .82669E-01    .26084E-03   -.12335E-04
   4  Prefactor     1.1025        .10036        .26290E-03   -.79135E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.53879
  Normalizat = 0.737121
  Prefactor  = 1.10248
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.220     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    3.6777        .50776E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5388        6.9953        .50000       -.51466    
   3  Normalizat    .73712        .19212        .10434E-04   -1.0245    
   4  Prefactor     1.1025        .23363        .10516E-04   -.89387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20566e-08
Minuit parameter uncertainties:
  1  0.000626427
  2  133.139
  3  0.192294
  4  0.23385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945615': 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) = 5518.21958862
delta logL = 8.55834514368e-09

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.264e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.539e+00  1.331e+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.102e+00  2.339e-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.371e-01  1.923e-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/945615/cmap_HighResolution_295315201_295574401_4FGL_J1136.2+3407_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-04 05:08:10.502849', job_id='945615', GAL2='1.10', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630757290.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='216' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 945615: <4FGL_J1136.2+3407_daily_bin216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin216 174.075 34.129 295315201 295574401 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

