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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1437
RA = 153.449, Dec = 34.7384
tmin = 611798401, tmax = 612057601
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='739955', job_status='RUN', time_executed='2021-09-01 14:13:55.440050', time_epoch_executed='1630530835.44' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739955/ft1_4FGL_J1013.7+3444_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739955/ft1_4FGL_J1013.7+3444_daily_bin1437.fits outfile=/scratch/kocevski/739955/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1437.fits ra=153.449 dec=34.7384 rad=12.0 tmin=611798401.0 tmax=612057601.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 3.51
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.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/739955/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.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.54
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/739955/ltcube_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.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/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits
.....................!
real 14.19
user 13.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/739955/ltcube_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits outfile=/scratch/kocevski/739955/expmap_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.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/739955/ltcube_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits
.....................!
real 191.79
user 186.49
sys 4.88

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

Setting source of interest to:
4FGL J1013.7+3444 @ 153.449 34.7384

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits outfile=/scratch/kocevski/739955/cmap_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.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=153.449 yref=34.7384 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits outfile=/scratch/kocevski/739955/cmap_HighResolution_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.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=153.449 yref=34.7384 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739955/Model_4FGL_J1013.7+3444_daily_bin1437.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/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits.....................!
real 47.06
user 45.60
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits', '/scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits', expMap='/scratch/kocevski/739955/expmap_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits', expCube='/scratch/kocevski/739955/ltcube_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739955/Model_4FGL_J1013.7+3444_daily_bin1437.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1013.7+3444'

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/739955/ft1_filtered_4FGL_J1013.7+3444_daily_bin1437.fits
Spacecraft file(s): /scratch/kocevski/739955/ft2_4FGL_J1013.7+3444_daily_bin1437.fits
Exposure map: /scratch/kocevski/739955/expmap_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits
Exposure cube: /scratch/kocevski/739955/ltcube_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739955/Model_4FGL_J1013.7+3444_daily_bin1437.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) = 5453.3771395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5879       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    33.076       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72156E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7859       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0023       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5085       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76668       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5453.314     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3259 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2246        7.4534       -.38215E-05   -.99952E-03
   2  Prefactor     4.5883        2.8688        .70557E-07    .11706E-03
   3  norm          .10000E-03    3.7631       -.15811E-07** at limit **
   4  Prefactor     30.524        30.307       -.19693E-04    .29014E-05
   5  Prefactor     .10000E-03    6.3495        .27741E-06** at limit **
   6  Prefactor     11.672        21.904       -.12163E-05    .32556E-05
   7  Prefactor     5.3885        6.9736        .80020E-06   -.19409E-03
   8  Prefactor     18.459        10.321       -.33279E-06    .18961E-04
   9  Prefactor     .10000E-03    1.5295        .12420E-06** at limit **
  10  norm          33.075        10.668       -.25189E-06    .61611E-05
  11  Prefactor     6.6624        3.5505       -.25997E-06   -.20490E-04
  12  Prefactor     .10000E-03    42.341       -.34713E-05** at limit **
  13  Prefactor     .10000E-03    1.9000       -.58636E-07** at limit **
  14  norm          .10000E-03    5.5680       -.16932E-06** at limit **
  15  Prefactor     .10000E-03    24.247        .15053E-06** at limit **
  16  Prefactor     45.049        34.212        .10457E-04    .89805E-05
  17  Prefactor     .71535E-01    1.5772       -.33495E-06   -.64492E-03
  18  Prefactor     5.9935        5.0878       -.13370E-05    .43542E-05
  19  Prefactor     .10000E-03    6.4243       -.13366E-06** at limit **
  20  Prefactor     .10000E-03    6.6303       -.27874E-06** at limit **
  21  Prefactor     .10000E-03    70.888        .89824E-05** at limit **
  22  Prefactor     6.7855        9.5683       -.47008E-06   -.64459E-04
  23  norm          1.0023        .28874       -.69694E-08    .26639E-03
  24  Prefactor     5.5062        12.833       -.14217E-05   -.85688E-04
  25  Prefactor     .10000E-03    4.8587       -.56164E-07** at limit **
  26  Normalizat    .76663        .16010        .23625E-05    .67749E-04
  27  Prefactor     .91815        .18996        .68885E-06    .13122E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22461
  Prefactor  = 4.58832
  norm       = 0.0001
  Prefactor  = 30.5236
  Prefactor  = 0.0001
  Prefactor  = 11.6716
  Prefactor  = 5.3885
  Prefactor  = 18.4592
  Prefactor  = 0.0001
  norm       = 33.0747
  Prefactor  = 6.66236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0494
  Prefactor  = 0.0715346
  Prefactor  = 5.99354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78549
  norm       = 1.0023
  Prefactor  = 5.50619
  Prefactor  = 0.0001
  Normalizat = 0.766631
  Prefactor  = 0.918155
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.314     FROM HESSE     STATUS=OK           494 CALLS     3753 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2246        7.8553        .39134E-03   -1.5487    
   2  Prefactor     4.5883        2.8556        .94476E-04   -1.5280    
   3  norm          .10000E-03    3.7635        .13991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.524        30.028        .72482E-04   -1.4602    
   5  Prefactor     .10000E-03    6.3534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.672        21.948        .11727E-03   -1.5025    
   7  Prefactor     5.3885        6.9506        .17313E-03   -1.5244    
   8  Prefactor     18.459        10.332        .93221E-04   -1.4848    
   9  Prefactor     .10000E-03    1.5848        .17804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          33.075        10.668        .69674E-04   -1.4557    
  11  Prefactor     6.6624        3.5525        .96058E-04   -1.5192    
  12  Prefactor     .10000E-03    42.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9315        .99110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.6145        .17013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.049        34.205        .59745E-04   -1.4365    
  17  Prefactor     .71535E-01    13.337        .17884E-02   -1.5655    
  18  Prefactor     5.9935        5.1088        .13163E-03   -1.5218    
  19  Prefactor     .10000E-03    6.4249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    70.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7855        9.5679        .15403E-03   -1.5187    
  23  norm          1.0023        .28956        .20283E-04   -1.5508    
  24  Prefactor     5.5062        12.859        .17119E-03   -1.5239    
  25  Prefactor     .10000E-03    4.8595        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76663        .18676        .22924E-03   -1.0132    
  27  Prefactor     .91815        .22127        .25970E-03   -.95510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25036e-09
