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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1015
RA = 202.693, Dec = 29.5536
tmin = 502416001, tmax = 502675201
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='722761', job_status='RUN', time_executed='2021-09-08 00:49:03.380738', time_epoch_executed='1631087343.38' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722761/ft1_4FGL_J1330.7+2933_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722761/ft1_4FGL_J1330.7+2933_daily_bin1015.fits outfile=/scratch/kocevski/722761/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1015.fits ra=202.693 dec=29.5536 rad=12.0 tmin=502416001.0 tmax=502675201.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.60
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/722761/ltcube_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.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/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits
.....................!
real 17.50
user 17.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/722761/ltcube_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.fits outfile=/scratch/kocevski/722761/expmap_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.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/722761/ltcube_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.fits
.....................!
real 192.88
user 187.22
sys 4.91

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/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits scfile=/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits outfile=/scratch/kocevski/722761/cmap_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits scfile=/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits outfile=/scratch/kocevski/722761/cmap_HighResolution_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/722761/ft2_4FGL_J1330.7+2933_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722761/Model_4FGL_J1330.7+2933_daily_bin1015.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/722761/ft1_filtered_4FGL_J1330.7+2933_daily_bin1015.fits.....................!
real 48.27
user 46.52
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10313E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .96611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1249       1.0000         .10000E-03   10000.    
     7 'norm      '    .12086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6752       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21721E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40942E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6297       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47435       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=   5693.439     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2677 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7138       -.34256E-06** at limit **
   2  Prefactor     .10000E-03    16.329       -.84626E-06** at limit **
   3  Prefactor     1.2436        5.0546        .18673E-05    .21002E-04
   4  Prefactor     .10000E-03    4.0035       -.54020E-06** at limit **
   5  norm          .96055        3.7630        .14430E-05   -.11905E-04
   6  Prefactor     2.1599        42.378       -.81417E-06   -.41764E-04
   7  norm          .10000E-03    5.6365       -.19266E-05** at limit **
   8  Prefactor     .10000E-03    5.4197        .16555E-06** at limit **
   9  norm          .10000E-03    2.0882       -.22918E-06** at limit **
  10  norm          1.6760        2.8082       -.32088E-06   -.12655E-03
  11  norm          .10000E-03    3.2326        .79077E-07** at limit **
  12  norm          16.021        15.133        .17324E-06   -.58742E-06
  13  Prefactor     2.0686        2.7765       -.38595E-07    .40350E-05
  14  Prefactor     .10000E-03    7.8826        .43793E-07** at limit **
  15  norm          .10000E-03    3.7427       -.74298E-07** at limit **
  16  Prefactor     .10000E-03    18.998        .58722E-06** at limit **
  17  norm          .10000E-03    149.70        .71520E-05** at limit **
  18  Prefactor     5.0118        11.145        .18592E-06    .77135E-05
  19  Prefactor     .10000E-03    10.631       -.90394E-07** at limit **
  20  Prefactor     .10000E-03    203.81        .34448E-05** at limit **
  21  Prefactor     .10000E-03    1.3015       -.12555E-06** at limit **
  22  Prefactor     .10000E-03    7.8445       -.12803E-06** at limit **
  23  norm          .10000E-03    1.4332       -.75905E-07** at limit **
  24  Prefactor     .10000E-03    .93403       -.61881E-07** at limit **
  25  Normalizat    1.6295        .18273       -.97246E-07   -.89146E-04
  26  Prefactor     .47432        .20096       -.31247E-06   -.37823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24361
  Prefactor  = 0.0001
  norm       = 0.960552
  Prefactor  = 2.15985
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.67601
  norm       = 0.0001
  norm       = 16.0212
  Prefactor  = 2.06864
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.01184
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.62949
  Prefactor  = 0.474321
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.439     FROM HESSE     STATUS=OK           460 CALLS     3137 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2436        5.0327        .32833E-03   -1.5485    
   4  Prefactor     .10000E-03    4.0478        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96055        3.7448        .25796E-03   -1.5512    
   6  Prefactor     2.1599        42.247        .28289E-03   -1.5414    
   7  norm          .10000E-03    5.5912        .23667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4252        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1050        .10637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6760        2.7551        .15264E-03   -1.5449    
  11  norm          .10000E-03    3.2489        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.021        15.113        .10006E-03   -1.4907    
  13  Prefactor     2.0686        2.7492        .13739E-03   -1.5420    
  14  Prefactor     .10000E-03    7.9249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7582        .14236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.260        .58362E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0118        11.133        .17922E-03   -1.5260    
  19  Prefactor     .10000E-03    10.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    201.90        .19465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3169        .84024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4362        .88208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .93534        .71209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6295        .20701        .18831E-03   -.74202    
  26  Prefactor     .47432        .22629        .36596E-03   -1.1317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34748e-11
Minuit parameter uncertainties:
  1  7.41558e-06
  2  2.11216e-05
  3  5.004
  4  3.62517e-06
  5  3.74568
  6  19.1197
  7  1.31479e-05
  8  8.38843e-06
  9  1.77393e-06
  10  2.75532
  11  1.06724e-05
  12  15.1167
  13  2.74932
  14  3.84963e-06
  15  5.30803e-07
  16  2.74255e-05
  17  5.08191e-06
  18  11.138
  19  2.03874e-06
  20  0.00135959
  21  1.47175e-06
  22  2.76351e-06
  23  8.47848e-07
  24  5.33807e-07
  25  0.207122
  26  0.226715
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.012e+00  1.114e+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:  4.743e-01  2.267e-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.629e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722761/likelihoodResults_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5693.35575406
delta logL = 0.0829568236049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5693.35306836
delta logL = 0.085642516291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0554       1.0000          .0000       10.000    
     3 'Normalizat'    1.6323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47004       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=   5693.353     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      299 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1018        17.178        .13287E-03   -.96724E-03
   2  Index         2.0555        .84644        .10909E-01   -.35620E-03
   3  Normalizat    1.6323        .20125        .18815E-03    .43719E-03
   4  Prefactor     .47021        .22479        .36735E-03    .26046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.10183
  Index      = 2.0555
  Normalizat = 1.63229
  Prefactor  = 0.470209
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.353     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1018        16.822        .26573E-04   -1.5104    
   2  Index         2.0555        .82942        .43636E-03   -.62970    
   3  Normalizat    1.6323        .20133        .37630E-04   -.74126    
   4  Prefactor     .47021        .22487        .14694E-04   -1.1336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.503e-09
Minuit parameter uncertainties:
  1  16.8307
  2  0.835361
  3  0.201433
  4  0.225295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722761': 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) = 5693.35306743
delta logL = 0.0856434483849

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.102e+00  1.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.056e+00  8.354e-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:  4.702e-01  2.253e-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.632e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/722761/cmap_HighResolution_502416001_502675201_4FGL_J1330.7+2933_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-08 01:00:13.672969', job_id='722761', GAL2='0.47', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1631088013.67', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='8.56e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1015' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 722761: <4FGL_J1330.7+2933_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1015> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:27 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:30 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:30 2021
Terminated at Wed Sep  8 01:00:14 2021
Results reported at Wed Sep  8 01:00:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1015 202.693 29.5536 502416001 502675201 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 :                                   665.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

