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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin726
RA = 166.119, Dec = 38.207
tmin = 427507201, tmax = 427766401
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='494044', job_status='RUN', time_executed='2021-09-03 06:48:57.957587', time_epoch_executed='1630676937.96' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494044/ft1_4FGL_J1104.4+3812_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494044/ft1_4FGL_J1104.4+3812_daily_bin726.fits outfile=/scratch/kocevski/494044/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin726.fits ra=166.119 dec=38.207 rad=12.0 tmin=427507201.0 tmax=427766401.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 5.45
user 5.20
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.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/494044/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/494044/ltcube_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.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/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits
.....................!
real 14.88
user 14.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/494044/ltcube_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits outfile=/scratch/kocevski/494044/expmap_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.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/494044/ltcube_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits
.....................!
real 190.87
user 185.63
sys 4.90

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits outfile=/scratch/kocevski/494044/cmap_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.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=166.119 yref=38.207 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits outfile=/scratch/kocevski/494044/cmap_HighResolution_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.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=166.119 yref=38.207 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494044/Model_4FGL_J1104.4+3812_daily_bin726.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/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits.....................!
real 49.96
user 48.67
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits', '/scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits', expMap='/scratch/kocevski/494044/expmap_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits', expCube='/scratch/kocevski/494044/ltcube_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494044/Model_4FGL_J1104.4+3812_daily_bin726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.4+3812'

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/494044/ft1_filtered_4FGL_J1104.4+3812_daily_bin726.fits
Spacecraft file(s): /scratch/kocevski/494044/ft2_4FGL_J1104.4+3812_daily_bin726.fits
Exposure map: /scratch/kocevski/494044/expmap_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits
Exposure cube: /scratch/kocevski/494044/ltcube_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494044/Model_4FGL_J1104.4+3812_daily_bin726.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) = 5503.28178229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8254       1.0000         .10000E-03   10000.    
     4 'norm      '    .35014E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6217       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0442       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9206       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11991E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9874       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3105       1.0000         .10000E-03   10000.    
    28 'norm      '    12.629       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.227       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2698       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5503.276     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4401 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.273       -.70906E-05** at limit **
   2  Prefactor     1.5238        198.39       -.78701E-05   -.68001E-04
   3  Prefactor     2.8265        4.2079       -.12651E-05   -.47421E-03
   4  norm          .10004E-03    484.25       -.35487E-04** at limit **
   5  Prefactor     .10000E-03    21.411        .91038E-06** at limit **
   6  Prefactor     .10000E-03    38.582        .18978E-05** at limit **
   7  Prefactor     11.899        5.8732        .66245E-06    .78322E-03
   8  Prefactor     1.2210        8.3660        .12791E-05    .27013E-03
   9  Prefactor     6.6169        38.839        .24501E-05    .85826E-04
  10  Prefactor     44.268        32.722        .10458E-06   -.76703E-04
  11  Prefactor     34.415        77.394        .16625E-05    .73573E-05
  12  Prefactor     4.0459        8.7895       -.59543E-06   -.14497E-03
  13  norm          1.9206        .41392       -.80453E-07   -.61725E-02
  14  Prefactor     .10000E-03    3.6262       -.38497E-06** at limit **
  15  Prefactor     .10001E-03    42.187       -.24043E-05** at limit **
  16  Prefactor     .10000E-03    8.9690       -.45466E-06** at limit **
  17  Prefactor     .10000E-03    38.779       -.79017E-06** at limit **
  18  norm          .10000E-03    7.6640       -.27657E-06** at limit **
  19  norm          .10000E-03    67.285        .67704E-06** at limit **
  20  Prefactor     .10000E-03    .74708       -.10039E-06** at limit **
  21  Prefactor     .10000E-03    14.457       -.52024E-08** at limit **
  22  Prefactor     .10000E-03    8.6450       -.89967E-07** at limit **
  23  norm          2.9874        2.2642       -.94439E-07   -.39431E-03
  24  Prefactor     .10000E-03    8.9636       -.11924E-06** at limit **
  25  Prefactor     .10000E-03    5.2207       -.38581E-06** at limit **
  26  Prefactor     14.879        47.489        .13911E-05   -.78516E-05
  27  norm          2.3106        1.5998       -.60922E-07   -.21688E-03
  28  norm          12.628        9.4166       -.73122E-07   -.59614E-04
  29  Prefactor     .10000E-03    19.682       -.76480E-06** at limit **
  30  Prefactor     18.204        55.254        .15194E-05    .33872E-05
  31  Normalizat    1.2698        .23130       -.38925E-05    .20383E-04
  32  Prefactor     .84710        .26241        .41923E-05   -.25752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 1.5238
  Prefactor  = 2.82649
  norm       = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.8993
  Prefactor  = 1.22096
  Prefactor  = 6.61691
  Prefactor  = 44.2676
  Prefactor  = 34.4153
  Prefactor  = 4.04595
  norm       = 1.92062
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.879
  norm       = 2.3106
  norm       = 12.6285
  Prefactor  = 0.0001
  Prefactor  = 18.2038
  Normalizat = 1.26975
  Prefactor  = 0.847104
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.276     FROM HESSE     STATUS=OK           667 CALLS     5068 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.369        .21586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5238        208.06        .32982E-03   -1.5461    
   3  Prefactor     2.8265        4.1459        .17427E-03   -1.5372    
   4  norm          .10004E-03    17.123        .64018E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.899        5.9752        .11616E-03   -1.5018    
   8  Prefactor     1.2210        8.1461        .38354E-03   -1.5487    
   9  Prefactor     6.6169        38.718        .15594E-03   -1.5193    
  10  Prefactor     44.268        32.720        .60257E-04   -1.4376    
  11  Prefactor     34.415        77.402        .68303E-04   -1.4534    
  12  Prefactor     4.0459        8.7696        .20051E-03   -1.5306    
  13  norm          1.9206        .41664        .21507E-04   -1.5431    
  14  Prefactor     .10000E-03    3.7895        .27547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    42.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.6872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    67.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .75057        .62603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.6639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9874        2.2565        .93266E-04   -1.5362    
  24  Prefactor     .10000E-03    9.0064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.3424        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.879        47.353        .10378E-03   -1.4936    
  27  norm          2.3106        1.5919        .62961E-04   -1.5404    
  28  norm          12.628        9.4161        .11272E-03   -1.4997    
  29  Prefactor     .10000E-03    19.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     18.204        55.269        .93812E-04   -1.4854    
  31  Normalizat    1.2698        .23407        .23012E-03   -.84474    
  32  Prefactor     .84710        .26734        .32681E-03   -.98015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70381e-09
