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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1384
RA = 153.449, Dec = 34.7384
tmin = 598060801, tmax = 598320001
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='738374', job_status='RUN', time_executed='2021-09-01 14:08:02.882656', time_epoch_executed='1630530482.88' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738374

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738374/ft1_4FGL_J1013.7+3444_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738374/ft1_4FGL_J1013.7+3444_daily_bin1384.fits outfile=/scratch/kocevski/738374/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1384.fits ra=153.449 dec=34.7384 rad=12.0 tmin=598060801.0 tmax=598320001.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.93
user 4.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.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/738374/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.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.58
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/738374/ltcube_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.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/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits
.....................!
real 14.47
user 14.09
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/738374/ltcube_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits outfile=/scratch/kocevski/738374/expmap_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.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/738374/ltcube_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits
.....................!
real 190.45
user 185.91
sys 3.92

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/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits outfile=/scratch/kocevski/738374/cmap_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits outfile=/scratch/kocevski/738374/cmap_HighResolution_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738374/Model_4FGL_J1013.7+3444_daily_bin1384.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/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits.....................!
real 47.62
user 46.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits', '/scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits', expMap='/scratch/kocevski/738374/expmap_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits', expCube='/scratch/kocevski/738374/ltcube_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738374/Model_4FGL_J1013.7+3444_daily_bin1384.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/738374/ft1_filtered_4FGL_J1013.7+3444_daily_bin1384.fits
Spacecraft file(s): /scratch/kocevski/738374/ft2_4FGL_J1013.7+3444_daily_bin1384.fits
Exposure map: /scratch/kocevski/738374/expmap_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits
Exposure cube: /scratch/kocevski/738374/ltcube_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738374/Model_4FGL_J1013.7+3444_daily_bin1384.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) = 5642.34833233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .21478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16671       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0464       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11291E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69531E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.373       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86438       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0800       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=   5642.276     FROM MIGRAD    STATUS=CONVERGED   1213 CALLS     4015 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81497        12.585        .34558E-02   -.15154E-03
   2  Prefactor     .10000E-03    3.3605        .26332E-03** at limit **
   3  norm          .21735        14.513        .85087E-01    .72465E-04
   4  Prefactor     .10000E-03    9.2083        .18142E-02** at limit **
   5  Prefactor     .10000E-03    39.669        .18142E-02** at limit **
   6  Prefactor     .10000E-03    17.184        .18142E-02** at limit **
   7  Prefactor     .92972        6.6420        .36231E-03    .14685E-04
   8  Prefactor     .35709        17.337        .33323E-02    .29160E-03
   9  Prefactor     .16653        4.7943        .14709E-02    .26200E-02
  10  norm          5.4717        6.5819        .85904E-03    .63908E-04
  11  Prefactor     1.6206        2.8086        .15860E-03   -.67021E-04
  12  Prefactor     .10000E-03    6.9813        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.5287        .20698E-02** at limit **
  14  norm          7.5318        8.4546        .14617E-03    .69220E-04
  15  Prefactor     10.368        51.111        .12452E-03   -.89476E-05
  16  Prefactor     .10000E-03    15.470        .18142E-02** at limit **
  17  Prefactor     4.0474        4.7200        .16022E-03    .24530E-03
  18  Prefactor     2.4755        3.7275        .17162E-03    .23994E-03
  19  Prefactor     .10020E-03    24.619        .11355    ** at limit **
  20  Prefactor     .10000E-03    8.9576        .18142E-02** at limit **
  21  Prefactor     .12957E-03    145.26        .26853    ** at limit **
  22  Prefactor     .10000E-03    3.0220        .12750E-02** at limit **
  23  norm          1.3709        .35719        .21623E-04    .13144E-03
  24  Prefactor     22.383        16.759        .84682E-04   -.12888E-04
  25  Prefactor     .10000E-03    8.7326        .18142E-02** at limit **
  26  Normalizat    .86436        .18752        .22689E-03    .10748E-03
  27  Prefactor     1.0800        .22497        .25346E-03   -.51672E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.814966
  Prefactor  = 0.0001
  norm       = 0.217347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.929718
  Prefactor  = 0.357089
  Prefactor  = 0.166527
  norm       = 5.47172
  Prefactor  = 1.62058
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.53176
  Prefactor  = 10.368
  Prefactor  = 0.0001
  Prefactor  = 4.04745
  Prefactor  = 2.47555
  Prefactor  = 0.000100203
  Prefactor  = 0.0001
  Prefactor  = 0.00012957
  Prefactor  = 0.0001
  norm       = 1.37087
  Prefactor  = 22.3831
  Prefactor  = 0.0001
  Normalizat = 0.864357
  Prefactor  = 1.08005
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.276     FROM HESSE     STATUS=OK           498 CALLS     4513 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81497        12.568        .13823E-03   -1.5527    
   2  Prefactor     .10000E-03    3.3606        .52664E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .21735        13.984        .87610E-01   -1.5615    
   4  Prefactor     .10000E-03    9.2088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .92972        6.6341        .14492E-04   -1.5515    
   8  Prefactor     .35709        17.420        .13329E-03   -1.5588    
   9  Prefactor     .16653        4.7876        .29418E-03   -1.5626    
  10  norm          5.4717        6.5803        .34361E-04   -1.5240    
  11  Prefactor     1.6206        2.8060        .63441E-05   -1.5453    
  12  Prefactor     .10000E-03    6.9814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5461        .41396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5318        8.4531        .58470E-05   -1.5159    
  15  Prefactor     10.368        51.044        .49807E-05   -1.5064    
  16  Prefactor     .10000E-03    15.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0474        4.7184        .64086E-05   -1.5306    
  18  Prefactor     2.4755        3.7267        .68647E-05   -1.5393    
  19  Prefactor     .10020E-03    24.160        .11537       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12957E-03    145.21        .26853       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0220        .25501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3709        .35718        .86491E-06   -1.5474    
  24  Prefactor     22.383        16.756        .33873E-05   -1.4761    
  25  Prefactor     .10000E-03    8.7329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86436        .18739        .90756E-05   -.97724    
  27  Prefactor     1.0800        .22513        .10138E-04   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22082e-09
