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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1525
RA = 202.693, Dec = 29.5536
tmin = 634608001, tmax = 634867201
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='725751', job_status='RUN', time_executed='2021-09-08 00:58:46.529250', time_epoch_executed='1631087926.53' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725751/ft1_4FGL_J1330.7+2933_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725751/ft1_4FGL_J1330.7+2933_daily_bin1525.fits outfile=/scratch/kocevski/725751/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1525.fits ra=202.693 dec=29.5536 rad=12.0 tmin=634608001.0 tmax=634867201.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.07
user 2.86
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.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/725751/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.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.51
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/725751/ltcube_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.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/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits
.....................!
real 14.48
user 13.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/725751/ltcube_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits outfile=/scratch/kocevski/725751/expmap_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.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/725751/ltcube_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits
.....................!
real 189.83
user 185.55
sys 3.88

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/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits outfile=/scratch/kocevski/725751/cmap_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits outfile=/scratch/kocevski/725751/cmap_HighResolution_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725751/Model_4FGL_J1330.7+2933_daily_bin1525.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/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits.....................!
real 40.24
user 38.48
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits', '/scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits', expMap='/scratch/kocevski/725751/expmap_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits', expCube='/scratch/kocevski/725751/ltcube_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/725751/Model_4FGL_J1330.7+2933_daily_bin1525.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/725751/ft1_filtered_4FGL_J1330.7+2933_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/725751/ft2_4FGL_J1330.7+2933_daily_bin1525.fits
Exposure map: /scratch/kocevski/725751/expmap_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits
Exposure cube: /scratch/kocevski/725751/ltcube_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/725751/Model_4FGL_J1330.7+2933_daily_bin1525.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) = 4538.93299183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10935E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.405       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.692       1.0000         .10000E-03   10000.    
     9 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.928       1.0000         .10000E-03   10000.    
    11 'norm      '    38.073       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13665E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.107       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12720E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.634       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2455       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.327       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89684       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0316       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.

 FCN=   4538.907     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3120 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    170.43        .19196E-05** at limit **
   2  Prefactor     .10000E-03    48.560        .88699E-06** at limit **
   3  Prefactor     .10000E-03    4.2291        .49517E-07** at limit **
   4  Prefactor     .10001E-03    21.051        .18573E-05** at limit **
   5  norm          .10000E-03    4.4858        .84614E-06** at limit **
   6  Prefactor     38.401        58.234       -.90628E-06   -.15073E-03
   7  norm          .10000E-03    1.9206        .78094E-07** at limit **
   8  Prefactor     32.701        30.552       -.57283E-06   -.11867E-03
   9  norm          .10000E-03    3.2192       -.16279E-06** at limit **
  10  norm          20.921        17.182       -.70160E-06   -.73788E-03
  11  norm          38.088        25.077        .18877E-06   -.39589E-03
  12  norm          7.2515        22.557        .12016E-06   -.75116E-05
  13  Prefactor     2.3197        7.1374        .98704E-06   -.24322E-03
  14  Prefactor     .10002E-03    19.728       -.27085E-05** at limit **
  15  norm          3.5435        4.5451        .75029E-07    .13795E-04
  16  Prefactor     20.838        90.206       -.11758E-05   -.56826E-04
  17  norm          .10000E-03    2.8507        .26489E-07** at limit **
  18  Prefactor     36.020        25.694        .34514E-06   -.38256E-03
  19  Prefactor     .10004E-03    164.75        .38066E-04** at limit **
  20  Prefactor     .10000E-03    41.608       -.53603E-06** at limit **
  21  Prefactor     .10000E-03    1.6011        .53151E-07** at limit **
  22  Prefactor     15.629        15.957        .13618E-07   -.25458E-04
  23  norm          1.2480        4.5610        .46053E-06    .34899E-03
  24  Prefactor     10.327        4.6524       -.19422E-07    .30883E-04
  25  Normalizat    .89689        .20360        .91894E-06   -.26135E-03
  26  Prefactor     1.0314        .21403       -.90548E-06   -.27832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100001
  Prefactor  = 38.4009
  norm       = 0.0001
  Prefactor  = 32.7005
  norm       = 0.0001
  norm       = 20.9213
  norm       = 38.0879
  norm       = 7.25149
  Prefactor  = 2.31968
  Prefactor  = 0.000100017
  norm       = 3.54349
  Prefactor  = 20.8376
  norm       = 0.0001
  Prefactor  = 36.0203
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6295
  norm       = 1.24804
  Prefactor  = 10.3272
  Normalizat = 0.896886
  Prefactor  = 1.03143
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.907     FROM HESSE     STATUS=OK           446 CALLS     3566 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    173.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2327        .13532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    21.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5677        .14015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.401        58.286        .64675E-04   -1.4468    
   7  norm          .10000E-03    1.9244        .91181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.701        30.532        .70082E-04   -1.4564    
   9  norm          .10000E-03    3.2235        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.921        17.432        .87553E-04   -1.4793    
  11  norm          38.088        25.409        .64956E-04   -1.4473    
  12  norm          7.2515        22.544        .14900E-03   -1.5169    
  13  Prefactor     2.3197        7.1344        .23764E-03   -1.5403    
  14  Prefactor     .10002E-03    20.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5435        4.5386        .15771E-03   -1.5331    
  16  Prefactor     20.838        90.691        .87183E-04   -1.4795    
  17  norm          .10000E-03    2.8549        .11108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.020        24.454        .66747E-04   -1.4507    
  19  Prefactor     .10004E-03    163.45        .63158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6108        .83214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.629        15.961        .10130E-03   -1.4917    
  23  norm          1.2480        4.5747        .26246E-03   -1.5485    
  24  Prefactor     10.327        4.6522        .93162E-04   -1.5065    
  25  Normalizat    .89689        .23960        .25259E-03   -.96570    
  26  Prefactor     1.0314        .25306        .26426E-03   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40888e-09
