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


Performing analysis on: 4FGL_J1044.6+8053_daily_bin974
RA = 161.164, Dec = 80.8941
tmin = 491788801, tmax = 492048001
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='88025', job_status='RUN', time_executed='2021-09-02 09:30:19.760789', time_epoch_executed='1630600219.76' WHERE source_name='4FGL J1044.6+8053' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88025/ft1_4FGL_J1044.6+8053_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88025/ft1_4FGL_J1044.6+8053_daily_bin974.fits outfile=/scratch/kocevski/88025/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin974.fits ra=161.164 dec=80.8941 rad=12.0 tmin=491788801.0 tmax=492048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.38
user 4.02
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.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/88025/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/88025/ltcube_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.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/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits
.....................!
real 15.41
user 14.51
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/88025/ltcube_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits outfile=/scratch/kocevski/88025/expmap_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.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/88025/ltcube_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits
.....................!
real 192.64
user 185.92
sys 6.13

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

Setting source of interest to:
4FGL J1044.6+8053 @ 161.164 80.8941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits outfile=/scratch/kocevski/88025/cmap_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.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=161.164 yref=80.8941 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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits outfile=/scratch/kocevski/88025/cmap_HighResolution_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.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=161.164 yref=80.8941 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88025/Model_4FGL_J1044.6+8053_daily_bin974.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/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits.....................!
real 28.36
user 26.27
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits', '/scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits', expMap='/scratch/kocevski/88025/expmap_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits', expCube='/scratch/kocevski/88025/ltcube_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88025/Model_4FGL_J1044.6+8053_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1044.6+8053'

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.944e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88025/ft1_filtered_4FGL_J1044.6+8053_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/88025/ft2_4FGL_J1044.6+8053_daily_bin974.fits
Exposure map: /scratch/kocevski/88025/expmap_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits
Exposure cube: /scratch/kocevski/88025/ltcube_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88025/Model_4FGL_J1044.6+8053_daily_bin974.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) = 1300.26514835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    32.429       1.0000         .10000E-03   10000.    
     3 'norm      '    44.145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6443       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0237       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74828E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1439       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.983       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.189       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .38850E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94641       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1300.233     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3606 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    141.90       -.82842E-04** at limit **
   2  norm          32.453        72.967        .31444E-04    .31350E-07
   3  norm          44.138        96.103       -.10923E-04   -.43475E-05
   4  Prefactor     .10000E-03    109.51        .23920E-04** at limit **
   5  Prefactor     .10000E-03    6.8179       -.17115E-06** at limit **
   6  Prefactor     .10000E-03    51.495       -.22717E-04** at limit **
   7  Prefactor     .10000E-03    22.575       -.94001E-05** at limit **
   8  Prefactor     .10000E-03    28.318        .73537E-05** at limit **
   9  Prefactor     .10000E-03    25.267        .58500E-05** at limit **
  10  Prefactor     .10000E-03    59.933        .34548E-05** at limit **
  11  Prefactor     .10000E-03    99.642        .43675E-04** at limit **
  12  norm          .10000E-03    10.882       -.36199E-06** at limit **
  13  Prefactor     .10000E-03    9.6320        .22786E-06** at limit **
  14  norm          5.6448        2.6913       -.41219E-08   -.16338E-03
  15  norm          4.0227        7.5204       -.22698E-05   -.82060E-04
  16  Prefactor     9.9194        26.024       -.43352E-05   -.33795E-03
  17  Prefactor     .10018E-03    37.729        .99567E-07** at limit **
  18  Prefactor     15.323        17.674       -.95770E-06    .81669E-05
  19  Prefactor     2.1448        80.293        .82078E-05    .27881E-05
  20  Prefactor     49.780        160.88       -.27267E-03    .12271E-04
  21  norm          .10000E-03    15.147       -.32744E-05** at limit **
  22  norm          .10000E-03    3.1363        .18856E-06** at limit **
  23  Prefactor     67.143        83.913       -.45894E-04    .41392E-05
  24  Prefactor     .10000E-03    15.148        .21788E-05** at limit **
  25  Prefactor     .10000E-03    15.174        .17859E-05** at limit **
  26  Prefactor     .10000E-03    110.75        .21265E-04** at limit **
  27  Prefactor     .10000E-03    286.13       -.61531E-04** at limit **
  28  Normalizat    .94586        .44890        .27588E-04   -.78398E-04
  29  Prefactor     1.1146        .29772       -.22623E-05    .27931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 32.4534
  norm       = 44.1385
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.64479
  norm       = 4.02271
  Prefactor  = 9.91945
  Prefactor  = 0.000100178
  Prefactor  = 15.3225
  Prefactor  = 2.14485
  Prefactor  = 49.7804
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 67.143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.945861
  Prefactor  = 1.11458
 **********
 **   18 **HESSE 
 **********

 FCN=   1300.233     FROM HESSE     STATUS=OK           541 CALLS     4147 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          32.453        72.950        .70364E-04   -1.4568    
   3  norm          44.138        96.202        .60340E-04   -1.4378    
   4  Prefactor     .10000E-03    109.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8205        .91973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    51.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.609        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.292        .17708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    59.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    99.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.894        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6569        .10922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6448        2.6878        .38164E-04   -1.5233    
  15  norm          4.0227        6.1811        .10456E-03   -1.5307    
  16  Prefactor     9.9194        25.604        .63611E-03   -1.5078    
  17  Prefactor     .10018E-03    62.680        .34423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.323        17.644        .10232E-03   -1.4925    
  19  Prefactor     2.1448        77.461        .28147E-03   -1.5415    
  20  Prefactor     49.780        161.14        .28361E-03   -1.4296    
  21  norm          .10000E-03    15.379        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1366        .62369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     67.143        83.909        .24483E-03   -1.4067    
  24  Prefactor     .10000E-03    15.155        .13711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.176        .13723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    110.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    287.11        .21277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94586        .50325        .31654E-03   -.94867    
  29  Prefactor     1.1146        .33498        .20302E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22056e-09
