/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 111 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1135.1+3014_daily_bin91
RA = 173.788, Dec = 30.2344
tmin = 262915201, tmax = 263174401
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='927306', job_status='RUN', time_executed='2021-09-04 03:58:27.222106', time_epoch_executed='1630753107.22' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927306

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927306/ft1_4FGL_J1135.1+3014_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927306/ft1_4FGL_J1135.1+3014_daily_bin91.fits outfile=/scratch/kocevski/927306/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin91.fits ra=173.788 dec=30.2344 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.27
user 1.09
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.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/927306/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.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.50
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/927306/ltcube_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.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/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits
.....................!
real 11.51
user 11.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/927306/ltcube_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits outfile=/scratch/kocevski/927306/expmap_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.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/927306/ltcube_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits
.....................!
real 190.32
user 185.24
sys 4.20

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/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits scfile=/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits outfile=/scratch/kocevski/927306/cmap_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits scfile=/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits outfile=/scratch/kocevski/927306/cmap_HighResolution_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.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.55
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits', '/scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits', expMap='/scratch/kocevski/927306/expmap_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits', expCube='/scratch/kocevski/927306/ltcube_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927306/Model_4FGL_J1135.1+3014_daily_bin91.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/927306/ft1_filtered_4FGL_J1135.1+3014_daily_bin91.fits
Spacecraft file(s): /scratch/kocevski/927306/ft2_4FGL_J1135.1+3014_daily_bin91.fits
Exposure map: /scratch/kocevski/927306/expmap_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits
Exposure cube: /scratch/kocevski/927306/ltcube_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927306/Model_4FGL_J1135.1+3014_daily_bin91.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) = 4509.51880886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23583E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30284E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .86436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3408       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3555       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .43732       1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.545       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.913       1.0000         .10000E-03   10000.    
    24 'norm      '    3.6383       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6493       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0323       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5292       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.7919       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2832       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .62015       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=   4509.492     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4484 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.55        .44059E-04** at limit **
   2  Prefactor     .17257E-03    6.9351       -.36083E-05** at limit **
   3  norm          .86436        .30226       -.43258E-08   -.45450E-03
   4  Prefactor     2.5548        3.2042       -.10556E-06    .39623E-03
   5  Prefactor     6.7968        9.1676       -.18678E-06   -.27078E-04
   6  Prefactor     .10000E-03    4.6528       -.28434E-07** at limit **
   7  norm          19.859        14.013        .11466E-07   -.69070E-04
   8  Prefactor     9.3412        8.3705       -.19436E-05    .59689E-04
   9  norm          2.0088        22.147       -.22824E-05    .76242E-04
  10  Prefactor     .10000E-03    10.440       -.14187E-06** at limit **
  11  Prefactor     .10000E-03    .90077        .37461E-06** at limit **
  12  Prefactor     1.3677        284.01       -.19273E-04   -.66460E-04
  13  Prefactor     .10000E-03    25.349       -.12888E-05** at limit **
  14  norm          1.0935        2.3325        .23268E-05    .29549E-04
  15  Prefactor     10.093        11.616       -.20086E-06    .43908E-04
  16  Prefactor     .10000E-03    2.5746       -.54734E-07** at limit **
  17  Prefactor     .10000E-03    72.350        .14842E-04** at limit **
  18  norm          .43822        1.2370       -.83629E-06   -.49565E-03
  19  Prefactor     56.553        31.060        .26501E-05   -.26236E-04
  20  Prefactor     .10000E-03    28.788        .23466E-05** at limit **
  21  Prefactor     .10000E-03    1.9771       -.37794E-06** at limit **
  22  Prefactor     .10000E-03    12.070       -.90988E-07** at limit **
  23  Prefactor     51.874        52.486       -.25832E-05   -.31262E-04
  24  norm          3.6381        1.7088       -.18002E-06   -.38153E-05
  25  Prefactor     2.6489        3.5636       -.16761E-06   -.48037E-06
  26  Prefactor     .10000E-03    37.876       -.36761E-05** at limit **
  27  norm          .10000E-03    1.0084       -.20839E-07** at limit **
  28  Prefactor     1.0220        13.220        .31388E-05    .22276E-03
  29  Prefactor     1.5292        1.9344       -.27630E-07    .85188E-04
  30  Prefactor     6.7919        2.8935       -.42382E-07   -.23162E-04
  31  Normalizat    1.2832        .21179        .79483E-06    .18819E-03
  32  Prefactor     .62027        .21850        .17686E-05   -.68437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000172567
  norm       = 0.864356
  Prefactor  = 2.55481
  Prefactor  = 6.79681
  Prefactor  = 0.0001
  norm       = 19.8589
  Prefactor  = 9.34124
  norm       = 2.0088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3677
  Prefactor  = 0.0001
  norm       = 1.09353
  Prefactor  = 10.093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.438218
  Prefactor  = 56.5531
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 51.8742
  norm       = 3.63815
  Prefactor  = 2.64887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.022
  Prefactor  = 1.52924
  Prefactor  = 6.79194
  Normalizat = 1.28315
  Prefactor  = 0.620266
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.492     FROM HESSE     STATUS=OK           677 CALLS     5161 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.90        .54280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17257E-03    9.9374        .60678E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .86436        .30321        .21104E-04   -1.5522    
   4  Prefactor     2.5548        3.1872        .12575E-03   -1.5388    
   5  Prefactor     6.7968        9.1663        .15389E-03   -1.5186    
   6  Prefactor     .10000E-03    4.6541        .14147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.859        14.020        .89875E-04   -1.4816    
   8  Prefactor     9.3412        8.3639        .13113E-03   -1.5097    
   9  norm          2.0088        22.124        .29197E-03   -1.5424    
  10  Prefactor     .10000E-03    10.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .90468        .62099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3677        290.32        .37545E-03   -1.5474    
  13  Prefactor     .10000E-03    25.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0935        2.2880        .12339E-03   -1.5499    
  15  Prefactor     10.093        11.616        .12612E-03   -1.5072    
  16  Prefactor     .10000E-03    2.6013        .10520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .43822        1.2422        .11563E-03   -1.5576    
  19  Prefactor     56.553        31.242        .53347E-04   -1.4203    
  20  Prefactor     .10000E-03    29.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0642        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     51.874        52.164        .55664E-04   -1.4266    
  24  norm          3.6381        1.7085        .56814E-04   -1.5326    
  25  Prefactor     2.6489        3.5526        .14285E-03   -1.5382    
  26  Prefactor     .10000E-03    38.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.0109        .65829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0220        38.472        .44355E-02   -1.5506    
  29  Prefactor     1.5292        1.9172        .10182E-03   -1.5461    
  30  Prefactor     6.7919        2.8939        .72149E-04   -1.5187    
  31  Normalizat    1.2832        .24614        .22196E-03   -.84071    
  32  Prefactor     .62027        .25006        .33974E-03   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5715e-09