Minuit parameter uncertainties:
  1  6.20406
  2  2.85568
  3  9.08598e-08
  4  30.0425
  5  3.18485e-06
  6  21.9633
  7  6.95162
  8  10.3331
  9  1.64579e-05
  10  10.6686
  11  3.55259
  12  0.000220891
  13  7.99426e-06
  14  5.00161e-05
  15  3.08508e-05
  16  34.2198
  17  1.95261
  18  5.10913
  19  1.02933e-05
  20  6.72153e-06
  21  6.62765e-05
  22  9.57008
  23  0.289558
  24  12.8656
  25  7.42074e-07
  26  0.186918
  27  0.221489
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.662e+00  3.553e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.182e-01  2.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.666e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.76
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 8.97e-06

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) = 5453.29721029
delta logL = 0.0166221846039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5453.28545712
delta logL = 0.0283753593594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0299       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7445       1.0000          .0000       10.000    
     3 'Normalizat'    .75638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5453.285     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      232 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0301        4.4842        .87786E-04    .56334E-04
   2  Index         2.7445        .68410        .57477E-02    .33110E-03
   3  Normalizat    .75638        .18471        .23059E-03    .54923E-04
   4  Prefactor     .92656        .22247        .25865E-03    .78107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03008
  Index      = 2.74451
  Normalizat = 0.756376
  Prefactor  = 0.926558
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.285     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0301        4.2732        .35115E-05   -1.5217    
   2  Index         2.7445        .65151        .11495E-02   -.46800    
   3  Normalizat    .75638        .18460        .92236E-05   -1.0171    
   4  Prefactor     .92656        .22249        .10346E-04   -.95219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02624e-11
Minuit parameter uncertainties:
  1  4.27345
  2  0.653846
  3  0.18475
  4  0.22271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739955': 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) = 5453.28545712
delta logL = 0.0283753603153

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  6.030e+00  4.273e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.745e+00  6.538e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.266e-01  2.227e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.564e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.82
Ra Dec: 153.449 34.738
Photon Index (Free Index): 2.74 +/- 0.65
Photon Flux (Free Index): 7.07e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.65e-05 +/- 8.48e-06

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/739955/cmap_HighResolution_611798401_612057601_4FGL_J1013.7+3444_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='1.65e-05', photon_flux_error='3.39e-08', dlogl='2.84e-02', energy_flux='1.68e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-01 14:25:04.228834', photon_index_error2='0.65', photon_index2='2.74', ts='8.76', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='8.48e-06', EG='0.77', time_epoch_completed='1630531504.23', return_code='0', job_id='739955', GAL2='0.93', EG2='0.76', return_code2='0', energy_flux_error='8.97e-06', photon_flux_error2='4.58e-08', ts2='8.82', photon_index='2.59' WHERE bin_id='1437' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 739955: <4FGL_J1013.7+3444_daily_bin1437> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:10:54 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:13:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 14:13:35 2021
Terminated at Wed Sep  1 14:25:04 2021
Results reported at Wed Sep  1 14:25:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1437 153.449 34.7384 611798401 612057601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            850 sec.

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

