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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin320
RA = 202.693, Dec = 29.5536
tmin = 322272001, tmax = 322531201
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='708626', job_status='RUN', time_executed='2021-09-07 23:55:44.076575', time_epoch_executed='1631084144.08' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708626/ft1_4FGL_J1330.7+2933_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708626/ft1_4FGL_J1330.7+2933_daily_bin320.fits outfile=/scratch/kocevski/708626/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin320.fits ra=202.693 dec=29.5536 rad=12.0 tmin=322272001.0 tmax=322531201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.87
user 2.64
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.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/708626/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.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.43
user 0.29
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/708626/ltcube_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.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/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits
.....................!
real 10.27
user 9.97
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/708626/ltcube_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.fits outfile=/scratch/kocevski/708626/expmap_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.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/708626/ltcube_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.fits
.....................!
real 155.10
user 151.04
sys 3.61

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/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits outfile=/scratch/kocevski/708626/cmap_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits outfile=/scratch/kocevski/708626/cmap_HighResolution_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.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.47
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/708626/ft2_4FGL_J1330.7+2933_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708626/Model_4FGL_J1330.7+2933_daily_bin320.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/708626/ft1_filtered_4FGL_J1330.7+2933_daily_bin320.fits.....................!
real 38.94
user 37.67
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4969       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.343       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43738E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.8668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2226       1.0000         .10000E-03   10000.    
    23 'norm      '    16.732       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3264       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79848       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=   5672.799     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2692 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.781        17.306        .56684E-08    .77032E-04
   2  Prefactor     .10000E-03    235.83        .10150E-05** at limit **
   3  Prefactor     5.0651        4.8317       -.88824E-07   -.14342E-04
   4  Prefactor     .10000E-03    4.3796        .56653E-06** at limit **
   5  norm          .10000E-03    4.2636       -.33619E-05** at limit **
   6  Prefactor     7.5321        22.358        .55663E-05    .39618E-03
   7  norm          .10000E-03    .98134        .67302E-07** at limit **
   8  Prefactor     33.354        17.851       -.20635E-06    .17604E-03
   9  norm          .10000E-03    2.7217       -.53826E-07** at limit **
  10  norm          .10000E-03    .90154       -.30876E-06** at limit **
  11  norm          .10000E-03    1.2856       -.83587E-07** at limit **
  12  norm          .10000E-03    6.7376        .11454E-06** at limit **
  13  Prefactor     .40400E-01    1.4434        .82080E-06   -.17040E-02
  14  Prefactor     .10000E-03    4.7852       -.97782E-07** at limit **
  15  norm          9.8635        8.3438       -.40886E-07    .12402E-03
  16  Prefactor     .10000E-03    24.937       -.13116E-06** at limit **
  17  norm          15.001        9.7429       -.94243E-07    .86962E-04
  18  Prefactor     30.124        14.458       -.12183E-06    .59287E-04
  19  Prefactor     .10000E-03    7.0081        .17131E-06** at limit **
  20  Prefactor     16.934        50.957       -.24038E-05   -.86731E-04
  21  Prefactor     1.4070        3.0224        .52105E-06    .15051E-03
  22  Prefactor     6.2172        19.427       -.18454E-06   -.42562E-05
  23  norm          16.733        6.9972       -.91879E-07    .16340E-04
  24  Prefactor     2.3263        2.4601       -.65653E-07   -.26112E-04
  25  Normalizat    1.1847        .18343        .31491E-05    .43904E-03
  26  Prefactor     .79891        .19915       -.31788E-05    .33028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7809
  Prefactor  = 0.000100002
  Prefactor  = 5.0651
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 7.53205
  norm       = 0.0001
  Prefactor  = 33.3536
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0404
  Prefactor  = 0.0001
  norm       = 9.86352
  Prefactor  = 0.0001
  norm       = 15.0011
  Prefactor  = 30.1244
  Prefactor  = 0.0001
  Prefactor  = 16.9341
  Prefactor  = 1.407
  Prefactor  = 6.21716
  norm       = 16.7334
  Prefactor  = 2.3263
  Normalizat = 1.1847
  Prefactor  = 0.798911
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.799     FROM HESSE     STATUS=OK           454 CALLS     3146 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.781        17.304        .82145E-04   -1.4732    
   2  Prefactor     .10000E-03    237.66        .20932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0651        4.8358        .15747E-03   -1.5258    
   4  Prefactor     .10000E-03    4.3919        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.6481        .25758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5321        24.422        .14647E-03   -1.5159    
   7  norm          .10000E-03    .98317        .72846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.354        17.786        .69396E-04   -1.4552    
   9  norm          .10000E-03    2.7393        .12124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .90993        .69991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2864        .83408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40400E-01    25.691        .16466E-02   -1.5668    
  14  Prefactor     .10000E-03    4.7995        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.8635        8.3391        .12757E-03   -1.5080    
  16  Prefactor     .10000E-03    24.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.001        9.7386        .10341E-03   -1.4933    
  18  Prefactor     30.124        14.466        .73003E-04   -1.4610    
  19  Prefactor     .10000E-03    7.0138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.934        51.078        .96981E-04   -1.4885    
  21  Prefactor     1.4070        2.9881        .18308E-03   -1.5471    
  22  Prefactor     6.2172        19.438        .16093E-03   -1.5209    
  23  norm          16.733        7.0005        .97915E-04   -1.4890    
  24  Prefactor     2.3263        2.4630        .11814E-03   -1.5403    
  25  Normalizat    1.1847        .20499        .21339E-03   -.87077    
  26  Prefactor     .79891        .22163        .29107E-03   -.99768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20877e-08
