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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin965
RA = 173.788, Dec = 30.2344
tmin = 489456001, tmax = 489715201
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='932170', job_status='RUN', time_executed='2021-09-04 04:11:26.336575', time_epoch_executed='1630753886.34' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932170/ft1_4FGL_J1135.1+3014_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932170/ft2_4FGL_J1135.1+3014_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932170/ft1_4FGL_J1135.1+3014_daily_bin965.fits outfile=/scratch/kocevski/932170/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin965.fits ra=173.788 dec=30.2344 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.25
user 4.88
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932170/ft1_filtered_4FGL_J1135.1+3014_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/932170/ft2_4FGL_J1135.1+3014_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/932170/ltcube_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.fits outfile=/scratch/kocevski/932170/expmap_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.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/932170/ltcube_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.fits
.....................!
real 191.31
user 185.10
sys 5.35

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/932170/ft1_filtered_4FGL_J1135.1+3014_daily_bin965.fits scfile=/scratch/kocevski/932170/ft2_4FGL_J1135.1+3014_daily_bin965.fits outfile=/scratch/kocevski/932170/cmap_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932170/ft1_filtered_4FGL_J1135.1+3014_daily_bin965.fits scfile=/scratch/kocevski/932170/ft2_4FGL_J1135.1+3014_daily_bin965.fits outfile=/scratch/kocevski/932170/cmap_HighResolution_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4692       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11827E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89652E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47436       1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2420       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4827       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .86192       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0329       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24690E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6956       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.608       1.0000         .10000E-03   10000.    
    24 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.839       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.7939       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3546       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70766       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=   6463.045     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     3833 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0788        .88766E-06** at limit **
   2  Prefactor     4.4847        11.318        .20956E-06   -.21683E-04
   3  norm          1.9152        .36733       -.32818E-07    .99320E-03
   4  Prefactor     .10000E-03    1.4996        .64797E-07** at limit **
   5  Prefactor     .10000E-03    5.4940        .56303E-06** at limit **
   6  Prefactor     .10000E-03    22.299       -.22454E-05** at limit **
   7  norm          .10000E-03    7.6405       -.11907E-05** at limit **
   8  Prefactor     .53797        22.516       -.42960E-05   -.27185E-04
   9  norm          .10000E-03    12.207        .68584E-06** at limit **
  10  Prefactor     6.2173        14.764        .21831E-05   -.10003E-03
  11  Prefactor     3.8611        2.4032        .80282E-07   -.19081E-03
  12  Prefactor     .10000E-03    30.149        .19764E-05** at limit **
  13  Prefactor     5.4901        16.430       -.24621E-06   -.18410E-04
  14  norm          3.5578        2.2330        .33236E-07   -.14181E-03
  15  Prefactor     1.4404        8.5308        .26669E-05    .32308E-05
  16  Prefactor     3.3756        6.1714       -.75266E-08   -.62910E-04
  17  Prefactor     .10000E-03    39.868       -.21432E-06** at limit **
  18  norm          .86335        .87180        .16856E-06   -.16717E-03
  19  Prefactor     6.0399        22.668       -.40976E-05   -.10787E-03
  20  Prefactor     .10000E-03    7.2060        .21008E-06** at limit **
  21  Prefactor     .10001E-03    1.0984        .81191E-06** at limit **
  22  Prefactor     6.6847        28.764       -.91964E-06   -.47207E-04
  23  Prefactor     17.525        35.619        .18272E-05   -.41293E-05
  24  norm          .10000E-03    .94596        .36448E-06** at limit **
  25  Prefactor     .10000E-03    2.3486        .24218E-07** at limit **
  26  Prefactor     .10000E-03    17.680        .65568E-06** at limit **
  27  norm          16.839        4.4360       -.35770E-07   -.20541E-03
  28  Prefactor     .10000E-03    2.7226       -.10343E-07** at limit **
  29  Prefactor     .10000E-03    1.3828        .17079E-07** at limit **
  30  Prefactor     3.7937        2.8119       -.10315E-07   -.12943E-03
  31  Normalizat    1.3549        .19291       -.91064E-06   -.30566E-03
  32  Prefactor     .70733        .20278        .30848E-06   -.24182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.4847
  norm       = 1.91521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.537968
  norm       = 0.0001
  Prefactor  = 6.21726
  Prefactor  = 3.86112
  Prefactor  = 0.0001
  Prefactor  = 5.49005
  norm       = 3.55783
  Prefactor  = 1.44041
  Prefactor  = 3.37557
  Prefactor  = 0.0001
  norm       = 0.863354
  Prefactor  = 6.03992
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 6.68471
  Prefactor  = 17.5251
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.79372
  Normalizat = 1.35491
  Prefactor  = 0.707329
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.045     FROM HESSE     STATUS=OK           669 CALLS     4502 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4847        11.019        .19047E-03   -1.5284    
   3  norm          1.9152        .36347        .20392E-04   -1.5431    
   4  Prefactor     .10000E-03    2.7576        .18508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.682        .35849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53797        46.196        .41722E-02   -1.5561    
   9  norm          .10000E-03    12.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2173        14.878        .16067E-03   -1.5209    
  11  Prefactor     3.8611        2.3876        .90744E-04   -1.5315    
  12  Prefactor     .10000E-03    30.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4901        16.740        .17160E-03   -1.5239    
  14  norm          3.5578        2.2242        .89933E-04   -1.5331    
  15  Prefactor     1.4404        12.906        .17879E-02   -1.5468    
  16  Prefactor     3.3756        6.1119        .22016E-03   -1.5340    
  17  Prefactor     .10000E-03    40.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .86335        .83173        .69817E-03   -1.5522    
  19  Prefactor     6.0399        22.672        .16347E-03   -1.5216    
  20  Prefactor     .10000E-03    7.2244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    10.825        .14383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6847        28.719        .15507E-03   -1.5191    
  23  Prefactor     17.525        35.467        .95448E-04   -1.4870    
  24  norm          .10000E-03    2.1275        .14768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3663        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.839        4.4245        .41167E-03   -1.4887    
  28  Prefactor     .10000E-03    2.7367        .12954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.3981        .92104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.7937        2.8080        .10947E-03   -1.5318    
  31  Normalizat    1.3549        .23165        .22847E-03   -.81942    
  32  Prefactor     .70733        .23997        .34492E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09842e-08
