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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1311
RA = 202.693, Dec = 29.5536
tmin = 579139201, tmax = 579398401
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='724375', job_status='RUN', time_executed='2021-09-08 00:51:24.859382', time_epoch_executed='1631087484.86' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724375/ft1_4FGL_J1330.7+2933_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724375/ft1_4FGL_J1330.7+2933_daily_bin1311.fits outfile=/scratch/kocevski/724375/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1311.fits ra=202.693 dec=29.5536 rad=12.0 tmin=579139201.0 tmax=579398401.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.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/724375/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1311.fits evtable="EVENTS" outfile="/scratch/kocevski/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.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/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/724375/ltcube_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.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/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits
.....................!
real 15.00
user 14.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/724375/ltcube_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.fits outfile=/scratch/kocevski/724375/expmap_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.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/724375/ltcube_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.fits
.....................!
real 191.30
user 186.03
sys 4.81

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/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits outfile=/scratch/kocevski/724375/cmap_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits outfile=/scratch/kocevski/724375/cmap_HighResolution_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/724375/ft2_4FGL_J1330.7+2933_daily_bin1311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724375/Model_4FGL_J1330.7+2933_daily_bin1311.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/724375/ft1_filtered_4FGL_J1330.7+2933_daily_bin1311.fits.....................!
real 47.48
user 46.10
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    115.02       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .77243       1.0000         .10000E-03   10000.    
     5 'norm      '    .79090E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.593       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4848       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0114       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2418       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6496       1.0000         .10000E-03   10000.    
    11 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58418E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44946E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2576       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.899       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .51251       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5648.258     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2695 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9132        .13967E-06** at limit **
   2  Prefactor     115.11        24.173        .73663E-05   -.24928E-01
   3  Prefactor     .10001E-03    8.9908       -.47584E-05** at limit **
   4  Prefactor     .79245        11.315       -.83381E-05   -.45043E-03
   5  norm          .10091E-03    200.35        .48345E-05** at limit **
   6  Prefactor     30.824        27.907       -.37613E-06    .87731E-02
   7  norm          2.4844        2.6200       -.21345E-06   -.18881E-04
   8  Prefactor     6.9956        8.4654       -.14355E-04   -.37893E-02
   9  norm          5.2406        4.4942       -.28340E-05   -.62395E-03
  10  norm          3.6522        4.6813        .50316E-05    .16165E-02
  11  norm          .10000E-03    3.8329       -.93827E-06** at limit **
  12  norm          .10000E-03    14.448        .10004E-05** at limit **
  13  Prefactor     .60070E-01    20.769       -.35649E-04   -.32348E-02
  14  Prefactor     .10001E-03    8.7751        .42900E-05** at limit **
  15  norm          5.9930        4.3809       -.32586E-05   -.14430E-02
  16  Prefactor     .10001E-03    19.488       -.50918E-05** at limit **
  17  norm          .68019E-02    41.560       -.17490E-04    .38411E-03
  18  Prefactor     .10000E-03    15.105        .22597E-05** at limit **
  19  Prefactor     4.0427        3.6557       -.45402E-05    .52210E-03
  20  Prefactor     .10006E-03    15.289       -.91936E-06** at limit **
  21  Prefactor     3.2568        2.9010        .37208E-06    .14049E-03
  22  Prefactor     .10000E-03    4.1547        .39721E-06** at limit **
  23  norm          .10000E-03    6.1650       -.21366E-06** at limit **
  24  Prefactor     26.897        1.0945       -.62602E-07    .17815E-03
  25  Normalizat    .51248        .19478        .35566E-05    .79542E-04
  26  Prefactor     1.4758        .23069        .88613E-06   -.22657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 115.111
  Prefactor  = 0.000100007
  Prefactor  = 0.792447
  norm       = 0.000100907
  Prefactor  = 30.8241
  norm       = 2.48438
  Prefactor  = 6.9956
  norm       = 5.24065
  norm       = 3.65222
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0600699
  Prefactor  = 0.000100005
  norm       = 5.99296
  Prefactor  = 0.000100009
  norm       = 0.00680192
  Prefactor  = 0.000100001
  Prefactor  = 4.04267
  Prefactor  = 0.000100061
  Prefactor  = 3.25685
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.8965
  Normalizat = 0.51248
  Prefactor  = 1.47577
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.258     FROM HESSE     STATUS=OK           536 CALLS     3231 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     115.11        90.144        .93783E-03   -1.3558    
   3  Prefactor     .10001E-03    8.7035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79245        7.4466        .52357E-01   -1.5530    
   5  norm          .10091E-03    3.5754        .73980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.824        32.819        .18110E-02   -1.4597    
   7  norm          2.4844        2.6316        .64833E-02   -1.5393    
   8  Prefactor     6.9956        15.993        .37876E-02   -1.5179    
   9  norm          5.2406        4.5097        .43891E-02   -1.5250    
  10  norm          3.6522        4.8977        .52864E-02   -1.5326    
  11  norm          .10000E-03    3.8288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60070E-01    1.6590        .61254E-01   -1.5659    
  14  Prefactor     .10001E-03    8.7495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9930        4.4808        .41042E-02   -1.5218    
  16  Prefactor     .10001E-03    19.506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68019E-02    4.6561        .53168E-01   -1.5692    
  18  Prefactor     .10000E-03    29.658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0427        24.427        .50122E-02   -1.5306    
  20  Prefactor     .10006E-03    30.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2568        2.9090        .56096E-02   -1.5347    
  22  Prefactor     .10000E-03    4.1461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.9348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.897        6.6865        .19311E-02   -1.4670    
  25  Normalizat    .51248        .17098        .66622E-01   -1.1184    
  26  Prefactor     1.4758        .19647        .50464E-01   -.78221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96299e-06
