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


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1345
RA = 153.449, Dec = 34.7384
tmin = 587952001, tmax = 588211201
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='738301', job_status='RUN', time_executed='2021-09-01 14:07:49.392718', time_epoch_executed='1630530469.39' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738301/ft1_4FGL_J1013.7+3444_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738301/ft1_4FGL_J1013.7+3444_daily_bin1345.fits outfile=/scratch/kocevski/738301/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1345.fits ra=153.449 dec=34.7384 rad=12.0 tmin=587952001.0 tmax=588211201.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.46
user 3.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/738301/ltcube_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.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/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits
.....................!
real 16.87
user 16.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/738301/ltcube_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.fits outfile=/scratch/kocevski/738301/expmap_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.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/738301/ltcube_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.fits
.....................!
real 194.72
user 188.54
sys 4.82

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/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits scfile=/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits outfile=/scratch/kocevski/738301/cmap_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits scfile=/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits outfile=/scratch/kocevski/738301/cmap_HighResolution_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/738301/ft2_4FGL_J1013.7+3444_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738301/Model_4FGL_J1013.7+3444_daily_bin1345.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/738301/ft1_filtered_4FGL_J1013.7+3444_daily_bin1345.fits.....................!
real 50.79
user 49.48
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18824E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24881       1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1996       1.0000         .10000E-03   10000.    
    14 'norm      '    .65348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13611E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4427       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9532       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .49950       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93695       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2350       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=   5803.062     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3322 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    4.9810        .44185E-06** at limit **
   2  Prefactor     .25029        2.0213        .42377E-06   -.32858E-03
   3  norm          .10000E-03    3.7368       -.25467E-07** at limit **
   4  Prefactor     .10000E-03    15.842       -.81079E-07** at limit **
   5  Prefactor     .10000E-03    6.9637       -.99021E-07** at limit **
   6  Prefactor     .10000E-03    26.568       -.58389E-06** at limit **
   7  Prefactor     .10000E-03    2.2170       -.94498E-07** at limit **
   8  Prefactor     7.9693        6.9488        .13139E-07   -.29805E-05
   9  Prefactor     .10000E-03    1.3922       -.22414E-06** at limit **
  10  norm          .10000E-03    4.9040       -.18523E-06** at limit **
  11  Prefactor     4.8193        4.2158       -.15719E-05    .82657E-04
  12  Prefactor     .10000E-03    11.468       -.13930E-06** at limit **
  13  Prefactor     4.2002        4.8512        .48288E-05    .67353E-04
  14  norm          .69869        8.1166        .12193E-08   -.46533E-04
  15  Prefactor     .10000E-03    40.889       -.18769E-06** at limit **
  16  Prefactor     .10000E-03    56.099       -.67174E-06** at limit **
  17  Prefactor     .10000E-03    2.1319        .34048E-06** at limit **
  18  Prefactor     .10001E-03    4.1642       -.20600E-05** at limit **
  19  Prefactor     .10000E-03    49.010        .69822E-06** at limit **
  20  Prefactor     .10000E-03    10.141       -.26404E-07** at limit **
  21  Prefactor     45.789        115.78        .37095E-05    .13169E-03
  22  Prefactor     .10000E-03    19.623       -.48133E-06** at limit **
  23  norm          1.4428        .35664       -.25155E-08    .10017E-03
  24  Prefactor     5.9547        14.614        .75483E-07    .24926E-05
  25  Prefactor     .48894        9.5444        .37783E-06   -.83882E-04
  26  Normalizat    .93685        .16947       -.20703E-05    .28719E-03
  27  Prefactor     1.2349        .19975        .14679E-05    .43325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  Prefactor  = 0.250286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.96927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.81933
  Prefactor  = 0.0001
  Prefactor  = 4.20015
  norm       = 0.698687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7888
  Prefactor  = 0.0001
  norm       = 1.44279
  Prefactor  = 5.95465
  Prefactor  = 0.488938
  Normalizat = 0.936847
  Prefactor  = 1.23493
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.062     FROM HESSE     STATUS=OK           490 CALLS     3812 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    37.384        .32177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25029        4.1336        .20592E-02   -1.5608    
   3  norm          .10000E-03    3.7377        .14382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2230        .11076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9693        6.9481        .14202E-03   -1.5143    
   9  Prefactor     .10000E-03    1.4267        .17533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9569        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8193        4.2217        .12681E-03   -1.5269    
  12  Prefactor     .10000E-03    11.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2002        4.8963        .78607E-03   -1.5298    
  14  norm          .69869        25.405        .40646E-02   -1.5541    
  15  Prefactor     .10000E-03    40.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1713        .10848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    11.260        .29073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.789        116.11        .29703E-03   -1.4354    
  22  Prefactor     .10000E-03    20.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4428        .35873        .21141E-04   -1.5468    
  24  Prefactor     5.9547        14.417        .16458E-03   -1.5220    
  25  Prefactor     .48894        57.370        .43622E-02   -1.5568    
  26  Normalizat    .93685        .19540        .24014E-03   -.95177    
  27  Prefactor     1.2349        .23492        .26118E-03   -.85263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5953e-08
