/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1660
RA = 202.693, Dec = 29.5536
tmin = 669600001, tmax = 669859201
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='986380', job_status='RUN', time_executed='2022-03-25 00:11:32.655420', time_epoch_executed='1648192292.66' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986380/ft1_4FGL_J1330.7+2933_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986380/ft1_4FGL_J1330.7+2933_daily_bin1660.fits outfile=/scratch/kocevski/986380/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1660.fits ra=202.693 dec=29.5536 rad=12.0 tmin=669600001.0 tmax=669859201.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.01
user 4.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.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/986380/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.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.75
user 0.31
sys 0.19

Number of photons that the gtmktime cut: 504

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/986380/ltcube_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.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/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits
.....................!
real 15.34
user 14.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/986380/ltcube_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.fits outfile=/scratch/kocevski/986380/expmap_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.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/986380/ltcube_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.fits
.....................!
real 191.86
user 185.66
sys 5.26

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/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits outfile=/scratch/kocevski/986380/cmap_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.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.70
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits outfile=/scratch/kocevski/986380/cmap_HighResolution_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/986380/ft2_4FGL_J1330.7+2933_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986380/Model_4FGL_J1330.7+2933_daily_bin1660.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/986380/ft1_filtered_4FGL_J1330.7+2933_daily_bin1660.fits.....................!
real 48.18
user 46.27
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    101.98       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.526       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.637       1.0000         .10000E-03   10000.    
    11 'norm      '    .29094E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.569       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.759       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5036       1.0000         .10000E-03   10000.    
    20 'Prefactor '    69.594       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.480       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6628       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3716       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44157       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=   5519.360     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3113 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.992        12.245        .30210E-02   -.41211E-04
   2  Prefactor     101.98        75.125        .99535E-03    .11488E-03
   3  Prefactor     6.1953        8.0896        .40322E-02    .12227E-03
   4  Prefactor     .10000E-03    2.1243        .90712E-02** at limit **
   5  norm          .10000E-03    1.8155        .90712E-02** at limit **
   6  Prefactor     .10000E-03    42.458        .90712E-02** at limit **
   7  norm          2.6046        2.6997        .63194E-02   -.10515E-03
   8  Prefactor     37.525        20.507        .16356E-02    .14593E-03
   9  norm          .10000E-03    1.5679        .90712E-02** at limit **
  10  norm          19.622        6.7207        .22596E-02   -.14977E-02
  11  norm          .10000E-03    8.7451        .62531E-01** at limit **
  12  norm          25.584        25.697        .19800E-02   -.26536E-03
  13  Prefactor     .78318        4.2092        .12371E-01    .53068E-03
  14  Prefactor     .10000E-03    4.9407        .90712E-02** at limit **
  15  norm          17.569        10.114        .23888E-02    .78641E-03
  16  Prefactor     .10000E-03    20.218        .90712E-02** at limit **
  17  norm          11.759        9.1418        .29206E-02    .34259E-03
  18  Prefactor     28.334        20.835        .18816E-02   -.11324E-03
  19  Prefactor     3.5046        17.618        .54000E-02    .83611E-04
  20  Prefactor     69.593        69.474        .12029E-02    .37307E-03
  21  Prefactor     .10000E-03    1.4673        .90712E-02** at limit **
  22  Prefactor     21.480        17.981        .21606E-02    .29487E-04
  23  norm          .10000E-03    2.2627        .90712E-02** at limit **
  24  Prefactor     5.6630        4.4844        .42201E-02    .25287E-02
  25  Normalizat    1.3717        .19451        .47928E-01   -.31620E-04
  26  Prefactor     .44149        .19593        .85032E-01    .20643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9921
  Prefactor  = 101.979
  Prefactor  = 6.19533
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60459
  Prefactor  = 37.5248
  norm       = 0.0001
  norm       = 19.6216
  norm       = 0.000100001
  norm       = 25.5839
  Prefactor  = 0.783184
  Prefactor  = 0.0001
  norm       = 17.5691
  Prefactor  = 0.0001
  norm       = 11.7588
  Prefactor  = 28.3341
  Prefactor  = 3.50457
  Prefactor  = 69.5935
  Prefactor  = 0.0001
  Prefactor  = 21.48
  norm       = 0.0001
  Prefactor  = 5.66296
  Normalizat = 1.37166
  Prefactor  = 0.441491
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.360     FROM HESSE     STATUS=OK           454 CALLS     3567 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.992        12.246        .12084E-03   -1.5045    
   2  Prefactor     101.98        75.183        .39814E-04   -1.3685    
   3  Prefactor     6.1953        8.0824        .16129E-03   -1.5210    
   4  Prefactor     .10000E-03    2.1261        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8235        .97716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6046        2.7036        .12031E-03   -1.5385    
   8  Prefactor     37.525        20.539        .65426E-04   -1.4482    
   9  norm          .10000E-03    1.5693        .90804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.622        5.6999        .88877E-04   -1.4822    
  11  norm          .10000E-03    17.200        .36253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.584        25.672        .79199E-04   -1.4696    
  13  Prefactor     .78318        4.1637        .27249E-03   -1.5531    
  14  Prefactor     .10000E-03    4.9426        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.569        10.123        .47777E-03   -1.4869    
  16  Prefactor     .10000E-03    20.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.759        9.1419        .58412E-03   -1.5022    
  18  Prefactor     28.334        20.847        .75265E-04   -1.4643    
  19  Prefactor     3.5046        17.472        .21600E-03   -1.5334    
  20  Prefactor     69.593        69.910        .48118E-04   -1.4038    
  21  Prefactor     .10000E-03    1.4757        .87855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.480        17.975        .86423E-04   -1.4781    
  23  norm          .10000E-03    2.2839        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.6630        4.4992        .13409E-03   -1.5232    
  25  Normalizat    1.3717        .22326        .21187E-03   -.81452    
  26  Prefactor     .44149        .21923        .37681E-03   -1.1474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26542e-09
