/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 37 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1715
RA = 202.573, Dec = 70.0406
tmin = 683856001, tmax = 684115201
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='133831', job_status='RUN', time_executed='2022-09-16 17:37:00.495916', time_epoch_executed='1663375020.5' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/133831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/133831/ft1_4FGL_J1330.2+7002_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/133831/ft1_4FGL_J1330.2+7002_daily_bin1715.fits outfile=/scratch/kocevski/133831/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1715.fits ra=202.573 dec=70.0406 rad=12.0 tmin=683856001.0 tmax=684115201.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.47
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.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/133831/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.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.33
sys 0.17

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/133831/ltcube_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.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/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits
.....................!
real 14.44
user 14.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/133831/ltcube_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits outfile=/scratch/kocevski/133831/expmap_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.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/133831/ltcube_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits
.....................!
real 192.51
user 187.02
sys 5.09

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

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits outfile=/scratch/kocevski/133831/cmap_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.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=202.573 yref=70.0406 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits outfile=/scratch/kocevski/133831/cmap_HighResolution_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.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=202.573 yref=70.0406 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/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/133831/Model_4FGL_J1330.2+7002_daily_bin1715.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/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits.....................!
real 65.14
user 63.81
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits', '/scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits', expMap='/scratch/kocevski/133831/expmap_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits', expCube='/scratch/kocevski/133831/ltcube_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/133831/Model_4FGL_J1330.2+7002_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/133831/ft1_filtered_4FGL_J1330.2+7002_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/133831/ft2_4FGL_J1330.2+7002_daily_bin1715.fits
Exposure map: /scratch/kocevski/133831/expmap_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits
Exposure cube: /scratch/kocevski/133831/ltcube_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/133831/Model_4FGL_J1330.2+7002_daily_bin1715.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) = 6433.27809309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26732E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.5454       1.0000          .0000       .10000E+07
     3 'Prefactor '    .61063E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18136E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    14.843       1.0000          .0000       .10000E+07
     6 'norm      '    .10092E-04   1.0000          .0000       .10000E+07
     7 'norm      '    13.399       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.180       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.9487       1.0000          .0000       .10000E+07
    10 'Prefactor '    30.443       1.0000          .0000       .10000E+07
    11 'Prefactor '    .69151E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74824E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .47818E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17403E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11133E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    28.678       1.0000          .0000       .10000E+07
    17 'Prefactor '    .72672E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .60170E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.6822       1.0000          .0000       .10000E+07
    20 'Prefactor '    .78007E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20800E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .71919       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6433.264     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1810 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51303E-05    98.758       -.82587E-05** at limit **
   2  Prefactor     4.5430        3.3982       -.16784E-06   -.61456E-03
   3  Prefactor     .75495E-08    13.128       -.86209E-06** at limit **
   4  Prefactor      .0000        29.664       -.44401E-07** at limit **
   5  Prefactor     14.817        2.7824       -.30433E-07   -.29856E-03
   6  norm           .0000        2.1473       -.13771E-07** at limit **
   7  norm          13.410        4.8886        .12180E-06    .14152E-02
   8  Prefactor     18.077        2.0935       -.48132E-07   -.25345E-01
   9  Prefactor     7.9675        2.0464        .70762E-07    .21702E-01
  10  Prefactor     29.846        9.6323       -.60005E-06   -.14517    
  11  Prefactor     .22204E-09    6.1687        .52020E-06** at limit **
  12  Prefactor      .0000        2.6734        .11053E-08** at limit **
  13  Prefactor     .24103E-06    9.3726        .71201E-06** at limit **
  14  Prefactor     .26090E-08    5.5659        .35199E-06** at limit **
  15  Prefactor     .22204E-09    8.8717        .18362E-06** at limit **
  16  Prefactor     28.800        2.9065        .19192E-06   -.37478E-01
  17  Prefactor     .12207E-06    12.978        .14577E-06** at limit **
  18  Prefactor      .0000        13.202       -.86689E-06** at limit **
  19  Prefactor     3.6990        1.0898       -.39893E-07    .30241E-03
  20  Prefactor      .0000        40.184        .36297E-06** at limit **
  21  Prefactor     .53735E-07    6.0637        .29824E-06** at limit **
  22  Normalizat    .71928        .16412       -.42325E-06    .19836E-04
  23  Prefactor     1.1608        .18124        .35022E-06    .29810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13034e-06
  Prefactor  = 4.543
  Prefactor  = 7.54952e-09
  Prefactor  = 0
  Prefactor  = 14.8171
  norm       = 0
  norm       = 13.4099
  Prefactor  = 18.0773
  Prefactor  = 7.96754
  Prefactor  = 29.8458
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 2.41029e-07
  Prefactor  = 2.60902e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 28.7996
  Prefactor  = 1.22069e-07
  Prefactor  = 0
  Prefactor  = 3.69897
  Prefactor  = 0
  Prefactor  = 5.37348e-08
  Normalizat = 0.719279
  Prefactor  = 1.16081
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.264     FROM HESSE     STATUS=OK           410 CALLS     2220 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51303E-05    99.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5430        3.3990        .47195E-03   -1.5665    
   3  Prefactor     .75495E-08    26.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        29.550        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.817        18.795        .25971E-03   -1.5631    
   6  norm           .0000        2.1401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.410        4.8846        .27338E-03   -1.5635    
   8  Prefactor     18.077        25.481        .23463E-03   -1.5623    
   9  Prefactor     7.9675        30.951        .35540E-03   -1.5652    
  10  Prefactor     29.846        37.807        .18127E-03   -1.5599    
  11  Prefactor     .22204E-09    14.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.6573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24103E-06    14.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26090E-08    11.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    8.8933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.800        54.017        .18677E-03   -1.5601    
  17  Prefactor     .12207E-06    15.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        26.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6990        25.158        .52610E-03   -1.5669    
  20  Prefactor      .0000        40.043        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .53735E-07    11.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .71928        .14628        .42546E-01   -1.0314    
  23  Prefactor     1.1608        .15988        .35633E-01   -.87546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30533e-06
