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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1583
RA = 146.432, Dec = 57.9871
tmin = 649641601, tmax = 649900801
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='494830', job_status='RUN', time_executed='2021-09-01 01:46:16.364565', time_epoch_executed='1630485976.36' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494830/ft1_4FGL_J0945.7+5759_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494830/ft1_4FGL_J0945.7+5759_daily_bin1583.fits outfile=/scratch/kocevski/494830/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1583.fits ra=146.432 dec=57.9871 rad=12.0 tmin=649641601.0 tmax=649900801.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 2.76
user 2.38
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.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/494830/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.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.68
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/494830/ltcube_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.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/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits
.....................!
real 12.43
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/494830/ltcube_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits outfile=/scratch/kocevski/494830/expmap_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.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/494830/ltcube_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits
.....................!
real 190.89
user 186.20
sys 4.11

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/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits outfile=/scratch/kocevski/494830/cmap_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits outfile=/scratch/kocevski/494830/cmap_HighResolution_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494830/Model_4FGL_J0945.7+5759_daily_bin1583.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/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits.....................!
real 50.46
user 49.31
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits', '/scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits', expMap='/scratch/kocevski/494830/expmap_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits', expCube='/scratch/kocevski/494830/ltcube_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494830/Model_4FGL_J0945.7+5759_daily_bin1583.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/494830/ft1_filtered_4FGL_J0945.7+5759_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/494830/ft2_4FGL_J0945.7+5759_daily_bin1583.fits
Exposure map: /scratch/kocevski/494830/expmap_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits
Exposure cube: /scratch/kocevski/494830/ltcube_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494830/Model_4FGL_J0945.7+5759_daily_bin1583.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) = 4317.05398677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    120.28       1.0000         .10000E-03   10000.    
     5 'norm      '    11.096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.940       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3060       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0561       1.0000         .10000E-03   10000.    
    23 'norm      '    .52258       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7780       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .37636E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.0097       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    153.54       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2439       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0750       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.

 FCN=   4317.025     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     5009 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.989       -.27113E-07** at limit **
   2  Prefactor     .10000E-03    7.0485       -.22715E-07** at limit **
   3  Prefactor     .10000E-03    7.2196       -.31758E-07** at limit **
   4  Prefactor     120.29        72.619        .25676E-06    .11838E-04
   5  norm          11.098        15.758        .25920E-07   -.63084E-05
   6  Prefactor     19.403        18.944       -.16554E-07   -.47769E-05
   7  Prefactor     23.459        17.118        .11879E-06   -.14950E-04
   8  Prefactor     .10000E-03    20.154       -.63939E-07** at limit **
   9  Prefactor     .10000E-03    93.885       -.26292E-06** at limit **
  10  norm          2.3296        1.3055        .12810E-07   -.76861E-04
  11  Prefactor     .10000E-03    12.944        .18179E-06** at limit **
  12  Prefactor     18.091        15.008        .39967E-07   -.24840E-04
  13  Prefactor     1.1280        12.413        .34256E-05   -.13709E-03
  14  Prefactor     35.959        35.225       -.72050E-06    .15001E-04
  15  Prefactor     .10000E-03    6.5880       -.91260E-08** at limit **
  16  Prefactor     .10000E-03    7.4712       -.72712E-07** at limit **
  17  Prefactor     .10000E-03    6.2732       -.99454E-07** at limit **
  18  norm          .10000E-03    6.1775       -.21155E-07** at limit **
  19  Prefactor     11.230        57.530       -.19025E-07   -.11750E-04
  20  norm          1.3060        .67566       -.24582E-07   -.13683E-03
  21  norm          .10000E-03    22.216        .44011E-07** at limit **
  22  Prefactor     3.0563        10.598        .41737E-06   -.49013E-04
  23  norm          .52234        .93533        .21948E-06   -.11904E-03
  24  norm          4.7797        4.6284        .47793E-07   -.28534E-04
  25  Prefactor     .10000E-03    23.978       -.56692E-07** at limit **
  26  norm          .10000E-03    6.6556        .11912E-07** at limit **
  27  Prefactor     .10002E-03    21.268       -.86498E-06** at limit **
  28  norm          1.0101        2.0742        .71044E-06    .53167E-03
  29  norm          .10000E-03    .60061       -.84667E-08** at limit **
  30  Prefactor     153.65        214.62        .13234E-05    .33758E-04
  31  Prefactor     .10000E-03    50.167       -.10843E-06** at limit **
  32  norm          .10000E-03    .65207       -.10567E-08** at limit **
  33  Prefactor     .10000E-03    74.076        .45214E-06** at limit **
  34  Normalizat    1.2436        .23572       -.77086E-07   -.73750E-04
  35  Prefactor     1.0751        .23540       -.80484E-06   -.40322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.293
  norm       = 11.0975
  Prefactor  = 19.4032
  Prefactor  = 23.4585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3296
  Prefactor  = 0.0001
  Prefactor  = 18.091
  Prefactor  = 1.12799
  Prefactor  = 35.9592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2298
  norm       = 1.30604
  norm       = 0.0001
  Prefactor  = 3.05628
  norm       = 0.522341
  norm       = 4.77967
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100018
  norm       = 1.01013
  norm       = 0.0001
  Prefactor  = 153.647
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24361
  Prefactor  = 1.07508
 **********
 **   18 **HESSE 
 **********

 FCN=   4317.025     FROM HESSE     STATUS=OK           770 CALLS     5779 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0559        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2229        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     120.29        72.693        .36693E-04   -1.3510    
   5  norm          11.098        15.752        .12027E-03   -1.5042    
   6  Prefactor     19.403        18.943        .90931E-04   -1.4827    
   7  Prefactor     23.459        17.107        .82705E-04   -1.4739    
   8  Prefactor     .10000E-03    20.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3296        1.3028        .53245E-04   -1.5403    
  11  Prefactor     .10000E-03    12.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.091        14.976        .94184E-04   -1.4857    
  13  Prefactor     1.1280        11.239        .40586E-03   -1.5496    
  14  Prefactor     35.959        35.056        .66849E-04   -1.4508    
  15  Prefactor     .10000E-03    6.5918        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5128        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2911        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.1802        .15948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.230        58.119        .11954E-03   -1.5038    
  20  norm          1.3060        .67907        .37362E-04   -1.5479    
  21  norm          .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0563        10.532        .23206E-03   -1.5358    
  23  norm          .52234        .90468        .76983E-04   -1.5563    
  24  norm          4.7797        4.6145        .13264E-03   -1.5271    
  25  Prefactor     .10000E-03    24.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.6570        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    105.12        .52272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0101        1.8816        .13469E-02   -1.5507    
  29  norm          .10000E-03    .60295        .49713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     153.65        214.39        .16266E-03   -1.3222    
  31  Prefactor     .10000E-03    50.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .65282        .51809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    75.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2436        .26053        .26301E-03   -.85266    
  35  Prefactor     1.0751        .26735        .28771E-03   -.90267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71313e-10
