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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin841
RA = 166.119, Dec = 38.207
tmin = 457315201, tmax = 457574401
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='495398', job_status='RUN', time_executed='2021-09-03 06:52:00.879268', time_epoch_executed='1630677120.88' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495398/ft1_4FGL_J1104.4+3812_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495398/ft1_4FGL_J1104.4+3812_daily_bin841.fits outfile=/scratch/kocevski/495398/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin841.fits ra=166.119 dec=38.207 rad=12.0 tmin=457315201.0 tmax=457574401.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.02
user 4.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.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/495398/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin841.fits evtable="EVENTS" outfile="/scratch/kocevski/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.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.59
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits" evtable="EVENTS" scfile=/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits sctable="SC_DATA" outfile=/scratch/kocevski/495398/ltcube_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.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/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits
.....................!
real 15.62
user 15.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/495398/ltcube_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits outfile=/scratch/kocevski/495398/expmap_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.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/495398/ltcube_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits
.....................!
real 192.41
user 187.40
sys 4.39

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/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits scfile=/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits outfile=/scratch/kocevski/495398/cmap_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits scfile=/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits outfile=/scratch/kocevski/495398/cmap_HighResolution_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits', '/scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits', expMap='/scratch/kocevski/495398/expmap_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits', expCube='/scratch/kocevski/495398/ltcube_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/495398/Model_4FGL_J1104.4+3812_daily_bin841.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/495398/ft1_filtered_4FGL_J1104.4+3812_daily_bin841.fits
Spacecraft file(s): /scratch/kocevski/495398/ft2_4FGL_J1104.4+3812_daily_bin841.fits
Exposure map: /scratch/kocevski/495398/expmap_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits
Exposure cube: /scratch/kocevski/495398/ltcube_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/495398/Model_4FGL_J1104.4+3812_daily_bin841.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) = 6398.87553498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5017       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59008E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.830       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96736       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.159       1.0000         .10000E-03   10000.    
    27 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.617       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96158       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94803       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=   6398.732     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     3793 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1494       -.15297E-07** at limit **
   2  Prefactor     .10000E-03    10.914       -.15287E-06** at limit **
   3  Prefactor     2.5022        3.1136        .37010E-06    .18638E-03
   4  norm          .10000E-03    4.3216        .22293E-07** at limit **
   5  Prefactor     .10000E-03    49.171       -.95524E-06** at limit **
   6  Prefactor     .10050E-03    34.645        .67888E-05** at limit **
   7  Prefactor     .11558        1.6083       -.32667E-06    .60161E-04
   8  Prefactor     2.9823        3.2088        .13722E-06   -.57941E-03
   9  Prefactor     .10000E-03    11.520        .46080E-06** at limit **
  10  Prefactor     5.0907        29.953        .12219E-05    .32830E-04
  11  Prefactor     .10001E-03    180.72       -.16003E-05** at limit **
  12  Prefactor     .10006E-03    10.008        .76334E-06** at limit **
  13  norm          1.9344        .35711       -.59735E-08   -.13679E-02
  14  Prefactor     1.8111        2.8122        .10631E-05    .10229E-02
  15  Prefactor     8.5168        8.5281       -.51158E-07   -.59327E-04
  16  Prefactor     .10000E-03    5.7529        .35997E-08** at limit **
  17  Prefactor     .10001E-03    55.798       -.16725E-05** at limit **
  18  norm          13.835        11.226        .23981E-09   -.47907E-04
  19  norm          .10000E-03    20.168       -.81116E-06** at limit **
  20  Prefactor     1.0881        1.6409        .76710E-07    .23984E-03
  21  Prefactor     .10000E-03    14.202       -.61581E-06** at limit **
  22  Prefactor     .10000E-03    20.186       -.97380E-06** at limit **
  23  norm          .96845        2.1524        .10689E-05    .10617E-02
  24  Prefactor     .10000E-03    11.684       -.55072E-06** at limit **
  25  Prefactor     .10000E-03    1.8173       -.35456E-07** at limit **
  26  Prefactor     25.132        32.926       -.48299E-06   -.62649E-04
  27  norm          .10000E-03    .52759       -.54575E-07** at limit **
  28  norm          11.616        8.3471        .11306E-06    .58280E-04
  29  Prefactor     .10000E-03    16.067        .11113E-05** at limit **
  30  Prefactor     .10000E-03    23.376        .12601E-05** at limit **
  31  Normalizat    .96148        .15111       -.42221E-06   -.27529E-03
  32  Prefactor     .94808        .18203       -.53591E-06   -.24033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.50219
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100503
  Prefactor  = 0.115583
  Prefactor  = 2.98226
  Prefactor  = 0.0001
  Prefactor  = 5.09073
  Prefactor  = 0.000100006
  Prefactor  = 0.000100063
  norm       = 1.93441
  Prefactor  = 1.81108
  Prefactor  = 8.51683
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 13.8349
  norm       = 0.000100002
  Prefactor  = 1.08806
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.968454
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.1324
  norm       = 0.0001
  norm       = 11.6157
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Normalizat = 0.961479
  Prefactor  = 0.948081
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.732     FROM HESSE     STATUS=OK           657 CALLS     4450 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1571        .83682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5022        3.1000        .15107E-03   -1.5392    
   4  norm          .10000E-03    4.3742        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10050E-03    72.882        .52691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11558        11.268        .19044E-02   -1.5640    
   8  Prefactor     2.9823        3.0936        .13845E-03   -1.5363    
   9  Prefactor     .10000E-03    11.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0907        29.997        .17801E-03   -1.5257    
  11  Prefactor     .10001E-03    182.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10006E-03    47.808        .42162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9344        .35766        .19688E-04   -1.5430    
  14  Prefactor     1.8111        2.7447        .15587E-03   -1.5439    
  15  Prefactor     8.5168        8.5327        .13736E-03   -1.5124    
  16  Prefactor     .10000E-03    5.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    56.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.835        11.215        .10770E-03   -1.4964    
  19  norm          .10000E-03    20.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0881        1.5674        .11708E-03   -1.5499    
  21  Prefactor     .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96845        2.1469        .16144E-03   -1.5511    
  24  Prefactor     .10000E-03    11.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8322        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.132        31.778        .79864E-04   -1.4705    
  27  norm          .10000E-03    1.3051        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.616        8.3393        .11754E-03   -1.5026    
  29  Prefactor     .10000E-03    16.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .96148        .17553        .21934E-03   -.94332    
  32  Prefactor     .94808        .21244        .27305E-03   -.94481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04099e-08