Minuit parameter uncertainties:
  1  17.3072
  2  0.0014214
  3  4.83612
  4  9.40638e-06
  5  0.000379742
  6  24.4542
  7  1.45229e-07
  8  17.7883
  9  1.48419e-05
  10  9.48446e-06
  11  3.28118e-06
  12  3.88374e-06
  13  2.03591
  14  2.1503e-05
  15  8.34006
  16  4.95363e-05
  17  9.73962
  18  14.468
  19  1.24349e-05
  20  51.2102
  21  2.98845
  22  19.4578
  23  7.00088
  24  2.46307
  25  0.205127
  26  0.221881
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.012e+01  1.447e+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:  7.989e-01  2.219e-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:  1.185e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.35
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 9.54e-06

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) = 5671.02978456
delta logL = 1.769227439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5670.65731477
delta logL = 2.14169722495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.127       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6979       1.0000          .0000       10.000    
     3 'Normalizat'    1.2178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77459       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=   5670.657     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.122        24.358       -.17372E-05    .91914E-05
   2  Index         1.6981        .32535       -.85189E-05    .13379E-04
   3  Normalizat    1.2178        .16582        .72632E-06    .20927E-03
   4  Prefactor     .77458        .18992       -.16447E-06    .13331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1217
  Index      = 1.6981
  Normalizat = 1.21784
  Prefactor  = 0.774584
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.657     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.122        24.318        .28606E-03   -1.4305    
   2  Index         1.6981        .32480        .58913E-02   -.72132    
   3  Normalizat    1.2178        .19010        .21085E-03   -.86053    
   4  Prefactor     .77458        .21737        .29498E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64209e-11
Minuit parameter uncertainties:
  1  24.3232
  2  0.325208
  3  0.190204
  4  0.217612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708626': 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) = 5670.65731457
delta logL = 2.14169742012

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.912e+01  2.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.698e+00  3.252e-01  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:  7.746e-01  2.176e-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:  1.218e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.62
Ra Dec: 202.693 29.554
Photon Index (Free Index): 1.70 +/- 0.33
Photon Flux (Free Index): 3.73e-08 +/- 2.26e-08
Energy Flux (Free Index): 6.12e-05 +/- 5.19e-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/708626/cmap_HighResolution_322272001_322531201_4FGL_J1330.7+2933_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='6.12e-05', photon_flux_error='3.09e-08', dlogl='2.14e+00', energy_flux='1.99e-05', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-08 00:03:40.388290', photon_index_error2='0.33', photon_index2='1.70', ts='11.35', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.19e-05', EG='1.18', time_epoch_completed='1631084620.39', return_code='0', job_id='708626', GAL2='0.77', EG2='1.22', return_code2='0', energy_flux_error='9.54e-06', photon_flux_error2='2.26e-08', ts2='15.62', photon_index='2.45' WHERE bin_id='320' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:03:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 708626: <4FGL_J1330.7+2933_daily_bin320> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin320> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 23:55:20 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:55:33 2021
Terminated at Wed Sep  8 00:03:41 2021
Results reported at Wed Sep  8 00:03:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin320 202.693 29.5536 322272001 322531201 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 :                                   473.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            501 sec.

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

