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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1225
RA = 153.449, Dec = 34.7384
tmin = 556848001, tmax = 557107201
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='738095', job_status='RUN', time_executed='2021-09-01 14:11:16.417793', time_epoch_executed='1630530676.42' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738095/ft1_4FGL_J1013.7+3444_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738095/ft1_4FGL_J1013.7+3444_daily_bin1225.fits outfile=/scratch/kocevski/738095/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1225.fits ra=153.449 dec=34.7384 rad=12.0 tmin=556848001.0 tmax=557107201.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.65
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/738095/ltcube_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.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/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits
.....................!
real 17.89
user 17.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/738095/ltcube_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.fits outfile=/scratch/kocevski/738095/expmap_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.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/738095/ltcube_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.fits
.....................!
real 194.42
user 188.86
sys 4.96

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/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits scfile=/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits outfile=/scratch/kocevski/738095/cmap_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits scfile=/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits outfile=/scratch/kocevski/738095/cmap_HighResolution_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/738095/ft2_4FGL_J1013.7+3444_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738095/Model_4FGL_J1013.7+3444_daily_bin1225.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/738095/ft1_filtered_4FGL_J1013.7+3444_daily_bin1225.fits...........................!
real 18.59
user 16.90
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8897       1.0000         .10000E-03   10000.    
     3 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    162.64       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12332E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11852E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11900E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'norm      '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95434       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=   595.5564     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3858 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.406       -.85812E-06** at limit **
   2  Prefactor     2.8900        4.8529        .14464E-05   -.15835E-03
   3  norm          .10000E-03    12.070        .64856E-05** at limit **
   4  Prefactor     162.73        163.64        .56967E-04   -.13914E-04
   5  Prefactor     .10000E-03    16.187        .12308E-04** at limit **
   6  Prefactor     .10000E-03    18.372       -.77056E-07** at limit **
   7  Prefactor     35.680        52.526        .19091E-04   -.29397E-04
   8  Prefactor     .10000E-03    24.043        .14444E-04** at limit **
   9  Prefactor     .10000E-03    7.1483       -.28574E-06** at limit **
  10  norm          .10000E-03    203.01        .76263E-04** at limit **
  11  Prefactor     .10000E-03    5.2936       -.24361E-07** at limit **
  12  Prefactor     .10000E-03    22.386       -.61650E-05** at limit **
  13  Prefactor     .10000E-03    6.3632        .12765E-06** at limit **
  14  norm          .10000E-03    13.569       -.11689E-04** at limit **
  15  Prefactor     .10000E-03    1137.8       -.11332E-02** at limit **
  16  Prefactor     .10000E-03    138.86       -.88639E-04** at limit **
  17  Prefactor     .10000E-03    6.4359       -.24789E-06** at limit **
  18  Prefactor     .10000E-03    21.228       -.13075E-04** at limit **
  19  Prefactor     .10000E-03    207.62        .77861E-04** at limit **
  20  Prefactor    10000.0        8316.4        .10303E-02** at limit **
  21  Prefactor     .10000E-03    6567.2       -.16445E-02** at limit **
  22  Prefactor    10000.0        8717.0        .11678E-02** at limit **
  23  norm         10000.0        218.18       -.75946E-04** at limit **
  24  Prefactor    10000.0        8374.7        .27180E-02** at limit **
  25  Prefactor    10000.0        9933.1        .15937E-02** at limit **
  26  Normalizat    .10000E-01    .10378       -.23181E-05** at limit **
  27  Prefactor     .95450        .31629       -.19382E-04    .63142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.88996
  norm       = 0.0001
  Prefactor  = 162.725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.954501
 **********
 **   18 **HESSE 
 **********

 FCN=   595.5564     FROM HESSE     STATUS=OK           464 CALLS     4322 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.452        .76871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8900        4.8667        .64830E-04   -1.5368    
   3  norm          .10000E-03    12.073        .82849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     162.73        164.30        .15812E-03   -1.3150    
   5  Prefactor     .10000E-03    16.200        .95949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.373        .10222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.680        52.508        .67143E-04   -1.4513    
   8  Prefactor     .10000E-03    24.087        .11695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1521        .63746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    202.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2936        .54860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.386        .11285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3633        .60149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.569        .87844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1137.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    138.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4359        .60492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.228        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    207.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        8316.4        .19756E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6567.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        8717.1        .19503E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        218.20        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        8374.9        .18256E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        9933.2        .18737E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .10465        .48032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .95450        .31619        .22827E-03   -.94262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20206e-10
