/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 4 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 = 7428
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin407
RA = 202.693, Dec = 29.5536
tmin = 344822401, tmax = 345081601
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='717713', job_status='RUN', time_executed='2021-09-08 00:27:34.377483', time_epoch_executed='1631086054.38' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717713/ft1_4FGL_J1330.7+2933_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717713/ft1_4FGL_J1330.7+2933_daily_bin407.fits outfile=/scratch/kocevski/717713/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin407.fits ra=202.693 dec=29.5536 rad=12.0 tmin=344822401.0 tmax=345081601.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.48
user 3.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.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/717713/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin407.fits evtable="EVENTS" outfile="/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/717713/ltcube_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.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/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits
.....................!
real 18.63
user 17.09
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/717713/ltcube_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits outfile=/scratch/kocevski/717713/expmap_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.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/717713/ltcube_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits
.....................!
real 194.53
user 189.69
sys 4.35

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

Setting source of interest to:
4FGL J1330.7+2933 @ 202.693 29.5536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits outfile=/scratch/kocevski/717713/cmap_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.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.693 yref=29.5536 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits outfile=/scratch/kocevski/717713/cmap_HighResolution_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.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.693 yref=29.5536 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/717713/Model_4FGL_J1330.7+2933_daily_bin407.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/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits.....................!
real 52.64
user 51.18
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits', '/scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits', expMap='/scratch/kocevski/717713/expmap_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits', expCube='/scratch/kocevski/717713/ltcube_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/717713/Model_4FGL_J1330.7+2933_daily_bin407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.7+2933'

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.755e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/717713/ft1_filtered_4FGL_J1330.7+2933_daily_bin407.fits
Spacecraft file(s): /scratch/kocevski/717713/ft2_4FGL_J1330.7+2933_daily_bin407.fits
Exposure map: /scratch/kocevski/717713/expmap_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits
Exposure cube: /scratch/kocevski/717713/ltcube_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/717713/Model_4FGL_J1330.7+2933_daily_bin407.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) = 6526.62095549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .36182E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4905       1.0000         .10000E-03   10000.    
    15 'norm      '    8.7508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68903E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .71216       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4047       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68933       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6526.596     FROM MIGRAD    STATUS=CONVERGED   1103 CALLS     4056 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5355        .18142E-02** at limit **
   2  Prefactor     .10000E-03    93.660        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.0206        .11202E-02** at limit **
   4  Prefactor     .10000E-03    3.8071        .15261E-02** at limit **
   5  norm          .10000E-03    1.4880        .95785E-03** at limit **
   6  Prefactor     .10000E-03    21.948        .18142E-02** at limit **
   7  norm          22.103        5.7618        .85197E-04    .41767E-04
   8  Prefactor     .10000E-03    21.812        .36285E-03** at limit **
   9  norm          .10000E-03    1.7353        .10355E-02** at limit **
  10  norm          .28960E-01    3.6236        .32121E-01    .90110E-03
  11  norm          .10000E-03    2.8486        .13236E-02** at limit **
  12  norm          .10000E-03    7.1725        .18142E-02** at limit **
  13  Prefactor     .87322        4.4440        .22107E-03   -.49760E-03
  14  Prefactor     1.4906        50.931        .35114E-03   -.10299E-03
  15  norm          8.7510        7.5982        .13550E-03   -.65107E-04
  16  Prefactor     .10000E-03    182.82        .18142E-02** at limit **
  17  norm          10.400        9.2052        .12425E-03    .50234E-04
  18  Prefactor     .10000E-03    3.5320        .14822E-02** at limit **
  19  Prefactor     .10000E-03    6.4738        .18142E-02** at limit **
  20  Prefactor     21.459        60.474        .86392E-04   -.42373E-04
  21  Prefactor     2.5267        3.2361        .15789E-03   -.26418E-03
  22  Prefactor     .10038E-03    71.647        .46675E-02** at limit **
  23  norm          .71211        2.1390        .20986E-02   -.71454E-03
  24  Prefactor     2.4047        2.7719        .14051E-03   -.13374E-03
  25  Normalizat    .68944        .20188        .27351E-03    .35747E-03
  26  Prefactor     1.4919        .23383        .23474E-03    .49570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1032
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.02896
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.873224
  Prefactor  = 1.49062
  norm       = 8.75101
  Prefactor  = 0.0001
  norm       = 10.3997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4594
  Prefactor  = 2.5267
  Prefactor  = 0.000100379
  norm       = 0.712115
  Prefactor  = 2.40471
  Normalizat = 0.68944
  Prefactor  = 1.49188
 **********
 **   18 **HESSE 
 **********

 FCN=   6526.596     FROM HESSE     STATUS=OK           442 CALLS     4498 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    93.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0206        .22403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8089        .30522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4882        .19157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.103        5.7617        .34079E-05   -1.4767    
   8  Prefactor     .10000E-03    21.813        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7354        .20710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28960E-01    2.8054        .37984E-01   -1.5674    
  11  norm          .10000E-03    2.8488        .26472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.1727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87322        4.3497        .88428E-05   -1.5521    
  14  Prefactor     1.4906        49.664        .14046E-04   -1.5464    
  15  norm          8.7510        7.5974        .54200E-05   -1.5116    
  16  Prefactor     .10000E-03    182.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.400        9.2041        .49699E-05   -1.5063    
  18  Prefactor     .10000E-03    3.5320        .29643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.459        60.469        .17278E-04   -1.4781    
  21  Prefactor     2.5267        3.2358        .63157E-05   -1.5390    
  22  Prefactor     .10038E-03    73.148        .93351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .71211        2.1358        .83943E-04   -1.5539    
  24  Prefactor     2.4047        2.7718        .56205E-05   -1.5398    
  25  Normalizat    .68944        .20202        .10940E-04   -1.0431    
  26  Prefactor     1.4919        .23404        .46949E-04   -.77768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15803e-09