Minuit parameter uncertainties:
  1  6.40187
  2  1.48728e-05
  3  3.48682
  4  1.7679e-07
  5  0.00010495
  6  3.96675e-05
  7  4.96753
  8  4.98907
  9  1.78542
  10  6.58121
  11  2.80621
  12  7.81748e-06
  13  0.000136127
  14  8.45447
  15  46.0728
  16  7.74497e-05
  17  4.71882
  18  3.72708
  19  0.00443133
  20  1.30558e-05
  21  0.131374
  22  1.75683e-06
  23  0.357177
  24  16.7591
  25  1.96541e-05
  26  0.187533
  27  0.225326
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.621e+00  2.806e+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:  1.080e+00  2.253e-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:  8.644e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738374/likelihoodResults_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.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): 0
logL (Free Index) = 5642.26202984
delta logL = 0.0140858564919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5642.25554931
delta logL = 0.0205663889783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9960       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1699       1.0000          .0000       10.000    
     3 'Normalizat'    .87111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0741       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.

 FCN=   5642.256     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9960        70.567        .73300E-02    .53767E-03
   2  Index         2.1701        2.9135        .48222       -.19941E-04
   3  Normalizat    .87112        .29373E-01    .44531E-01    .15024E-03
   4  Prefactor     1.0741        .35382E-01    .57451E-01    .38198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99597
  Index      = 2.17008
  Normalizat = 0.871124
  Prefactor  = 1.07411
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.256     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9960        3.5402        .17691E-03   -1.5425    
   2  Index         2.1701        1.8898        .82518E-02   -.60163    
   3  Normalizat    .87112        .18261        .22607E-03   -.97482    
   4  Prefactor     1.0741        .22393        .25405E-03   -.90298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71167e-10
Minuit parameter uncertainties:
  1  3.54058
  2  1.96315
  3  0.182743
  4  0.224125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738374': 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) = 5642.2555493
delta logL = 0.020566397945

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.996e+00  3.541e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.170e+00  1.963e+00  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:  1.074e+00  2.241e-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:  8.711e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 153.449 34.738

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/738374/cmap_HighResolution_598060801_598320001_4FGL_J1013.7+3444_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-01 14:21:49.529054', job_id='738374', GAL2='1.07', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1630531309.53', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.06e-02', ts2='0.49', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1384' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 738374: <4FGL_J1013.7+3444_daily_bin1384> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1384> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:06:19 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:07:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 14:07:45 2021
Terminated at Wed Sep  1 14:21:50 2021
Results reported at Wed Sep  1 14:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1384 153.449 34.7384 598060801 598320001 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 :                                   824.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            931 sec.

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