Minuit parameter uncertainties:
  1  0.000352911
  2  73.1511
  3  96.543
  4  0.000503551
  5  2.19578e-05
  6  0.000155578
  7  0.000128024
  8  7.72171e-05
  9  6.74694e-05
  10  5.94548e-05
  11  9.23499e-05
  12  2.68212e-05
  13  1.60944e-05
  14  2.68786
  15  6.18204
  16  25.6323
  17  0.00668864
  18  17.6503
  19  25.8148
  20  162.578
  21  4.21643e-05
  22  1.72975e-05
  23  84.0577
  24  2.74873e-05
  25  1.25273e-05
  26  0.000173893
  27  0.0010355
  28  0.505793
  29  0.335615
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.000e-04  2.682e-05  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.115e+00  3.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.459e-01  5.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 161.164 80.894
Photon Flux Upper Limit: 2.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88025/likelihoodResults_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1300.23315309
delta logL = -0.000435855340584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1300.23271736
delta logL = -1.32168452183e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8058       1.0000          .0000       5.0000    
     3 'Normalizat'    .94616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   1300.233     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      233 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    749.65        .11697E-01** at limit **
   2  alpha         2.0019        3.1998        .16619        .28150E-07
   3  Normalizat    .94588        .91327E-01    .31653E-03    .21361E-04
   4  Prefactor     1.1146        .63433E-01    .20302E-03    .36437E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00185
  Normalizat = 0.94588
  Prefactor  = 1.11456
 **********
 **   18 **HESSE 
 **********

 FCN=   1300.233     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.308        .13286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0019        3.4606        .66476E-02   -.20060    
   3  Normalizat    .94588        .47688        .12661E-04   -.94866    
   4  Prefactor     1.1146        .33210        .40605E-04   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71959e-11
Minuit parameter uncertainties:
  1  4.41091e-05
  2  556.88
  3  0.479042
  4  0.332721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88025': 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) = 1300.23271614
delta logL = 1.08632775664e-06

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.000e-04  4.411e-05  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.002e+00  5.569e+02  0.000e+00  5.000e+00 ( 1.000e+00)
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.115e+00  3.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.459e-01  4.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 161.164 80.894

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/88025/cmap_HighResolution_491788801_492048001_4FGL_J1044.6+8053_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-05', job_status='DONE', photon_flux_upper_limit='2.59e-07', time_completed='2021-09-02 09:38:20.475683', job_id='88025', GAL2='1.11', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630600700.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='974' AND source_name='4FGL J1044.6+8053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:38:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 88025: <4FGL_J1044.6+8053_daily_bin974> in cluster <slac> Done

Job <4FGL_J1044.6+8053_daily_bin974> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 09:26:34 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:30:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:30:03 2021
Terminated at Thu Sep  2 09:38:21 2021
Results reported at Thu Sep  2 09:38:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_daily_bin974 161.164 80.8941 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1044.6+8053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   476.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            707 sec.

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