Minuit parameter uncertainties:
  1  4.65681e-06
  2  0.000107081
  3  1.8439e-06
  4  2.27516e-08
  5  8.1115e-06
  6  5.65682e-05
  7  5.76184
  8  4.48586e-05
  9  2.6661e-06
  10  0.569108
  11  5.43016e-07
  12  2.55398e-06
  13  3.89806
  14  17.2231
  15  7.59819
  16  0.00034423
  17  9.20535
  18  2.63609e-06
  19  9.08905e-06
  20  60.6421
  21  3.23602
  22  0.0105404
  23  2.13599
  24  2.77191
  25  0.202241
  26  0.23421
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.636e-06  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.492e+00  2.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  6.894e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 4.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/717713/likelihoodResults_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.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) = 6526.59714924
delta logL = -0.00133413666936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6526.59581495
delta logL = 1.53328983288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4239       1.0000          .0000       10.000    
     3 'Normalizat'    .68949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6526.596     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      262 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.896        .15188E-01** at limit **
   2  Index         1.7669        7.8348        .50000       -.18895E-07
   3  Normalizat    .68944        .68139E-02    .27351E-03   -.39031E-03
   4  Prefactor     1.4919        .82946E-02    .23474E-03   -.44854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76695
  Normalizat = 0.68944
  Prefactor  = 1.49187
 **********
 **   18 **HESSE 
 **********

 FCN=   6526.596     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.41        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7669        8.5550        .50000       -.70313    
   3  Normalizat    .68944        .20421E-01    .10940E-04   -1.0431    
   4  Prefactor     1.4919        .24858E-01    .46949E-04   -.77768    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88575e-11
Minuit parameter uncertainties:
  1  1.47934e-05
  2  617.016
  3  0.020421
  4  0.0248586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717713': 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): 102
logL (Free Index) = 6526.59581053
delta logL = 4.57117675978e-06

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.479e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.767e+00  6.170e+02  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.492e+00  2.486e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  6.894e-01  2.042e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/717713/cmap_HighResolution_344822401_345081601_4FGL_J1330.7+2933_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-08 00:41:25.806479', job_id='717713', GAL2='1.49', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1631086885.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='4.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='407' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 717713: <4FGL_J1330.7+2933_daily_bin407> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin407> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:25:48 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:27:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:27:21 2021
Terminated at Wed Sep  8 00:41:26 2021
Results reported at Wed Sep  8 00:41:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin407 202.693 29.5536 344822401 345081601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.7+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            938 sec.

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