Minuit parameter uncertainties:
  1  2.35993e-06
  2  11.0239
  3  0.363474
  4  5.83584e-06
  5  2.67557e-05
  6  0.000129606
  7  2.55844e-05
  8  9.97735
  9  7.29455e-06
  10  14.887
  11  2.38771
  12  1.73042e-05
  13  16.754
  14  2.22426
  15  8.62538
  16  6.11301
  17  4.05941e-05
  18  0.831743
  19  22.7042
  20  3.48432e-06
  21  0.000636049
  22  27.7335
  23  35.51
  24  2.28509e-05
  25  2.03259e-06
  26  2.23269e-05
  27  4.42457
  28  2.41296e-06
  29  2.03193e-06
  30  2.80808
  31  0.231833
  32  0.240319
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.440e+00  8.625e+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

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.073e-01  2.403e-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.355e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932170/likelihoodResults_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.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) = 6463.00938729
delta logL = 0.0358094137418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6462.99969874
delta logL = 0.0454979722217

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6463.000     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      269 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70164        303.10        .19238E-03    .99281E-05
   2  Index         3.3916        8.1482        .12456E-01    .10066E-04
   3  Normalizat    1.3428        .20196        .22935E-03   -.11897E-05
   4  Prefactor     .71559        .21322        .34309E-03   -.33136E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.701644
  Index      = 3.39155
  Normalizat = 1.34276
  Prefactor  = 0.715591
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.000     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .62E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70164        8.0030        .76951E-05   -1.5540    
   2  Index         3.3916        3.2925        .49823E-03   -.32751    
   3  Normalizat    1.3428        .21557        .91740E-05   -.82299    
   4  Prefactor     .71559        .23933        .13723E-04   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1864e-14
Minuit parameter uncertainties:
  1  4.73976
  2  3.64098
  3  0.215714
  4  0.239676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932170': 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) = 6462.99969651
delta logL = 0.0455001975979

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  7.016e-01  4.740e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.392e+00  3.641e+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:  7.156e-01  2.397e-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.343e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/932170/cmap_HighResolution_489456001_489715201_4FGL_J1135.1+3014_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-04 04:27:52.200153', job_id='932170', GAL2='0.72', fit_tolerance='1e-08', EG2='1.34', EG='1.35', time_epoch_completed='1630754872.2', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.55e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='965' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:27:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 932170: <4FGL_J1135.1+3014_daily_bin965> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin965> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 04:11:13 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:11:15 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:11:15 2021
Terminated at Sat Sep  4 04:27:52 2021
Results reported at Sat Sep  4 04:27:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin965 173.788 30.2344 489456001 489715201 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 :                                   975.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