Minuit parameter uncertainties:
  1  1.75211e-05
  2  90.2518
  3  0.000495248
  4  4.85889
  5  0.00360113
  6  32.8377
  7  2.63177
  8  16.0027
  9  4.51004
  10  4.89826
  11  5.96376e-05
  12  0.000411524
  13  0.630857
  14  0.00042552
  15  4.48102
  16  0.000835506
  17  0.353326
  18  0.000417233
  19  19.8864
  20  0.00270536
  21  2.90909
  22  1.06213e-06
  23  5.04505e-05
  24  6.68672
  25  0.171153
  26  0.196568
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.172e-04  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.476e+00  1.966e-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:  5.125e-01  1.712e-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: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724375/likelihoodResults_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.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) = 5648.25860282
delta logL = -0.000158024027769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.25844438
delta logL = 4.14414898842e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7590       1.0000          .0000       10.000    
     3 'Normalizat'    .51248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4758       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=   5648.258     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      260 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10828        .90712E-01** at limit **
   2  Index         2.8005        7.3867        .50000       -.98796E-05
   3  Normalizat    .51248        .55137E-03    .66623E-01   -.35880E-03
   4  Prefactor     1.4758        .67760E-03    .50464E-01   -.30727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.80048
  Normalizat = 0.512475
  Prefactor  = 1.47577
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.258     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.773        .34343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8005        7.1351        .50000       -.45549    
   3  Normalizat    .51248        .48225E-02    .29487E-03   -1.1184    
   4  Prefactor     1.4758        .59378E-02    .22308E-03   -.78221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03993e-08
Minuit parameter uncertainties:
  1  0.000408019
  2  126.83
  3  0.00482251
  4  0.0059378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724375': 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) = 5648.25844424
delta logL = 5.55994120077e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.080e-04  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.800e+00  1.268e+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.476e+00  5.938e-03  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:  5.125e-01  4.823e-03  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/724375/cmap_HighResolution_579139201_579398401_4FGL_J1330.7+2933_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-08 01:02:30.138454', job_id='724375', GAL2='1.48', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1631088150.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='5.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1311' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:02:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 724375: <4FGL_J1330.7+2933_daily_bin1311> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1311> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 00:50:48 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:51:11 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:51:11 2021
Terminated at Wed Sep  8 01:02:30 2021
Results reported at Wed Sep  8 01:02:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1311 202.693 29.5536 579139201 579398401 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 :                                   657.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            702 sec.

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