Minuit parameter uncertainties:
  1  5.9028e-06
  2  3.07861e-08
  3  4.22743e-06
  4  72.7466
  5  15.758
  6  18.9485
  7  17.1104
  8  1.59562e-05
  9  0.00024974
  10  1.30285
  11  2.89304e-05
  12  14.9789
  13  7.12259
  14  35.0757
  15  3.43349e-06
  16  4.86489e-06
  17  2.63982e-05
  18  5.50302e-06
  19  51.1728
  20  0.679076
  21  1.63716e-05
  22  10.5381
  23  0.904706
  24  4.61485
  25  9.06755e-07
  26  3.59538e-06
  27  0.00277126
  28  1.88169
  29  9.16837e-08
  30  215.491
  31  7.00118e-05
  32  1.15834e-07
  33  0.000306964
  34  0.260803
  35  0.267681
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  5.503e-06  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:  1.075e+00  2.677e-01  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.244e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 4.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494830/likelihoodResults_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4317.02527472
delta logL = -0.000739823807635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4317.0245349
delta logL = 4.44742909167e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8761       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       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.

 FCN=   4317.025     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2414        .90712E-02** at limit **
   2  alpha         1.8776        3.3782        .42901       -.11703E-05
   3  Normalizat    1.2436        .21377        .59471E-01    .95400E-03
   4  Prefactor     1.0751        .22032        .65045E-01    .88726E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87758
  Normalizat = 1.24361
  Prefactor  = 1.07508
 **********
 **   18 **HESSE 
 **********

 FCN=   4317.025     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1731        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8776        3.3759        .50000       -.25161    
   3  Normalizat    1.2436        .24171        .26301E-03   -.85266    
   4  Prefactor     1.0751        .24904        .28771E-03   -.90267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68005e-09
Minuit parameter uncertainties:
  1  3.23469e-05
  2  2.4227
  3  0.241928
  4  0.249307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494830': 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) = 4317.0245349
delta logL = 5.79348125029e-10

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  3.235e-05  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.878e+00  2.423e+00  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.075e+00  2.493e-01  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.244e+00  2.419e-01  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/494830/cmap_HighResolution_649641601_649900801_4FGL_J0945.7+5759_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', job_status='DONE', photon_flux_upper_limit='4.19e-08', time_completed='2021-09-01 02:02:11.838385', job_id='494830', GAL2='1.08', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630486931.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.79e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1583' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 494830: <4FGL_J0945.7+5759_daily_bin1583> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1583> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:45:46 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:45:47 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:45:47 2021
Terminated at Wed Sep  1 02:02:12 2021
Results reported at Wed Sep  1 02:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1583 146.432 57.9871 649641601 649900801 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 :                                   946.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

