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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1157
RA = 173.788, Dec = 30.2344
tmin = 539222401, tmax = 539481601
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='933866', job_status='RUN', time_executed='2021-09-04 04:19:07.165464', time_epoch_executed='1630754347.17' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933866/ft1_4FGL_J1135.1+3014_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933866/ft1_4FGL_J1135.1+3014_daily_bin1157.fits outfile=/scratch/kocevski/933866/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1157.fits ra=173.788 dec=30.2344 rad=12.0 tmin=539222401.0 tmax=539481601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.84
user 5.33
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933866/ft1_filtered_4FGL_J1135.1+3014_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/933866/ltcube_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits outfile=/scratch/kocevski/933866/expmap_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.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/933866/ltcube_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits
.....................!
real 190.37
user 185.05
sys 4.96

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/933866/ft1_filtered_4FGL_J1135.1+3014_daily_bin1157.fits scfile=/scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits outfile=/scratch/kocevski/933866/cmap_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933866/ft1_filtered_4FGL_J1135.1+3014_daily_bin1157.fits scfile=/scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits outfile=/scratch/kocevski/933866/cmap_HighResolution_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.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.60
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933866/ft1_filtered_4FGL_J1135.1+3014_daily_bin1157.fits', '/scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits', expMap='/scratch/kocevski/933866/expmap_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits', expCube='/scratch/kocevski/933866/ltcube_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933866/Model_4FGL_J1135.1+3014_daily_bin1157.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/933866/ft1_filtered_4FGL_J1135.1+3014_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/933866/ft2_4FGL_J1135.1+3014_daily_bin1157.fits
Exposure map: /scratch/kocevski/933866/expmap_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits
Exposure cube: /scratch/kocevski/933866/ltcube_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933866/Model_4FGL_J1135.1+3014_daily_bin1157.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 999.88700771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    28.338       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    31.345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7451       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12724E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.937       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.861       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5893       1.0000         .10000E-03   10000.    
    22 'Prefactor '    424.43       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8851       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.845       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.4131       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .46139       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77702       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=   999.7539     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4999 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.259        .42766E-04** at limit **
   2  Prefactor     28.335        31.263        .11683E-05   -.92374E-05
   3  norm          5.3963        1.7560        .46365E-06    .40530E-03
   4  Prefactor     .10000E-03    5.6699       -.68446E-07** at limit **
   5  Prefactor     37.465        61.155       -.24466E-04    .80455E-04
   6  Prefactor     .10000E-03    39.224       -.59845E-04** at limit **
   7  norm          31.352        37.855        .44395E-05    .38171E-04
   8  Prefactor     .10000E-03    15.615        .76267E-05** at limit **
   9  norm          19.820        42.044       -.31846E-05   -.13706E-04
  10  Prefactor     4.7442        44.754       -.37439E-05   -.50124E-04
  11  Prefactor     .10000E-03    10.039        .10340E-05** at limit **
  12  Prefactor     .10001E-03    434.66       -.20504E-03** at limit **
  13  Prefactor     43.939        44.798        .12710E-06    .32423E-05
  14  norm          5.0778        17.946        .98475E-05    .40631E-03
  15  Prefactor     .10000E-03    17.694       -.10138E-04** at limit **
  16  Prefactor     16.257        17.392       -.55774E-07    .54119E-04
  17  Prefactor     44.826        501.06       -.50836E-04    .14981E-04
  18  norm          .10000E-03    3.9997        .25915E-06** at limit **
  19  Prefactor     .10000E-03    60.197        .25434E-04** at limit **
  20  Prefactor     77.111        76.513        .10815E-05   -.36108E-05
  21  Prefactor     9.5890        8.0447       -.15123E-06   -.14036E-03
  22  Prefactor     424.43        171.54       -.15934E-05   -.10958E-04
  23  Prefactor     .10000E-03    340.87        .93090E-04** at limit **
  24  norm          2.8850        4.4762       -.13773E-06   -.12128E-03
  25  Prefactor     .10000E-03    10.641       -.21999E-05** at limit **
  26  Prefactor     .10000E-03    58.661        .25206E-05** at limit **
  27  norm          .10000E-03    4.7619       -.61922E-07** at limit **
  28  Prefactor     27.844        26.427        .62792E-06   -.56483E-05
  29  Prefactor     4.4131        5.4330        .27414E-06   -.41020E-05
  30  Prefactor     .10000E-03    2.3591       -.33649E-07** at limit **
  31  Normalizat    .46137        .50827        .88513E-05   -.17022E-04
  32  Prefactor     .77708        .48442       -.34136E-05    .29110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.3349
  norm       = 5.39631
  Prefactor  = 0.0001
  Prefactor  = 37.4648
  Prefactor  = 0.0001
  norm       = 31.3517
  Prefactor  = 0.0001
  norm       = 19.8204
  Prefactor  = 4.74423
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 43.9389
  norm       = 5.07782
  Prefactor  = 0.0001
  Prefactor  = 16.2566
  Prefactor  = 44.8258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.1108
  Prefactor  = 9.58903
  Prefactor  = 424.429
  Prefactor  = 0.000100001
  norm       = 2.885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.8438
  Prefactor  = 4.41306
  Prefactor  = 0.0001
  Normalizat = 0.461369
  Prefactor  = 0.777077
 **********
 **   18 **HESSE 
 **********

 FCN=   999.7539     FROM HESSE     STATUS=OK           649 CALLS     5648 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.234        .17813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.335        31.386        .75259E-04   -1.4643    
   3  norm          5.3963        1.7632        .22199E-04   -1.5243    
   4  Prefactor     .10000E-03    5.6888        .73476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.465        61.298        .65448E-04   -1.4483    
   6  Prefactor     .10000E-03    39.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.352        37.850        .71567E-04   -1.4588    
   8  Prefactor     .10000E-03    15.621        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.820        42.348        .89966E-04   -1.4817    
  10  Prefactor     4.7442        44.949        .18471E-03   -1.5272    
  11  Prefactor     .10000E-03    10.069        .97094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    437.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.939        44.801        .60483E-04   -1.4381    
  14  norm          5.0778        17.861        .14484E-03   -1.5257    
  15  Prefactor     .10000E-03    17.694        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.257        17.385        .99341E-04   -1.4901    
  17  Prefactor     44.826        500.31        .59859E-04   -1.4368    
  18  norm          .10000E-03    4.0469        .12254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     77.111        76.548        .45730E-04   -1.3949    
  21  Prefactor     9.5890        8.0487        .76373E-04   -1.5089    
  22  Prefactor     424.43        171.18        .99207E-04   -1.1558    
  23  Prefactor     .10000E-03    341.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8850        4.4492        .76337E-04   -1.5368    
  25  Prefactor     .10000E-03    10.652        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    58.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.7674        .67250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     27.844        26.447        .75921E-04   -1.4652    
  29  Prefactor     4.4131        5.4173        .79292E-04   -1.5288    
  30  Prefactor     .10000E-03    2.3598        .47433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .46137        .57071        .36317E-03   -1.1424    
  32  Prefactor     .77708        .54950        .31047E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05234e-09
