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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin73
RA = 146.432, Dec = 57.9871
tmin = 258249601, tmax = 258508801
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='482769', job_status='RUN', time_executed='2021-09-01 01:08:00.759184', time_epoch_executed='1630483680.76' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482769

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482769/ft1_4FGL_J0945.7+5759_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482769/ft1_4FGL_J0945.7+5759_daily_bin73.fits outfile=/scratch/kocevski/482769/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin73.fits ra=146.432 dec=57.9871 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 0.98
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/482769/ltcube_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.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/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits
.....................!
real 9.10
user 8.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/482769/ltcube_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.fits outfile=/scratch/kocevski/482769/expmap_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.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/482769/ltcube_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.fits
.....................!
real 188.65
user 184.66
sys 3.47

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/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits scfile=/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits outfile=/scratch/kocevski/482769/cmap_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.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.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits scfile=/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits outfile=/scratch/kocevski/482769/cmap_HighResolution_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.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.52
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/482769/ft2_4FGL_J0945.7+5759_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482769/Model_4FGL_J0945.7+5759_daily_bin73.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/482769/ft1_filtered_4FGL_J0945.7+5759_daily_bin73.fits.....................!
real 46.23
user 44.94
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    83.880       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5760       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37532E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13798E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6161       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .34483       1.0000         .10000E-03   10000.    
    24 'norm      '    7.8345       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9727       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.908       1.0000         .10000E-03   10000.    
    28 'norm      '    .10583E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.0667       1.0000         .10000E-03   10000.    
    30 'Prefactor '    321.47       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.8569       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .76601       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0028       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=   4174.719     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     5079 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4822       -.18280E-06** at limit **
   2  Prefactor     8.9420        7.9692       -.21478E-06    .24350E-04
   3  Prefactor     .10000E-03    5.3293       -.24862E-06** at limit **
   4  Prefactor     83.882        51.582       -.23254E-07    .11289E-04
   5  norm          .10000E-03    1.8389       -.79100E-07** at limit **
   6  Prefactor     16.924        19.130       -.20597E-06    .15240E-04
   7  Prefactor     6.5771        12.827       -.84395E-06    .26404E-04
   8  Prefactor     .10000E-03    26.375       -.52257E-06** at limit **
   9  Prefactor     .10000E-03    48.883        .91511E-06** at limit **
  10  norm          1.1098        .93995        .89196E-07    .19079E-03
  11  Prefactor     8.3786        13.998       -.16701E-06    .15981E-04
  12  Prefactor     .10000E-03    11.290       -.72668E-06** at limit **
  13  Prefactor     .10000E-03    1.4948       -.18983E-06** at limit **
  14  Prefactor     .10000E-03    15.576       -.42073E-06** at limit **
  15  Prefactor     .10000E-03    6.2434       -.27622E-07** at limit **
  16  Prefactor     .10000E-03    40.705        .53837E-05** at limit **
  17  Prefactor     .10000E-03    2.0255       -.79324E-07** at limit **
  18  norm          22.211        13.356       -.42113E-06    .40393E-04
  19  Prefactor     .10000E-03    41.395       -.61651E-06** at limit **
  20  norm          1.6162        .72284        .65807E-07    .11431E-03
  21  norm          .10000E-03    5.3987       -.20465E-06** at limit **
  22  Prefactor     .10000E-03    5.9884       -.54119E-06** at limit **
  23  norm          .34438        .74849       -.42754E-06   -.14385E-03
  24  norm          7.8331        4.1175       -.32977E-08    .18471E-04
  25  Prefactor     2.8356        122.21       -.42026E-05    .33263E-05
  26  norm          .10000E-03    9.7634        .50929E-07** at limit **
  27  Prefactor     12.906        14.981        .11458E-07    .34642E-04
  28  norm          .10000E-03    2.3636       -.90163E-07** at limit **
  29  norm          3.0663        2.0314        .37108E-07    .59192E-05
  30  Prefactor     321.12        333.43        .52256E-05    .42283E-05
  31  Prefactor     .10000E-03    82.731       -.10841E-05** at limit **
  32  norm          1.8567        1.7962        .34201E-07   -.25862E-04
  33  Prefactor     .10000E-03    9.3518       -.16997E-06** at limit **
  34  Normalizat    .76669        .20913        .11539E-06    .18637E-03
  35  Prefactor     1.0022        .20731        .22488E-05    .16104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.94204
  Prefactor  = 0.0001
  Prefactor  = 83.8816
  norm       = 0.0001
  Prefactor  = 16.9235
  Prefactor  = 6.57712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10985
  Prefactor  = 8.37859
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 22.2108
  Prefactor  = 0.0001
  norm       = 1.61617
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.344375
  norm       = 7.83308
  Prefactor  = 2.83555
  norm       = 0.0001
  Prefactor  = 12.9061
  norm       = 0.0001
  norm       = 3.06631
  Prefactor  = 321.121
  Prefactor  = 0.0001
  norm       = 1.85666
  Prefactor  = 0.0001
  Normalizat = 0.766695
  Prefactor  = 1.0022
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.719     FROM HESSE     STATUS=OK           770 CALLS     5849 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9420        7.9620        .13402E-03   -1.5110    
   3  Prefactor     .10000E-03    5.3593        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     83.882        51.574        .43860E-04   -1.3874    
   5  norm          .10000E-03    1.8410        .85578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.924        19.108        .97346E-04   -1.4885    
   7  Prefactor     6.5771        12.765        .15649E-03   -1.5195    
   8  Prefactor     .10000E-03    26.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1098        .92502        .53154E-04   -1.5497    
  11  Prefactor     8.3786        13.996        .13842E-03   -1.5129    
  12  Prefactor     .10000E-03    60.886        .41346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5077        .77187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2464        .15764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.255        .36119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0283        .89803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.211        13.338        .84999E-04   -1.4765    
  19  Prefactor     .10000E-03    41.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6162        .72082        .34684E-04   -1.5454    
  21  norm          .10000E-03    5.4071        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2459        .30905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .34438        .72923        .77707E-04   -1.5591    
  24  norm          7.8331        4.1196        .91701E-04   -1.5148    
  25  Prefactor     2.8356        123.94        .23549E-03   -1.5371    
  26  norm          .10000E-03    9.7679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.906        13.502        .11149E-03   -1.4989    
  28  norm          .10000E-03    5.0377        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.0663        2.0302        .72551E-04   -1.5358    
  30  Prefactor     321.12        333.27        .11338E-03   -1.2105    
  31  Prefactor     .10000E-03    82.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.8567        1.8100        .82931E-04   -1.5435    
  33  Prefactor     .10000E-03    9.3608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .76669        .22683        .26127E-03   -1.0132    
  35  Prefactor     1.0022        .22157        .23542E-03   -.92656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09802e-10