Minuit parameter uncertainties:
  1  2.09282e-06
  2  5.30543e-05
  3  3.10017
  4  2.09736e-06
  5  0.000688212
  6  0.0121273
  7  2.28189
  8  3.09376
  9  0.00014976
  10  24.7333
  11  0.00216089
  12  0.00346903
  13  0.357659
  14  2.74485
  15  8.53391
  16  2.30347e-06
  17  0.00125737
  18  11.2164
  19  0.000365961
  20  1.56749
  21  0.000218533
  22  0.00039288
  23  2.14708
  24  0.000164126
  25  4.48002e-06
  26  31.7995
  27  1.39151e-06
  28  8.34013
  29  0.000432615
  30  0.000603318
  31  0.175632
  32  0.212629
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.934e+00  3.577e-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:  9.481e-01  2.126e-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:  9.615e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 163.96
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 3.71e-08
Energy Flux (Fixed Index): 2.72e-04 +/- 5.02e-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) = 6398.73058258
delta logL = 0.00156305781093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6398.72950061
delta logL = 0.00264502800474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9392       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7258       1.0000          .0000       5.0000    
     3 'Normalizat'    .96291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94742       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=   6398.730     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      188 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9392        .42417        .44734E-02    .91604E-03
   2  alpha         1.7258        .15420        .95592E-01    .25848E-04
   3  Normalizat    .96291        .14677        .45700E-01    .17547E-04
   4  Prefactor     .94742        .18108        .45607E-01    .88564E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93916
  alpha      = 1.72581
  Normalizat = 0.962906
  Prefactor  = 0.947417
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.730     FROM HESSE     STATUS=OK            31 CALLS      219 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9392        .36164        .19754E-04   -1.5429    
   2  alpha         1.7258        .13324        .41664E-03   -.31485    
   3  Normalizat    .96291        .17106        .21922E-03   -.94284    
   4  Prefactor     .94742        .21109        .27316E-03   -.94503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67038e-12
Minuit parameter uncertainties:
  1  0.361643
  2  0.13331
  3  0.171161
  4  0.211271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495398': 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) = 6398.72950061
delta logL = 0.00264502865321

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.939e+00  3.616e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.726e+00  1.333e-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:  9.474e-01  2.113e-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:  9.629e-01  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 164.02
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.73 +/- 0.13
Photon Flux (Free Index): 1.99e-07 +/- 4.43e-08
Energy Flux (Free Index): 2.77e-04 +/- 9.00e-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/495398/cmap_HighResolution_457315201_457574401_4FGL_J1104.4+3812_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='2.77e-04', photon_flux_error='3.71e-08', dlogl='2.65e-03', energy_flux='2.72e-04', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-03 07:06:26.447970', photon_index_error2='0.13', photon_index2='1.73', ts='163.96', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.00e-05', EG='0.96', time_epoch_completed='1630677986.45', return_code='0', job_id='495398', GAL2='0.95', EG2='0.96', return_code2='0', energy_flux_error='5.02e-05', photon_flux_error2='4.43e-08', ts2='164.02', photon_index='1.74' WHERE bin_id='841' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 495398: <4FGL_J1104.4+3812_daily_bin841> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin841> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:23 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:51:48 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:51:48 2021
Terminated at Fri Sep  3 07:06:27 2021
Results reported at Fri Sep  3 07:06:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin841 166.119 38.207 457315201 457574401 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 :                                   861.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            904 sec.

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

