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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1527
RA = 153.449, Dec = 34.7384
tmin = 635126401, tmax = 635385601
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='740055', job_status='RUN', time_executed='2021-09-01 14:19:24.320534', time_epoch_executed='1630531164.32' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740055/ft1_4FGL_J1013.7+3444_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740055/ft1_4FGL_J1013.7+3444_daily_bin1527.fits outfile=/scratch/kocevski/740055/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1527.fits ra=153.449 dec=34.7384 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.97
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/740055/ltcube_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.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/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits
.....................!
real 17.05
user 16.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/740055/ltcube_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits outfile=/scratch/kocevski/740055/expmap_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.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/740055/ltcube_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits
.....................!
real 192.01
user 186.43
sys 4.85

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/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits scfile=/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits outfile=/scratch/kocevski/740055/cmap_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits scfile=/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits outfile=/scratch/kocevski/740055/cmap_HighResolution_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740055/Model_4FGL_J1013.7+3444_daily_bin1527.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/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits...........!
real 14.94
user 13.44
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits', '/scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits', expMap='/scratch/kocevski/740055/expmap_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits', expCube='/scratch/kocevski/740055/ltcube_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740055/Model_4FGL_J1013.7+3444_daily_bin1527.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/740055/ft1_filtered_4FGL_J1013.7+3444_daily_bin1527.fits
Spacecraft file(s): /scratch/kocevski/740055/ft2_4FGL_J1013.7+3444_daily_bin1527.fits
Exposure map: /scratch/kocevski/740055/expmap_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits
Exposure cube: /scratch/kocevski/740055/ltcube_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740055/Model_4FGL_J1013.7+3444_daily_bin1527.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 144.883209215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 142.858479285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0663       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2444       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2663       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15445E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17620E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44860E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74363E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    279.12       1.0000         .10000E-03   10000.    
    22 'Prefactor '    219.47       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0079       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.116       1.0000         .10000E-03   10000.    
    25 'Prefactor '    204.70       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .51004E-07   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   142.6152     FROM MIGRAD    STATUS=CONVERGED    308 CALLS      527 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  Prefactor     1.0663        1.2185         .0000         .0000    
   3  norm          7.3062        1.9721        .47556E-05   -.28347E-03
   4  Prefactor     6.2732        1.0032         .0000         .0000    
   5  Prefactor     10.341        1.9427        .56475E-05   -.46227E-03
   6  Prefactor     13.747        1.3804        .36885E-05   -.59887E-03
   7  Prefactor     4.1118        1.0076         .0000         .0000    
   8  Prefactor     1.4647        1.0750         .0000         .0000    
   9  Prefactor     1.0098        1.3253         .0000         .0000    
  10  norm          8.6848        1.0017         .0000         .0000    
  11  Prefactor     4942.1        19.427        .19133E-03   -.61776E-03
  12  Prefactor     .21388E-01    .74646E-01   -.19764E-03   -.18862E-02
  13  Prefactor     .10004E-03    .24477       -.10589E-03** at limit **
  14  norm          .10000E-03    .70094E-01    .18698E-05** at limit **
  15  Prefactor     .10006E-03    .20249        .12003E-05** at limit **
  16  Prefactor     .10000E-03    .37766       -.41392E-06** at limit **
  17  Prefactor     .10000E-03    .20571        .24650E-06** at limit **
  18  Prefactor     .10000E-03    .20571       -.11417E-05** at limit **
  19  Prefactor     .10000E-03    .28117       -.15511E-05** at limit **
  20  Prefactor     .10000E-03    .22035        .23553E-04** at limit **
  21  Prefactor     295.05        1.0273        .61021E-05    .95169E-02
  22  Prefactor     209.39        .97725       -.31821E-05    .49357E-02
  23  norm          .88568        1.2504       -.13482E-05   -.17004E-03
  24  Prefactor     .87223        .20349        .24645E-03   -.44869E-02
  25  Prefactor     213.15        1.0200        .14730E-04    .55331E-01
  26  Normalizat    .10000E-01    .25726       -.72527E-04** at limit **
  27  Prefactor     .37748E-12    .25504        .10407E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  Prefactor  = 1.06631
  norm       = 7.30623
  Prefactor  = 6.27317
  Prefactor  = 10.3405
  Prefactor  = 13.747
  Prefactor  = 4.1118
  Prefactor  = 1.46472
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 4942.07
  Prefactor  = 0.0213881
  Prefactor  = 0.000100037
  norm       = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 295.049
  Prefactor  = 209.386
  norm       = 0.885678
  Prefactor  = 0.872229
  Prefactor  = 213.148
  Normalizat = 0.01
  Prefactor  = 3.77476e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   142.6152     FROM HESSE     STATUS=FAILED         9 CALLS      536 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  Prefactor     1.0663        1.2185         .0000       -1.5501    
   3  norm          7.3062        1.9721        .47556E-05   -1.5167    
   4  Prefactor     6.2732        1.0032         .0000       -1.5207    
   5  Prefactor     10.341        1.9427        .56475E-05   -1.5065    
   6  Prefactor     13.747        1.3804        .36885E-05   -1.4966    
   7  Prefactor     4.1118        1.0076         .0000       -1.5302    
   8  Prefactor     1.4647        1.0750         .0000       -1.5466    
   9  Prefactor     1.0098        1.3253         .0000       -1.5507    
  10  norm          8.6848        1.0017         .0000       -1.5118    
  11  Prefactor     4942.1        19.427        .19133E-03   -.11586E-01
  12  Prefactor     .21388E-01    .74646E-01   -.19764E-03   -1.5737    
  13  Prefactor     .10004E-03    .24477       -.10589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .70094E-01    .18698E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    .20249        .12003E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .37766       -.41392E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .24650E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571       -.11417E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .28117       -.15511E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .22035        .23553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     295.05        1.0273        .61021E-05   -1.2255    
  22  Prefactor     209.39        .97725       -.31821E-05   -1.2804    
  23  norm          .88568        1.2504       -.13482E-05   -1.5520    
  24  Prefactor     .87223        .20349        .24645E-03   -1.5895    
  25  Prefactor     213.15        1.0200        .14730E-04   -1.2778    
  26  Normalizat    .10000E-01    .25726       -.72527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .37748E-12    .25504        .10407E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27585e-09