Minuit parameter uncertainties:
  1  12.2488
  2  75.2532
  3  8.08382
  4  2.48834e-06
  5  2.21194e-06
  6  8.23808e-05
  7  2.70374
  8  20.5432
  9  6.02304e-07
  10  5.70009
  11  0.000261674
  12  25.6826
  13  3.61176
  14  6.66868e-06
  15  10.1243
  16  5.0053e-05
  17  9.14301
  18  20.8527
  19  15.6574
  20  69.9927
  21  7.2677e-08
  22  17.9795
  23  1.60424e-06
  24  4.49944
  25  0.223418
  26  0.219645
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.833e+01  2.085e+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.415e-01  2.196e-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.372e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.38e-05

TS (Fixed Index): 2.78
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986380/likelihoodResults_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.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) = 5519.35354365
delta logL = 0.00657915034026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5519.34885921
delta logL = 0.0112635926453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.768       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3620       1.0000          .0000       10.000    
     3 'Normalizat'    1.3760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43798       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=   5519.349     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.749        27.535        .72233E-04    .19189E-03
   2  Index         2.3627        .58264        .59930E-02    .27749E-03
   3  Normalizat    1.3761        .20656        .21159E-03    .13433E-05
   4  Prefactor     .43803        .21610        .37816E-03    .10014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.749
  Index      = 2.36273
  Normalizat = 1.37606
  Prefactor  = 0.43803
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.349     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.749        26.761        .14447E-04   -1.4598    
   2  Index         2.3627        .56599        .11986E-02   -.55560    
   3  Normalizat    1.3761        .20658        .84635E-05   -.81324    
   4  Prefactor     .43803        .21611        .15126E-04   -1.1491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95241e-10
Minuit parameter uncertainties:
  1  26.771
  2  0.56768
  3  0.206701
  4  0.216515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986380': 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) = 5519.3488579
delta logL = 0.0112649060884

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.075e+01  2.677e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.363e+00  5.677e-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.380e-01  2.165e-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.376e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.36 +/- 0.57
Photon Flux (Free Index): 5.72e-08 +/- 4.76e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.60e-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/986380/cmap_HighResolution_669600001_669859201_4FGL_J1330.7+2933_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.97e-05', photon_flux_error='4.46e-08', dlogl='1.13e-02', energy_flux='1.87e-05', photon_flux2='5.72e-08', job_status='DONE', time_completed='2022-03-25 00:22:39.666901', photon_index_error2='0.57', photon_index2='2.36', ts='2.78', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.60e-05', EG='1.37', time_epoch_completed='1648192959.67', return_code='0', job_id='986380', GAL2='0.44', EG2='1.38', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.76e-08', ts2='2.77', photon_index='2.45' WHERE bin_id='1660' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:22:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 986530: <4FGL_J1330.7+2933_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1660> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Mar 25 00:07:44 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:07:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:07:45 2022
Terminated at Fri Mar 25 00:22:08 2022
Results reported at Fri Mar 25 00:22:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1660 202.693 29.5536 669600001 669859201 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 986380: <4FGL_J1330.7+2933_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1660> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar 25 00:07:35 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:07:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:07:37 2022
Terminated at Fri Mar 25 00:22:39 2022
Results reported at Fri Mar 25 00:22:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1660 202.693 29.5536 669600001 669859201 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