Minuit parameter uncertainties:
  1  8.09313e-05
  2  4.86738
  3  1.42952e-05
  4  164.768
  5  2.15438e-05
  6  1.07804e-05
  7  52.5764
  8  2.66058e-05
  9  9.93315e-05
  10  0.00129427
  11  2.48279e-06
  12  2.16227e-06
  13  1.35183e-06
  14  3.97771e-07
  15  0.000199833
  16  2.81041e-06
  17  5.88486e-08
  18  1.27005e-06
  19  5.43779e-07
  20  0.000669177
  21  8.23798e-05
  22  0.00140165
  23  5.33899e-05
  24  0.000490127
  25  0.000610698
  26  2.46303e-06
  27  0.316799
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  2.483e-06  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.545e-01  3.168e-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:  1.000e-02  2.463e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 3.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738095/likelihoodResults_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 595.557273358
delta logL = -0.000867680523925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 595.556405668
delta logL = 1.03457296063e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5694       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95441       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   595.5564     FROM MIGRAD    STATUS=FAILED       103 CALLS      252 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.31        .56030E-02** at limit **
   2  Index         1.7470        8.3838        .50000       -.63773E-06
   3  Normalizat    .10000E-01    .30299E-02    .48031E-03** at limit **
   4  Prefactor     .95450        .47771E-01    .22827E-03   -.29319E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   595.5564     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      430 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.31        .32281E-03** at limit **
   2  Index         1.7470        8.3838        .10297E-04   -.63773E-06
   3  Normalizat    .10000E-01    .30299E-02    .88175E-03** at limit **
   4  Prefactor     .95450        .47771E-01    .14076E-07   -.29319E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   595.5564     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      461 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    781.27        .69632E-03** at limit **
   2  Index         1.7484        9.1258        .50000        .53990E-07
   3  Normalizat    .10000E-01    .24273E-01    .96062E-04** at limit **
   4  Prefactor     .95450        .13522        .45654E-04   -.29266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74835
  Normalizat = 0.01
  Prefactor  = 0.954499
 **********
 **   18 **HESSE 
 **********

 FCN=   595.5564     FROM HESSE     STATUS=OK            29 CALLS      490 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.963        .13926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7484        5.8697        .50000       -.70802    
   3  Normalizat    .10000E-01    .10465        .19212E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95450        .28080        .91308E-05   -.94262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14544e-11
Minuit parameter uncertainties:
  1  0.000118277
  2  337.162
  3  6.32905e-08
  4  0.281232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738095': 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) = 595.556402096
delta logL = 3.5816945001e-06

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.183e-04  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.748e+00  3.372e+02  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.545e-01  2.812e-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:  1.000e-02  6.329e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/738095/cmap_HighResolution_556848001_557107201_4FGL_J1013.7+3444_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-02', job_status='DONE', photon_flux_upper_limit='3.02e-07', time_completed='2021-09-01 14:17:52.120541', job_id='738095', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630531072.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1225' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:17:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 738095: <4FGL_J1013.7+3444_daily_bin1225> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1225> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:05:52 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:06:42 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:06:42 2021
Terminated at Wed Sep  1 14:17:52 2021
Results reported at Wed Sep  1 14:17:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1225 153.449 34.7384 556848001 557107201 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 :                                   394.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            720 sec.

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