Minuit parameter uncertainties:
  1  1.01141
  2  1.21855
  3  1.97211
  4  1.00321
  5  1.9427
  6  1.3804
  7  1.00759
  8  1.075
  9  1.32538
  10  1.00167
  11  19.4275
  12  0.074646
  13  0.000191414
  14  7.60694e-06
  15  0.00022288
  16  9.15241e-06
  17  5.17918e-07
  18  1.50932e-07
  19  1.06227e-06
  20  2.51574e-05
  21  1.02729
  22  0.977255
  23  1.25041
  24  0.203491
  25  1.01999
  26  3.77545e-06
  27  6.23014e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 142.615171129

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.942e+03  1.943e+01  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:  3.775e-13  6.230e-07  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  3.775e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.130888234766

TS (Fixed Index): 0.57
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.82e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740055/likelihoodResults_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.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) = 142.571889952
delta logL = 0.0432811764138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 142.571888584
delta logL = 0.0432825449916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.9261       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=   142.5719     FROM MIGRAD    STATUS=CONVERGED     10 CALLS       47 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.9262        1.0118        .22282E-01    .55025E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 2.92617
 **********
 **   18 **HESSE 
 **********

 FCN=   142.5719     FROM HESSE     STATUS=OK             7 CALLS       54 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.9262        1.0137        .13099E-02   -.42769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26468e-13
Minuit parameter uncertainties:
  1  1.02225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740055': 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) = 142.571888583
delta logL = 0.0432825454384

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.942e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
279        Index:  2.926e+00  1.022e+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:  9.433e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.53
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/740055/cmap_HighResolution_635126401_635385601_4FGL_J1013.7+3444_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.82e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-01 14:24:56.593566', job_id='740055', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630531496.59', return_code2='0', ts='0.53', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='4.33e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1527' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:24:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 740055: <4FGL_J1013.7+3444_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1527> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 14:11:06 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 14:16:01 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:16:01 2021
Terminated at Wed Sep  1 14:24:57 2021
Results reported at Wed Sep  1 14:24:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1527 153.449 34.7384 635126401 635385601 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 :                                   331.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             191.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            831 sec.

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

