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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin960
RA = 202.693, Dec = 29.5536
tmin = 488160001, tmax = 488419201
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='722670', job_status='RUN', time_executed='2021-09-08 00:45:40.182927', time_epoch_executed='1631087140.18' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722670/ft1_4FGL_J1330.7+2933_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722670/ft1_4FGL_J1330.7+2933_daily_bin960.fits outfile=/scratch/kocevski/722670/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin960.fits ra=202.693 dec=29.5536 rad=12.0 tmin=488160001.0 tmax=488419201.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 5.44
user 5.11
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/722670/ltcube_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.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/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits
.....................!
real 17.56
user 17.12
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/722670/ltcube_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.fits outfile=/scratch/kocevski/722670/expmap_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.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/722670/ltcube_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.fits
.....................!
real 195.14
user 188.81
sys 5.67

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/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits scfile=/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits outfile=/scratch/kocevski/722670/cmap_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits scfile=/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits outfile=/scratch/kocevski/722670/cmap_HighResolution_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/722670/ft2_4FGL_J1330.7+2933_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722670/Model_4FGL_J1330.7+2933_daily_bin960.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/722670/ft1_filtered_4FGL_J1330.7+2933_daily_bin960.fits.....................!
real 36.64
user 35.22
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7303       1.0000         .10000E-03   10000.    
     5 'norm      '    .14442E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.271       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12724E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1847       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.0124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.116       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .41906       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.639       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89880       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0728       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=   3837.960     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3247 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.097        .28257E-06** at limit **
   2  Prefactor     32.161        114.70        .27251E-05   -.20755E-04
   3  Prefactor     .10000E-03    4.6901        .18053E-06** at limit **
   4  Prefactor     5.7305        8.4942        .57247E-06    .16654E-03
   5  norm          .10005E-03    5.1935        .66570E-06** at limit **
   6  Prefactor     73.358        39.934       -.33499E-05   -.50252E-03
   7  norm          2.1290        4.3579        .70695E-06    .66877E-03
   8  Prefactor     .10000E-03    18.941        .88661E-06** at limit **
   9  norm          .10000E-03    4.5044        .45711E-06** at limit **
  10  norm          .10000E-03    2.4581        .28515E-06** at limit **
  11  norm          .10000E-03    15.879        .77503E-06** at limit **
  12  norm          .10000E-03    29.247        .39128E-06** at limit **
  13  Prefactor     4.1829        3.9269        .23783E-06   -.15686E-03
  14  Prefactor     .10000E-03    14.010        .87723E-07** at limit **
  15  norm          .10000E-03    4.5782        .93236E-07** at limit **
  16  Prefactor     .10000E-03    39.787        .44103E-06** at limit **
  17  norm          8.0135        8.3076        .12823E-06    .51889E-04
  18  Prefactor     .10000E-03    11.501       -.14282E-06** at limit **
  19  Prefactor     .10242E-03    47.267        .79805E-05** at limit **
  20  Prefactor     14.338        209.15       -.12544E-04   -.59690E-04
  21  Prefactor     .43704        3.7599        .90304E-06   -.42235E-03
  22  Prefactor     27.645        20.523        .49226E-07   -.12806E-04
  23  norm          .10000E-03    3.1013       -.58675E-07** at limit **
  24  Prefactor     .10000E-03    2.3553       -.96159E-07** at limit **
  25  Normalizat    .89841        .23216       -.36608E-05   -.46941E-03
  26  Prefactor     1.0730        .24268        .39612E-05   -.27947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.1607
  Prefactor  = 0.0001
  Prefactor  = 5.73053
  norm       = 0.000100048
  Prefactor  = 73.3584
  norm       = 2.12901
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.1829
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.01349
  Prefactor  = 0.0001
  Prefactor  = 0.000102418
  Prefactor  = 14.3381
  Prefactor  = 0.43704
  Prefactor  = 27.6455
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898408
  Prefactor  = 1.07299
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.960     FROM HESSE     STATUS=OK           450 CALLS     3697 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.161        111.36        .35233E-03   -1.4573    
   3  Prefactor     .10000E-03    4.7099        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7305        8.4825        .83896E-03   -1.5229    
   5  norm          .10005E-03    56.016        .24516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.358        40.714        .46903E-04   -1.3993    
   7  norm          2.1290        4.3754        .89260E-03   -1.5416    
   8  Prefactor     .10000E-03    19.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5574        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4843        .94889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    29.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1829        3.9137        .11266E-03   -1.5299    
  14  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6243        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.0135        8.2923        .70823E-03   -1.5142    
  18  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10242E-03    175.04        .60225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.338        209.56        .10661E-03   -1.4950    
  21  Prefactor     .43704        12.852        .21455E-02   -1.5576    
  22  Prefactor     27.645        20.528        .76203E-04   -1.4656    
  23  norm          .10000E-03    3.1134        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3679        .92823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89841        .26073        .23658E-03   -.96516    
  26  Prefactor     1.0730        .27036        .24726E-03   -.90334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59383e-08
Minuit parameter uncertainties:
  1  2.38572e-05
  2  112.087
  3  5.12938e-06
  4  8.48429
  5  0.00329543
  6  40.7296
  7  4.37604
  8  0.000131273
  9  4.36577e-05
  10  2.1212e-05
  11  9.34252e-05
  12  8.28311e-06
  13  3.91398
  14  2.73394e-05
  15  2.88421e-06
  16  0.000107619
  17  8.29351
  18  3.61069e-05
  19  0.041268
  20  110.096
  21  4.74064
  22  20.5333
  23  2.51602e-06
  24  4.752e-06
  25  0.261099
  26  0.270707
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.611e-05  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.073e+00  2.707e-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.984e-01  2.611e-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: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722670/likelihoodResults_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.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) = 3837.96086419
delta logL = -0.000412783158481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3837.96045135
delta logL = 5.09553501615e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4206       1.0000          .0000       10.000    
     3 'Normalizat'    .89843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0730       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=   3837.960     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10353E-03    8.5008        .18142E-01** at limit **
   2  Index         2.3259        5.1354        .50000        .16736E-04
   3  Normalizat    .89841        .40119E-02    .23659E-03    .16362E-04
   4  Prefactor     1.0730        .45625E-02    .24725E-03    .98628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103534
  Index      = 2.32587
  Normalizat = 0.898412
  Prefactor  = 1.07299
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.960     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10353E-03    110.48        .21848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3259        6.1671        .50000       -.56430    
   3  Normalizat    .89841        .14519E-01    .94636E-05   -.96516    
   4  Prefactor     1.0730        .16512E-01    .98900E-05   -.90335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80459e-09
Minuit parameter uncertainties:
  1  0.039591
  2  382.235
  3  0.0145194
  4  0.016512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722670': 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) = 3837.960451
delta logL = 4.09067069995e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.035e-04  3.959e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.326e+00  3.822e+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.073e+00  1.651e-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:  8.984e-01  1.452e-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/722670/cmap_HighResolution_488160001_488419201_4FGL_J1330.7+2933_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-08 00:55:28.754265', job_id='722670', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631087728.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='960' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:55:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 722670: <4FGL_J1330.7+2933_daily_bin960> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin960> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:18 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45: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:45:21 2021
Terminated at Wed Sep  8 00:55:29 2021
Results reported at Wed Sep  8 00:55:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin960 202.693 29.5536 488160001 488419201 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 :                                   583.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

