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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin59
RA = 146.432, Dec = 57.9871
tmin = 254620801, tmax = 254880001
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='482749', job_status='RUN', time_executed='2021-09-01 01:05:56.798310', time_epoch_executed='1630483556.8' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482749

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482749/ft1_4FGL_J0945.7+5759_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482749/ft1_4FGL_J0945.7+5759_daily_bin59.fits outfile=/scratch/kocevski/482749/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin59.fits ra=146.432 dec=57.9871 rad=12.0 tmin=254620801.0 tmax=254880001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.37
user 1.15
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/482749/ltcube_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.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/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits
.....................!
real 11.64
user 11.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/482749/ltcube_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.fits outfile=/scratch/kocevski/482749/expmap_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.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/482749/ltcube_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.fits
.....................!
real 190.31
user 185.47
sys 4.44

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/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits scfile=/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits outfile=/scratch/kocevski/482749/cmap_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits scfile=/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits outfile=/scratch/kocevski/482749/cmap_HighResolution_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.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.56
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/482749/ft2_4FGL_J0945.7+5759_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482749/Model_4FGL_J0945.7+5759_daily_bin59.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/482749/ft1_filtered_4FGL_J0945.7+5759_daily_bin59.fits.....................!
real 47.65
user 46.27
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.033       1.0000         .10000E-03   10000.    
    10 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25850E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2853       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.814       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2694       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.343       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.2885       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.6509       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.5299       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .90561       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .98454       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=   4235.288     FROM MIGRAD    STATUS=CONVERGED    964 CALLS     5045 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.758       -.15180E-04** at limit **
   2  Prefactor     40.963        15.417       -.79166E-06    .22283E-03
   3  Prefactor     .10000E-03    4.8276       -.17851E-06** at limit **
   4  Prefactor     .10000E-03    24.664        .96394E-05** at limit **
   5  norm          .10000E-03    3.2724        .21791E-06** at limit **
   6  Prefactor     .10000E-03    5.8726        .20979E-05** at limit **
   7  Prefactor     .10000E-03    9.3716        .62081E-05** at limit **
   8  Prefactor     .10000E-03    8.1035       -.39078E-05** at limit **
   9  Prefactor     73.922        77.861       -.10765E-03    .58276E-05
  10  norm          .10000E-03    .76727       -.44698E-06** at limit **
  11  Prefactor     .10004E-03    8.5350        .12603E-05** at limit **
  12  Prefactor     .10000E-03    4.0568        .94561E-06** at limit **
  13  Prefactor     .10000E-03    5.3009        .69951E-07** at limit **
  14  Prefactor     15.705        17.696        .13388E-05   -.60810E-04
  15  Prefactor     .10000E-03    12.364       -.59160E-05** at limit **
  16  Prefactor     5.2891        10.201       -.33110E-05    .12074E-03
  17  Prefactor     .10000E-03    4.7019        .17765E-05** at limit **
  18  norm          .10000E-03    4.1216       -.15171E-05** at limit **
  19  Prefactor     16.819        32.615        .10318E-05    .62361E-04
  20  norm          1.2693        .65411       -.16575E-06    .38738E-03
  21  norm          .10000E-03    5.4770       -.27012E-06** at limit **
  22  Prefactor     .10000E-03    5.0782       -.32615E-05** at limit **
  23  norm          .10000E-03    .29843       -.92420E-07** at limit **
  24  norm          .10000E-03    1.2842       -.14970E-06** at limit **
  25  Prefactor     35.341        39.776       -.41158E-05    .95967E-05
  26  norm          .10000E-03    14.922        .20120E-05** at limit **
  27  Prefactor     .10000E-03    34.577       -.15321E-04** at limit **
  28  norm          .10000E-03    .88331       -.49761E-07** at limit **
  29  norm          1.2884        1.1815       -.13580E-06    .15221E-03
  30  Prefactor     5.3866        1352.0       -.10847E-02    .64753E-04
  31  Prefactor     .10000E-03    100.51       -.28120E-05** at limit **
  32  norm          1.5294        1.7799       -.44601E-06   -.32781E-03
  33  Prefactor     .10000E-03    47.436        .24903E-04** at limit **
  34  Normalizat    .90561        .18774        .11803E-04    .12458E-03
  35  Prefactor     .98455        .18702        .21496E-05    .48236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.9628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.9217
  norm       = 0.000100001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7048
  Prefactor  = 0.0001
  Prefactor  = 5.28908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.819
  norm       = 1.26934
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.3415
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.28844
  Prefactor  = 5.38658
  Prefactor  = 0.0001
  norm       = 1.52938
  Prefactor  = 0.000100004
  Normalizat = 0.905612
  Prefactor  = 0.984548
 **********
 **   18 **HESSE 
 **********

 FCN=   4235.288     FROM HESSE     STATUS=OK           764 CALLS     5809 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.963        15.405        .62632E-04   -1.4427    
   3  Prefactor     .10000E-03    4.8374        .13964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2879        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8755        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1046        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.922        78.190        .23331E-03   -1.3986    
  10  norm          .10000E-03    2.4027        .10898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    68.730        .36215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0599        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5213        .29211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.705        17.378        .10099E-03   -1.4915    
  15  Prefactor     .10000E-03    12.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2891        10.069        .17483E-03   -1.5248    
  17  Prefactor     .10000E-03    4.7349        .13772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1221        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.819        32.619        .97675E-04   -1.4888    
  20  norm          1.2693        .65102        .35884E-04   -1.5483    
  21  norm          .10000E-03    5.4823        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1478        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .30988        .69294E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.3003        .72009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     35.341        39.889        .33705E-03   -1.4518    
  26  norm          .10000E-03    14.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    35.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .89149        .59701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.2884        1.1980        .65954E-04   -1.5481    
  30  Prefactor     5.3866        1403.8        .16899E-02   -1.5244    
  31  Prefactor     .10000E-03    100.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.5294        1.7689        .90989E-04   -1.5461    
  33  Prefactor     .10000E-03    47.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .90561        .21002        .24396E-03   -.96263    
  35  Prefactor     .98455        .20903        .24204E-03   -.93246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46406e-09