Minuit parameter uncertainties:
  1  0.000306734
  2  35.7376
  3  4.14631
  4  0.00164403
  5  9.09106e-05
  6  0.000630455
  7  5.97547
  8  6.30846
  9  32.0434
  10  32.7334
  11  77.6296
  12  8.77241
  13  0.416642
  14  5.95983e-05
  15  0.00122265
  16  7.37102e-05
  17  0.000141642
  18  6.07696e-05
  19  6.54153e-05
  20  5.15493e-06
  21  7.32053e-06
  22  2.75014e-05
  23  2.25653
  24  3.49411e-05
  25  6.30865e-05
  26  47.4733
  27  1.59192
  28  9.4172
  29  0.000111722
  30  55.4251
  31  0.23426
  32  0.267756
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.921e+00  4.166e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.471e-01  2.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.270e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.96
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 4.33e-08
Energy Flux (Fixed Index): 2.70e-04 +/- 5.85e-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) = 5503.26273888
delta logL = 0.0128916227231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5503.26204784
delta logL = 0.0135826590886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9084       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5503.262     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9084        .53515        .48251E-02   -.57525E-04
   2  alpha         1.7621        .20185        .10632        .25392E-04
   3  Normalizat    1.2652        .18785        .52112E-01    .26941E-05
   4  Prefactor     .84948        .22222        .73739E-01    .17102E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90843
  alpha      = 1.76211
  Normalizat = 1.26523
  Prefactor  = 0.849483
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.262     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .52E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9084        .41984        .21312E-04   -1.5432    
   2  alpha         1.7621        .16159        .46093E-03   -.29962    
   3  Normalizat    1.2652        .22461        .23040E-03   -.84610    
   4  Prefactor     .84948        .26527        .32632E-03   -.97929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19313e-17
Minuit parameter uncertainties:
  1  0.419843
  2  0.161718
  3  0.224782
  4  0.265674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494044': 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) = 5503.26204784
delta logL = 0.013582663365

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.908e+00  4.198e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.762e+00  1.617e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.495e-01  2.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.265e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.60
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.76 +/- 0.16
Photon Flux (Free Index): 2.05e-07 +/- 5.45e-08
Energy Flux (Free Index): 2.56e-04 +/- 9.68e-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/494044/cmap_HighResolution_427507201_427766401_4FGL_J1104.4+3812_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='2.56e-04', photon_flux_error='4.33e-08', dlogl='1.36e-02', energy_flux='2.70e-04', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-03 07:02:46.668569', photon_index_error2='0.16', photon_index2='1.76', ts='89.96', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='9.68e-05', EG='1.27', time_epoch_completed='1630677766.67', return_code='0', job_id='494044', GAL2='0.85', EG2='1.27', return_code2='0', energy_flux_error='5.85e-05', photon_flux_error2='5.45e-08', ts2='89.60', photon_index='1.74' WHERE bin_id='726' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:02:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 494044: <4FGL_J1104.4+3812_daily_bin726> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:46:22 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:46:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:46:34 2021
Terminated at Fri Sep  3 07:02:47 2021
Results reported at Fri Sep  3 07:02:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin726 166.119 38.207 427507201 427766401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            985 sec.

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