Minuit parameter uncertainties:
  1  0.00112214
  2  0.0537165
  3  0.303215
  4  3.18745
  5  9.16821
  6  5.03989e-06
  7  14.0219
  8  8.36492
  9  13.339
  10  8.15736e-05
  11  2.56136e-05
  12  40.0498
  13  0.000102326
  14  2.28821
  15  11.6182
  16  1.87141e-05
  17  0.000113085
  18  1.24222
  19  31.2507
  20  0.000301589
  21  0.000125213
  22  2.19568e-05
  23  52.21
  24  1.70855
  25  3.55285
  26  2.87861e-06
  27  1.56858e-06
  28  12.5489
  29  1.91725
  30  2.89398
  31  0.246361
  32  0.250509
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.009e+01  1.162e+01  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:  6.203e-01  2.505e-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:  1.283e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 173.788 30.234
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 8.73e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/927306/likelihoodResults_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.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): 0
logL (Free Index) = 4509.31936922
delta logL = 0.172624590633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4509.31260645
delta logL = 0.17938736517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9807       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1269       1.0000          .0000       10.000    
     3 'Normalizat'    1.2508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64174       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=   4509.313     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      279 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9768        133.13        .45049E-02    .19530E-03
   2  Index         3.1281        6.5602        .11507        .10473E-03
   3  Normalizat    1.2506        .87740E-01    .50739E-01    .13805E-05
   4  Prefactor     .64198        .78756E-01    .75528E-01    .18695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97682
  Index      = 3.12814
  Normalizat = 1.2506
  Prefactor  = 0.641977
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.313     FROM HESSE     STATUS=OK            33 CALLS      312 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9768        15.091        .13466E-03   -1.5262    
   2  Index         3.1281        1.8803        .65521E-02   -.38372    
   3  Normalizat    1.2506        .24051        .22432E-03   -.85053    
   4  Prefactor     .64198        .25535        .33439E-03   -1.0585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08365e-08
Minuit parameter uncertainties:
  1  15.1023
  2  1.93608
  3  0.240724
  4  0.255814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927306': 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) = 4509.31260518
delta logL = 0.179388630807

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  4.977e+00  1.510e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.128e+00  1.936e+00  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:  6.420e-01  2.558e-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:  1.251e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 173.788 30.234
Photon Index (Free Index): 3.13 +/- 1.94
Photon Flux (Free Index): 5.26e-08 +/- 7.19e-08
Energy Flux (Free Index): 9.91e-06 +/- 9.59e-06

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/927306/cmap_HighResolution_262915201_263174401_4FGL_J1135.1+3014_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='9.91e-06', photon_flux_error='2.97e-08', dlogl='1.79e-01', energy_flux='8.73e-06', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-04 04:12:02.539119', photon_index_error2='1.94', photon_index2='3.13', ts='1.41', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='9.59e-06', EG='1.28', time_epoch_completed='1630753922.54', return_code='0', job_id='927306', GAL2='0.64', EG2='1.25', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='7.19e-08', ts2='1.78', photon_index='2.38' WHERE bin_id='91' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 927306: <4FGL_J1135.1+3014_daily_bin91> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin91> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:56:26 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:56:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:56:28 2021
Terminated at Sat Sep  4 04:12:02 2021
Results reported at Sat Sep  4 04:12:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin91 173.788 30.2344 262915201 263174401 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 :                                   807.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

