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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin662
RA = 173.788, Dec = 30.2344
tmin = 410918401, tmax = 411177601
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='929332', job_status='RUN', time_executed='2021-09-04 04:02:00.762330', time_epoch_executed='1630753320.76' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929332/ft1_4FGL_J1135.1+3014_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929332/ft1_4FGL_J1135.1+3014_daily_bin662.fits outfile=/scratch/kocevski/929332/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin662.fits ra=173.788 dec=30.2344 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.09
user 6.67
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.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/929332/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/929332/ltcube_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.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/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits
.....................!
real 12.13
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/929332/ltcube_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits outfile=/scratch/kocevski/929332/expmap_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.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/929332/ltcube_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits
.....................!
real 193.79
user 188.06
sys 5.31

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1135.1+3014 @ 173.788 30.2344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits outfile=/scratch/kocevski/929332/cmap_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.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=173.788 yref=30.2344 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits outfile=/scratch/kocevski/929332/cmap_HighResolution_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.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=173.788 yref=30.2344 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929332/Model_4FGL_J1135.1+3014_daily_bin662.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/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits.....................!
real 43.70
user 42.25
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits', '/scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits', expMap='/scratch/kocevski/929332/expmap_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits', expCube='/scratch/kocevski/929332/ltcube_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929332/Model_4FGL_J1135.1+3014_daily_bin662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1135.1+3014'

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  2.132e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929332/ft1_filtered_4FGL_J1135.1+3014_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/929332/ft2_4FGL_J1135.1+3014_daily_bin662.fits
Exposure map: /scratch/kocevski/929332/expmap_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits
Exposure cube: /scratch/kocevski/929332/ltcube_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929332/Model_4FGL_J1135.1+3014_daily_bin662.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) = 4153.83239377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    15.835       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    34.012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16869E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.54       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.519       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5284       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2449       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.0488       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1409       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3563       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.7038       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .71150       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4153.827     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4309 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.980       -.99194E-05** at limit **
   2  Prefactor     15.837        12.221        .24465E-07    .16089E-04
   3  norm          2.6121        .62237       -.11723E-07   -.84473E-04
   4  Prefactor     1.1198        2.7427       -.36245E-06   -.54149E-03
   5  Prefactor     .10000E-03    8.4727        .37556E-05** at limit **
   6  Prefactor     .10000E-03    15.341        .17508E-05** at limit **
   7  norm          34.017        19.218        .11659E-05    .33677E-06
   8  Prefactor     .10000E-03    9.0242       -.28936E-05** at limit **
   9  norm          .10000E-03    5.6842       -.14809E-06** at limit **
  10  Prefactor     .10000E-03    9.6885       -.33676E-05** at limit **
  11  Prefactor     .10000E-03    2.0902       -.85201E-07** at limit **
  12  Prefactor     .10000E-03    45.746       -.22565E-04** at limit **
  13  Prefactor     .10000E-03    20.459       -.11055E-04** at limit **
  14  norm          5.6226        4.7253        .67663E-06    .60389E-04
  15  Prefactor     .10000E-03    13.725        .74081E-05** at limit **
  16  Prefactor     .10000E-03    4.3801       -.20823E-07** at limit **
  17  Prefactor     100.53        93.084       -.69882E-05    .49809E-05
  18  norm          8.0933        2.8005        .24884E-06   -.11758E-03
  19  Prefactor     .10000E-03    32.287        .11882E-04** at limit **
  20  Prefactor     16.522        26.285        .25648E-05    .37513E-05
  21  Prefactor     3.5269        3.4886       -.11334E-06   -.53703E-03
  22  Prefactor     .10000E-03    28.689        .62456E-05** at limit **
  23  Prefactor     .10000E-03    38.437        .67082E-05** at limit **
  24  norm          .10000E-03    .62299       -.25164E-07** at limit **
  25  Prefactor     2.2399        7.3630       -.17520E-05   -.51781E-03
  26  Prefactor     .10000E-03    30.355        .94827E-05** at limit **
  27  norm          4.0481        3.9269        .18385E-06   -.13111E-03
  28  Prefactor     6.1399        7.3088       -.20977E-07   -.36001E-04
  29  Prefactor     4.3557        3.6924       -.19067E-06   -.16981E-03
  30  Prefactor     2.7036        3.5298       -.13417E-06   -.43534E-03
  31  Normalizat    .71158        .23819        .73317E-06   -.42409E-04
  32  Prefactor     1.3343        .27015       -.29414E-06    .26389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.8371
  norm       = 2.61214
  Prefactor  = 1.11979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.0172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.532
  norm       = 8.09335
  Prefactor  = 0.0001
  Prefactor  = 16.5216
  Prefactor  = 3.52687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.23993
  Prefactor  = 0.0001
  norm       = 4.04805
  Prefactor  = 6.13993
  Prefactor  = 4.35567
  Prefactor  = 2.70357
  Normalizat = 0.71158
  Prefactor  = 1.33427
 **********
 **   18 **HESSE 
 **********

 FCN=   4153.827     FROM HESSE     STATUS=OK           655 CALLS     4964 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.837        12.210        .10065E-03   -1.4912    
   3  norm          2.6121        .62309        .24095E-04   -1.5385    
   4  Prefactor     1.1198        2.6734        .16004E-03   -1.5496    
   5  Prefactor     .10000E-03    8.4763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          34.017        19.190        .68711E-04   -1.4541    
   8  Prefactor     .10000E-03    9.1417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.6927        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.209        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6226        4.6352        .11773E-03   -1.5234    
  15  Prefactor     .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4158        .13165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     100.53        93.310        .40095E-04   -1.3699    
  18  norm          8.0933        2.8070        .55984E-04   -1.5139    
  19  Prefactor     .10000E-03    32.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.522        26.169        .98542E-04   -1.4895    
  21  Prefactor     3.5269        3.4673        .10836E-03   -1.5332    
  22  Prefactor     .10000E-03    28.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .63740        .99215E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2399        7.3295        .27428E-03   -1.5409    
  26  Prefactor     .10000E-03    30.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.0481        3.9266        .10615E-03   -1.5306    
  28  Prefactor     6.1399        7.3064        .16201E-03   -1.5212    
  29  Prefactor     4.3557        3.6921        .96486E-04   -1.5291    
  30  Prefactor     2.7036        3.4906        .12310E-03   -1.5379    
  31  Normalizat    .71158        .27816        .31845E-03   -1.0344    
  32  Prefactor     1.3343        .31990        .28040E-03   -.82294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02661e-09