Minuit parameter uncertainties:
  1  4.15169e-06
  2  31.4041
  3  1.76323
  4  8.94218e-06
  5  61.4009
  6  0.000127216
  7  37.8794
  8  1.31652e-05
  9  42.4126
  10  29.2347
  11  0.000163179
  12  0.00393791
  13  44.8358
  14  17.8793
  15  1.25868e-06
  16  17.3907
  17  302.774
  18  5.15994e-05
  19  2.12111e-05
  20  76.6463
  21  8.04962
  22  171.386
  23  0.00106172
  24  4.4497
  25  1.07469e-05
  26  7.04766e-06
  27  9.77964e-06
  28  26.4577
  29  5.41794
  30  1.77763e-06
  31  0.578165
  32  0.553438
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.259e-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:  7.771e-01  5.534e-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:  4.614e-01  5.782e-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: 2.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933866/likelihoodResults_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.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) = 999.754153629
delta logL = -0.000213491350905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 999.753942985
delta logL = -2.84716850274e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8270       1.0000          .0000       10.000    
     3 'Normalizat'    .46133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77682       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=   999.7539     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10754E-03    18.717        .10054E-01** at limit **
   2  Index         2.6843        6.3358        .50000        .25347E-04
   3  Normalizat    .46137        .13451E-01    .36316E-03   -.97437E-06
   4  Prefactor     .77707        .14861E-01    .31048E-03    .14436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010754
  Index      = 2.68427
  Normalizat = 0.461372
  Prefactor  = 0.777074
 **********
 **   18 **HESSE 
 **********

 FCN=   999.7539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10754E-03    189.91        .10815E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6843        8.6547        .50000       -.48154    
   3  Normalizat    .46137        .43593E-01    .14526E-04   -1.1424    
   4  Prefactor     .77707        .48162E-01    .12419E-04   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15519e-08
Minuit parameter uncertainties:
  1  0.0759236
  2  547.996
  3  0.0435957
  4  0.0481649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933866': 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) = 999.753941697
delta logL = -1.55987254402e-06

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.075e-04  7.592e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.684e+00  5.480e+02  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.771e-01  4.816e-02  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:  4.614e-01  4.360e-02  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/933866/cmap_HighResolution_539222401_539481601_4FGL_J1135.1+3014_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', job_status='DONE', photon_flux_upper_limit='2.49e-07', time_completed='2021-09-04 04:27:33.728918', job_id='933866', GAL2='0.78', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630754853.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-1.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1157' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:27:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 933866: <4FGL_J1135.1+3014_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin1157> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 04:16:23 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:16:24 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:16:24 2021
Terminated at Sat Sep  4 04:27:34 2021
Results reported at Sat Sep  4 04:27:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1157 173.788 30.2344 539222401 539481601 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 :                                   453.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