Minuit parameter uncertainties:
  1  0.00172368
  2  2.03405
  3  1.2053e-07
  4  5.31126e-05
  5  6.61968e-07
  6  6.63332e-05
  7  1.76202e-06
  8  6.94876
  9  4.03724e-06
  10  4.68317e-06
  11  4.22196
  12  1.86545e-05
  13  4.89679
  14  8.42952
  15  7.31896e-05
  16  2.397e-05
  17  3.54255e-07
  18  0.000732771
  19  8.09402e-05
  20  2.11287e-05
  21  116.686
  22  1.1956e-05
  23  0.358734
  24  14.4254
  25  10.6018
  26  0.195548
  27  0.235117
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.819e+00  4.222e+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.235e+00  2.351e-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:  9.368e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.84
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.07e-05

TS (Fixed Index): 2.84
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738301/likelihoodResults_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.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) = 5802.17462765
delta logL = 0.886973303039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5802.14428719
delta logL = 0.917313756704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2408       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5480       1.0000          .0000       10.000    
     3 'Normalizat'    .97022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2164       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=   5802.144     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2349        3.3111        .56249E-02    .47887E-03
   2  Index         1.5474        .42394        .22159       -.11040E-03
   3  Normalizat    .97033        .16098        .45793E-01    .70304E-04
   4  Prefactor     1.2163        .19838        .59477E-01    .19622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23485
  Index      = 1.54742
  Normalizat = 0.97033
  Prefactor  = 1.2163
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.144     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2349        6.1098        .13159E-03   -1.5348    
   2  Index         1.5474        .90422        .84046E-02   -.76220    
   3  Normalizat    .97033        .19061        .23659E-03   -.94031    
   4  Prefactor     1.2163        .23428        .26303E-03   -.85831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26896e-10
Minuit parameter uncertainties:
  1  6.11097
  2  0.913913
  3  0.190745
  4  0.234486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738301': 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) = 5802.14428657
delta logL = 0.917314380468

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  3.235e+00  6.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  1.547e+00  9.139e-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:  1.216e+00  2.345e-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:  9.703e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 153.449 34.738
Photon Index (Free Index): 1.55 +/- 0.91
Photon Flux (Free Index): 1.16e-08 +/- 2.44e-08
Energy Flux (Free Index): 3.13e-05 +/- 4.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738301/cmap_HighResolution_587952001_588211201_4FGL_J1013.7+3444_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-03', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='3.13e-05', photon_flux_error='4.03e-08', dlogl='9.17e-01', energy_flux='1.22e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-01 14:21:01.123957', photon_index_error2='0.91', photon_index2='1.55', ts='2.84', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='4.86e-05', EG='0.94', time_epoch_completed='1630531261.12', return_code='0', job_id='738301', GAL2='1.22', EG2='0.97', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.44e-08', ts2='4.67', photon_index='2.59' WHERE bin_id='1345' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 14:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 738301: <4FGL_J1013.7+3444_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1345 153.449 34.7384 587952001 588211201 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 :                                   788.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            887 sec.

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