Minuit parameter uncertainties:
  1  6.87021e-06
  2  12.212
  3  0.623094
  4  2.67371
  5  8.92966e-06
  6  7.72217e-06
  7  19.193
  8  1.0083e-05
  9  8.21142e-07
  10  7.41789e-07
  11  8.73733e-05
  12  2.06818e-05
  13  8.62024e-06
  14  4.63552
  15  6.41191e-06
  16  4.56899e-06
  17  93.4464
  18  2.80708
  19  3.75419e-05
  20  26.1869
  21  3.46745
  22  2.26969e-05
  23  3.28828e-06
  24  8.54497e-07
  25  7.33243
  26  1.73649e-05
  27  3.92687
  28  7.30747
  29  3.69226
  30  3.49088
  31  0.278717
  32  0.320371
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.412e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.334e+00  3.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  7.116e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929332/likelihoodResults_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.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) = 4153.82696884
delta logL = -0.000345970058333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4153.82662296
delta logL = -8.891311154e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3844       1.0000          .0000       10.000    
     3 'Normalizat'    .71154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4153.827     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.043        .90712E-02** at limit **
   2  Index         2.3927        6.1962        .50000       -.53889E-05
   3  Normalizat    .71158        .22660        .71949E-01    .31306E-04
   4  Prefactor     1.3343        .26589        .63401E-01    .13774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39266
  Normalizat = 0.711582
  Prefactor  = 1.33427
 **********
 **   18 **HESSE 
 **********

 FCN=   4153.827     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6252.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3927        5.8420        .50000       -.54857    
   3  Normalizat    .71158        .12872        .31845E-03   -1.0344    
   4  Prefactor     1.3343        .15112        .28040E-03   -.82294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.32718e-09
Minuit parameter uncertainties:
  1  8.83159e-05
  2  60.2729
  3  0.128776
  4  0.151169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929332': 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) = 4153.82662285
delta logL = 2.01580405701e-08

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.832e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.393e+00  6.027e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.334e+00  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  7.116e-01  1.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.788 30.234

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/929332/cmap_HighResolution_410918401_411177601_4FGL_J1135.1+3014_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 04:14:48.312410', job_id='929332', GAL2='1.33', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630754088.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='2.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='662' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 929332: <4FGL_J1135.1+3014_daily_bin662> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin662> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 04:01:46 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:01:48 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:01:48 2021
Terminated at Sat Sep  4 04:14:49 2021
Results reported at Sat Sep  4 04:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin662 173.788 30.2344 410918401 411177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1135.1+3014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