Minuit parameter uncertainties:
  1  6.50405e-05
  2  15.4069
  3  3.15715e-06
  4  8.53796e-05
  5  4.50615e-05
  6  3.70499e-07
  7  0.000127136
  8  0.000120703
  9  78.2993
  10  8.52575e-05
  11  0.00310934
  12  1.51694e-05
  13  3.43358e-05
  14  17.384
  15  2.75625e-05
  16  10.0719
  17  4.05362e-05
  18  8.35451e-06
  19  32.6539
  20  0.651023
  21  2.77845e-05
  22  9.03842e-05
  23  3.66495e-06
  24  1.65605e-05
  25  39.9191
  26  4.25604e-05
  27  0.000471174
  28  7.84628e-06
  29  1.19803
  30  178.319
  31  0.0002064
  32  1.76894
  33  0.000837748
  34  0.210206
  35  0.209203
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  8.355e-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:  9.845e-01  2.092e-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:  9.056e-01  2.102e-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: 2.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482749/likelihoodResults_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.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) = 4235.28954059
delta logL = -0.00112548613197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4235.28841508
delta logL = 2.06628101296e-08

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.8677       1.0000          .0000       5.0000    
     3 'Normalizat'    .90560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98455       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=   4235.288     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      225 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    220.26        .12927E-01** at limit **
   2  alpha         1.5233        2.6069        .17181        .11117E-07
   3  Normalizat    .90562        .37059E-01    .24396E-03    .15378E-04
   4  Prefactor     .98454        .38386E-01    .24204E-03    .16111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.52325
  Normalizat = 0.905616
  Prefactor  = 0.984543
 **********
 **   18 **HESSE 
 **********

 FCN=   4235.288     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3512        .13247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5233        3.1490        .68724E-02   -.40139    
   3  Normalizat    .90562        .19982        .97584E-05   -.96263    
   4  Prefactor     .98454        .20698        .96815E-05   -.93247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22413e-10
Minuit parameter uncertainties:
  1  0.000129339
  2  307.324
  3  0.199983
  4  0.207146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482749': 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) = 4235.28841448
delta logL = 6.22535480943e-07

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  1.293e-04  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.523e+00  3.073e+02  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:  9.845e-01  2.071e-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:  9.056e-01  2.000e-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/482749/cmap_HighResolution_254620801_254880001_4FGL_J0945.7+5759_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', job_status='DONE', photon_flux_upper_limit='2.96e-08', time_completed='2021-09-01 01:21:23.583781', job_id='482749', GAL2='0.98', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630484483.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='59' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 482749: <4FGL_J0945.7+5759_daily_bin59> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin59> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 01:05:43 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:05:44 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:05:44 2021
Terminated at Wed Sep  1 01:21:24 2021
Results reported at Wed Sep  1 01:21:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin59 146.432 57.9871 254620801 254880001 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 :                                   925.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