Minuit parameter uncertainties:
  1  7.15643e-06
  2  7.96296
  3  7.28629e-06
  4  51.6016
  5  8.50253e-07
  6  19.1151
  7  12.7704
  8  4.39798e-05
  9  1.8716e-05
  10  0.925035
  11  14.0016
  12  0.000800048
  13  1.81787e-06
  14  7.94756e-06
  15  2.02615e-06
  16  0.000318678
  17  6.36902e-07
  18  13.3399
  19  1.28355e-05
  20  0.720819
  21  1.16884e-06
  22  7.00285e-06
  23  0.729249
  24  4.11973
  25  37.5767
  26  3.01473e-06
  27  13.5055
  28  6.02367e-05
  29  2.0302
  30  335.292
  31  2.71084e-05
  32  1.81007
  33  1.8039e-06
  34  0.227105
  35  0.221773
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  2.221e+01  1.334e+01  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.002e+00  2.218e-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:  7.667e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.96
Ra Dec: 146.432 57.987
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.93e-05

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) = 4174.24742006
delta logL = 0.471739645384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4174.24263084
delta logL = 0.476528861785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.394       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4657       1.0000          .0000       5.0000    
     3 'Normalizat'    .74647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0103       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=   4174.243     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      280 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.397        12.923        .10557E-03   -.24298E-02
   2  alpha         2.4661        .62665        .84558E-02   -.37143E-03
   3  Normalizat    .74651        .21166        .26422E-03    .36552E-03
   4  Prefactor     1.0102        .21501        .23436E-03    .60496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3972
  alpha      = 2.46608
  Normalizat = 0.746509
  Prefactor  = 1.01017
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.243     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.397        12.217        .21115E-04   -1.4949    
   2  alpha         2.4661        .59282        .33823E-03   -.13569E-01
   3  Normalizat    .74651        .21157        .52843E-04   -1.0208    
   4  Prefactor     1.0102        .21507        .46872E-04   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14981e-09
Minuit parameter uncertainties:
  1  12.2187
  2  0.598524
  3  0.2118
  4  0.215256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482769': 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) = 4174.24262952
delta logL = 0.476530178031

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.440e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  2.466e+00  5.985e-01  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.010e+00  2.153e-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:  7.465e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.90
Ra Dec: 146.432 57.987
Photon Index (Free Index): 2.47 +/- 0.60
Photon Flux (Free Index): 4.89e-08 +/- 3.50e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.39e-05

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/482769/cmap_HighResolution_258249601_258508801_4FGL_J0945.7+5759_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='2.41e-05', photon_flux_error='1.73e-08', dlogl='4.77e-01', energy_flux='3.21e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-01 01:21:21.193811', photon_index_error2='0.60', photon_index2='2.47', ts='9.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.77', time_epoch_completed='1630484481.19', return_code='0', job_id='482769', GAL2='1.01', EG2='0.75', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='3.50e-08', ts2='10.90', photon_index='1.87' WHERE bin_id='73' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 482769: <4FGL_J0945.7+5759_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin73 146.432 57.9871 258249601 258508801 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 :                                   800.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

