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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1215
RA = 146.432, Dec = 57.9871
tmin = 554256001, tmax = 554515201
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='491723', job_status='RUN', time_executed='2021-09-01 01:40:01.562647', time_epoch_executed='1630485601.56' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491723/ft1_4FGL_J0945.7+5759_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491723/ft1_4FGL_J0945.7+5759_daily_bin1215.fits outfile=/scratch/kocevski/491723/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1215.fits ra=146.432 dec=57.9871 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.35
user 3.82
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.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/491723/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.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 1.50
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/491723/ltcube_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.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/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits
.....................!
real 15.05
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/491723/ltcube_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits outfile=/scratch/kocevski/491723/expmap_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.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/491723/ltcube_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits
.....................!
real 191.65
user 186.30
sys 4.22

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

Setting source of interest to:
4FGL J0945.7+5759 @ 146.432 57.9871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits outfile=/scratch/kocevski/491723/cmap_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.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=146.432 yref=57.9871 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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits outfile=/scratch/kocevski/491723/cmap_HighResolution_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.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=146.432 yref=57.9871 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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491723/Model_4FGL_J0945.7+5759_daily_bin1215.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/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits.!
real 14.11
user 12.06
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits', '/scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits', expMap='/scratch/kocevski/491723/expmap_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits', expCube='/scratch/kocevski/491723/ltcube_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491723/Model_4FGL_J0945.7+5759_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.7+5759'

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/491723/ft1_filtered_4FGL_J0945.7+5759_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/491723/ft2_4FGL_J0945.7+5759_daily_bin1215.fits
Exposure map: /scratch/kocevski/491723/expmap_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits
Exposure cube: /scratch/kocevski/491723/ltcube_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491723/Model_4FGL_J0945.7+5759_daily_bin1215.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) = 8.83554577464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56832E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1639       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28360E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58383E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5370       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30633E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42344E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .37163E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27249E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    47.766       1.0000         .10000E-03   10000.    
    24 'norm      '    .52674E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .21829E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30882E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10837E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .18376E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .45149E-01   1.0000         .10000E-03   10000.    
    32 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .17145E-02   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .34384E-11   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   8.427706     FROM MIGRAD    STATUS=CONVERGED   1623 CALLS     4769 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5404        2295.9        .85609E-03   -.40357E-05
   2  Prefactor     3.1970        2297.0        .11376E-02   -.37985E-05
   3  Prefactor     2.6821        2297.2        .12472E-02   -.21481E-05
   4  Prefactor     .10028E-03    1249.3        .15249E-02** at limit **
   5  norm          6.3620        2295.4        .79714E-03   -.25997E-05
   6  Prefactor     3.9055        2296.7        .10247E-02   -.40754E-05
   7  Prefactor     .10002E-03    483.25        .72149E-03** at limit **
   8  Prefactor     1.9009        2297.4        .15097E-02   -.59279E-06
   9  Prefactor     4.1649        2296.4        .98759E-03   -.14446E-06
  10  norm          .10000E-03    46.737        .20153E-03** at limit **
  11  Prefactor     5.6512        2295.7        .84606E-03   -.17948E-05
  12  Prefactor     .10001E-03    370.63        .61318E-03** at limit **
  13  Prefactor     .10000E-03    692.00        .91758E-03** at limit **
  14  Prefactor     .10000E-03    2188.6        .17201E-02** at limit **
  15  Prefactor     .10001E-03    621.72        .85138E-03** at limit **
  16  Prefactor     .10002E-03    316.49        .55886E-03** at limit **
  17  Prefactor     .10000E-03    1012.4        .12401E-02** at limit **
  18  norm          .10000E-03    755.63        .97836E-03** at limit **
  19  Prefactor     .10004E-03    1116.5        .13583E-02** at limit **
  20  norm          .10000E-03    39.072        .18396E-03** at limit **
  21  norm          .10000E-03    1683.6        .18414E-02** at limit **
  22  Prefactor     .10001E-03    651.53        .87937E-03** at limit **
  23  norm          47.707        47.570        .20206E-04   -.51421E-04
  24  norm          .10002E-03    383.83        .62615E-03** at limit **
  25  Prefactor     .10004E-03    1121.6        .13643E-02** at limit **
  26  norm          .10003E-03    768.58        .99086E-03** at limit **
  27  Prefactor     .10001E-03    518.26        .75446E-03** at limit **
  28  norm          .10000E-03    100.95        .29981E-03** at limit **
  29  norm          .10000E-03    119.32        .32731E-03** at limit **
  30  Prefactor     .10266E-03    1902.0        .18229E-02** at limit **
  31  Prefactor     .10126E-03    1937.2        .18493E-02** at limit **
  32  norm          .10000E-03    158.91        .38119E-03** at limit **
  33  Prefactor     .10004E-03    853.59        .10744E-02** at limit **
  34  Normalizat    .10000E-01    .68851        .91497E-03** at limit **
  35  Prefactor     .88818E-14    .80842        .10298E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54039
  Prefactor  = 3.19695
  Prefactor  = 2.68209
  Prefactor  = 0.000100281
  norm       = 6.36204
  Prefactor  = 3.90546
  Prefactor  = 0.000100018
  Prefactor  = 1.90088
  Prefactor  = 4.16491
  norm       = 0.0001
  Prefactor  = 5.65119
  Prefactor  = 0.000100013
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100042
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 47.7075
  norm       = 0.000100024
  Prefactor  = 0.000100038
  norm       = 0.000100025
  Prefactor  = 0.000100006
  norm       = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.000102665
  Prefactor  = 0.000101257
  norm       = 0.000100001
  Prefactor  = 0.000100036
  Normalizat = 0.01
  Prefactor  = 8.88178e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   8.427706     FROM HESSE     STATUS=OK           736 CALLS     5505 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5404        2295.9        .17122E-03   -1.5237    
   2  Prefactor     3.1970        2297.0        .22752E-03   -1.5350    
   3  Prefactor     2.6821        2297.2        .24944E-03   -1.5380    
   4  Prefactor     .10028E-03    1249.3        .30497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3620        2295.4        .15943E-03   -1.5203    
   6  Prefactor     3.9055        2296.7        .20493E-03   -1.5313    
   7  Prefactor     .10002E-03    483.25        .14430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9009        2297.4        .30193E-03   -1.5432    
   9  Prefactor     4.1649        2296.4        .19752E-03   -1.5300    
  10  norm          .10000E-03    46.737        .40306E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6512        2295.7        .16921E-03   -1.5232    
  12  Prefactor     .10001E-03    370.63        .12264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    692.00        .18352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2188.6        .34403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    621.72        .17028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    316.49        .11177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1012.4        .24802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    755.63        .19567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    1116.5        .27166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    39.072        .36791E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1683.6        .36829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    651.53        .17587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          47.707        47.570        .40413E-05   -1.4325    
  24  norm          .10002E-03    383.83        .12523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    1121.6        .27286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10003E-03    768.58        .19817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    518.26        .15089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    100.95        .59962E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    119.32        .65462E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10266E-03    1902.0        .36458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10126E-03    1937.2        .36986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    158.91        .76238E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10004E-03    853.59        .21488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .68851        .18299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .88818E-14    .80842        .20596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32954e-10