Minuit parameter uncertainties:
  1  0.00286143
  2  0.000281515
  3  9.64005e-06
  4  0.000710065
  5  0.000144651
  6  58.3727
  7  9.25367e-06
  8  30.5466
  9  1.41179e-05
  10  17.4363
  11  25.4162
  12  22.5707
  13  7.13704
  14  0.00117569
  15  4.53899
  16  87.1668
  17  3.38468e-06
  18  24.4612
  19  0.00488707
  20  0.000147698
  21  5.3638e-06
  22  15.9653
  23  4.57601
  24  4.65238
  25  0.239887
  26  0.253356
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.602e+01  2.446e+01  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.031e+00  2.534e-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:  8.969e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.71e-08 +/- 5.23e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.61e-05

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) = 4538.68206251
delta logL = 0.224885048104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4538.40917691
delta logL = 0.497770647925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54353       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0160       1.0000          .0000       10.000    
     3 'Normalizat'    .75187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1625       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.

 FCN=   4538.409     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      306 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54327        3.9512        .51591E-02    .60361E-03
   2  Index         5.0165        2.3206        .66706E-01    .14191E-03
   3  Normalizat    .75206        .69736E-01    .61723E-01    .15047E-04
   4  Prefactor     1.1623        .77297E-01    .56876E-01    .23362E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.543272
  Index      = 5.01648
  Normalizat = 0.752058
  Prefactor  = 1.16231
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.409     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54327        6.1494        .23046E-04   -1.5561    
   2  Index         5.0165        3.0051        .27947E-02    .32958E-02
   3  Normalizat    .75206        .21564        .27302E-03   -1.0187    
   4  Prefactor     1.1623        .23572        .25149E-03   -.87499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34704e-07
Minuit parameter uncertainties:
  1  3.65569
  2  3.22385
  3  0.215884
  4  0.235936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725751': 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) = 4538.4091757
delta logL = 0.497771865183

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.433e-01  3.656e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  5.016e+00  3.224e+00  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.162e+00  2.359e-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:  7.521e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 202.693 29.554
Photon Index (Free Index): 5.02 +/- 3.22
Photon Flux (Free Index): 1.73e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.25e-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/725751/cmap_HighResolution_634608001_634867201_4FGL_J1330.7+2933_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.71e-08', energy_flux2='2.29e-05', photon_flux_error='5.23e-08', dlogl='4.98e-01', energy_flux='2.38e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-08 01:08:05.505635', photon_index_error2='3.22', photon_index2='5.02', ts='4.71', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.90', time_epoch_completed='1631088485.51', return_code='0', job_id='725751', GAL2='1.16', EG2='0.75', return_code2='102', energy_flux_error='1.61e-05', photon_flux_error2='8.54e-08', ts2='6.38', photon_index='2.45' WHERE bin_id='1525' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:08:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 725751: <4FGL_J1330.7+2933_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:43 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:56:47 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:56:47 2021
Terminated at Wed Sep  8 01:08:06 2021
Results reported at Wed Sep  8 01:08:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1525 202.693 29.5536 634608001 634867201 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 :                                   550.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            743 sec.

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