Minuit parameter uncertainties:
  1  0.0451476
  2  3.39902
  3  0.000893616
  4  1.00153e-06
  5  18.7948
  6  2.60311e-06
  7  4.88455
  8  25.4808
  9  30.9514
  10  37.8076
  11  0.00011473
  12  5.1001e-06
  13  0.0036777
  14  0.000350409
  15  8.66501e-05
  16  54.0183
  17  0.00271725
  18  3.28323e-05
  19  19.2934
  20  7.98936e-06
  21  0.0015717
  22  0.146361
  23  0.159942
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.220e-10  1.147e-04  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.161e+00  1.599e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  7.193e-01  1.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/133831/likelihoodResults_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.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) = 6433.29758528
delta logL = -0.0336563008677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.26392933
delta logL = -3.53707946488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60146E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .26209       1.0000          .0000       10.000    
     3 'Normalizat'    .71919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6433.264     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      208 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.671       -.35555E-06** at limit **
   2  Index         2.2833        6.0245        .31493E-04     .0000    
   3  Normalizat    .71928        .16442        .47395E-08   -.54181E-04
   4  Prefactor     1.1608        .17961        .22306E-05   -.60340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.28332
  Normalizat = 0.719279
  Prefactor  = 1.16081
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6433.264     FROM HESSE     STATUS=FAILED        11 CALLS      219 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .57987        1.8797        .31493E-04   -.57441    
   3  Normalizat    .71928        1.0590        .47395E-08   -1.0314    
   4  Prefactor     1.1608        1.1173        .22306E-05   -.87546    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.74086e-12
Minuit parameter uncertainties:
  1  9.38313e-06
  2  1.52042
  3  1.09159
  4  1.14128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/133831': 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): 101
logL (Free Index) = 6433.26392898
delta logL = 6.36646291241e-12

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  0.000e+00  9.383e-06  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  2.283e+00  1.520e+00  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.161e+00  1.141e+00  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  7.193e-01  1.092e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/133831/cmap_HighResolution_683856001_684115201_4FGL_J1330.2+7002_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-03', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2022-09-16 17:48:39.543430', job_id='133831', GAL2='1.16', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1663375719.54', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='6.37e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1715' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:48:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 133831: <4FGL_J1330.2+7002_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:35:21 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:36:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:36:17 2022
Terminated at Fri Sep 16 17:48:40 2022
Results reported at Fri Sep 16 17:48:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1715 202.573 70.0406 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            799 sec.

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