Minuit parameter uncertainties:
  1  235.31
  2  178.769
  3  163.742
  4  0.0383092
  5  252.142
  6  197.581
  7  0.00595872
  8  137.85
  9  204.026
  10  4.0598e-06
  11  237.645
  12  0.0044754
  13  0.00358003
  14  0.00261322
  15  0.0052571
  16  0.00515002
  17  8.26798e-05
  18  0.000230317
  19  0.0138963
  20  1.31739e-06
  21  0.000578374
  22  0.00411183
  23  47.6078
  24  0.00610536
  25  0.0133051
  26  0.00894478
  27  0.00354515
  28  0.000689065
  29  0.000865356
  30  0.147339
  31  0.102204
  32  0.000737032
  33  0.011266
  34  6.50237e-08
  35  1.74037e-07
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  2.303e-04  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  8.882e-15  1.740e-07  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  6.502e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 8.15e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491723/likelihoodResults_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.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) = 8.42771072255
delta logL = -4.34957071427e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8.42771060499
delta logL = -4.23200876654e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96089E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8746       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76626E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   8.427706     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      242 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10210E-03    8430.4        .98050E-02** at limit **
   2  alpha         1.3259        2.8877        .17164        .16792E-07
   3  Normalizat    .10000E-01    .62186E-01    .91497E-03** at limit **
   4  Prefactor     .10673E-08    .78801E-01    .10298E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001021
  alpha      = 1.32589
  Normalizat = 0.01
  Prefactor  = 1.06726e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   8.427706     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10210E-03    7139.4        .11560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3259        3.4103        .68656E-02   -.48889    
   3  Normalizat    .10000E-01    .94954        .18299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10673E-08    1.1944        .20595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30959e-09
Minuit parameter uncertainties:
  1  0.206671
  2  7944.63
  3  1.7799e-05
  4  7.29112e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491723': 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) = 8.42770636146
delta logL = 1.15222231756e-08

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.021e-04  2.067e-01  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.326e+00  7.945e+03  0.000e+00  5.000e+00 ( 1.000e+00)
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.067e-09  7.291e-05  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  1.780e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.432 57.987

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/491723/cmap_HighResolution_554256001_554515201_4FGL_J0945.7+5759_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='8.15e-06', time_completed='2021-09-01 01:47:52.823360', job_id='491723', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630486072.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1215' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:47:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 491723: <4FGL_J0945.7+5759_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1215> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 01:35:53 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:35:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 01:35:55 2021
Terminated at Wed Sep  1 01:47:53 2021
Results reported at Wed Sep  1 01:47:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1215 146.432 57.9871 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             162.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

