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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1401
RA = 202.693, Dec = 29.5536
tmin = 602467201, tmax = 602726401
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='724496', job_status='RUN', time_executed='2021-09-08 00:54:02.962568', time_epoch_executed='1631087642.96' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724496

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724496/ft1_4FGL_J1330.7+2933_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724496/ft1_4FGL_J1330.7+2933_daily_bin1401.fits outfile=/scratch/kocevski/724496/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1401.fits ra=202.693 dec=29.5536 rad=12.0 tmin=602467201.0 tmax=602726401.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.24
user 2.98
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.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/724496/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/724496/ltcube_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.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/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits
.....................!
real 17.09
user 16.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/724496/ltcube_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.fits outfile=/scratch/kocevski/724496/expmap_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.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/724496/ltcube_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.fits
.....................!
real 192.70
user 187.18
sys 5.07

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/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits outfile=/scratch/kocevski/724496/cmap_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits outfile=/scratch/kocevski/724496/cmap_HighResolution_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/724496/ft2_4FGL_J1330.7+2933_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724496/Model_4FGL_J1330.7+2933_daily_bin1401.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/724496/ft1_filtered_4FGL_J1330.7+2933_daily_bin1401.fits.....................!
real 41.33
user 39.78
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    99.130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2843       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7370       1.0000         .10000E-03   10000.    
     9 'norm      '    .10984E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.060       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15970       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11516E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2715       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .47307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.016       1.0000         .10000E-03   10000.    
    23 'norm      '    .82016       1.0000         .10000E-03   10000.    
    24 'Prefactor '    92.563       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81855       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2511       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=   4674.119     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3090 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.012       -.22857E-06** at limit **
   2  Prefactor     99.107        150.24        .69416E-07   -.85567E-05
   3  Prefactor     6.6892        6.6046       -.77778E-07   -.30731E-04
   4  Prefactor     .10000E-03    5.1706       -.38895E-06** at limit **
   5  norm          .10000E-03    5.3225       -.27734E-05** at limit **
   6  Prefactor     9.2403        35.854        .19916E-06   -.53346E-04
   7  norm          4.5485        4.2127        .53603E-07    .84099E-05
   8  Prefactor     2.7370        25.297        .38905E-06    .93767E-05
   9  norm          .10000E-03    16.987       -.23817E-05** at limit **
  10  norm          .10000E-03    9.4658       -.13954E-05** at limit **
  11  norm          18.026        12.162       -.26036E-06    .58132E-06
  12  norm          .10000E-03    9.9356        .14331E-06** at limit **
  13  Prefactor     .18043        3.2594        .81459E-06   -.43930E-03
  14  Prefactor     .10000E-03    22.488       -.16849E-06** at limit **
  15  norm          14.608        9.0988        .35726E-07   -.38039E-04
  16  Prefactor     .10000E-03    35.764       -.76663E-07** at limit **
  17  norm          .10000E-03    5.1224        .40797E-07** at limit **
  18  Prefactor     5.9894        17.399        .48582E-06   -.58017E-04
  19  Prefactor     .10000E-03    30.454        .61788E-07** at limit **
  20  Prefactor     6.2759        374.19        .23027E-05   -.41350E-05
  21  Prefactor     .50732        4.1671        .15346E-05   -.77669E-03
  22  Prefactor     13.020        13.995        .12144E-06   -.11045E-04
  23  norm          .82129        6.5925        .33779E-05    .15130E-03
  24  Prefactor     92.563        10.988       -.13533E-06   -.44112E-03
  25  Normalizat    .81840        .22978       -.21438E-06   -.26142E-03
  26  Prefactor     1.2509        .23758       -.78648E-06   -.20786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 99.1067
  Prefactor  = 6.68922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.24032
  norm       = 4.54848
  Prefactor  = 2.73702
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 18.0263
  norm       = 0.0001
  Prefactor  = 0.18043
  Prefactor  = 0.0001
  norm       = 14.6082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.98935
  Prefactor  = 0.0001
  Prefactor  = 6.27587
  Prefactor  = 0.50732
  Prefactor  = 13.0198
  norm       = 0.821285
  Prefactor  = 92.5627
  Normalizat = 0.818404
  Prefactor  = 1.25092
 **********
 **   18 **HESSE 
 **********

 FCN=   4674.119     FROM HESSE     STATUS=OK           462 CALLS     3552 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     99.107        150.44        .20188E-03   -1.3714    
   3  Prefactor     6.6892        6.6096        .15515E-03   -1.5191    
   4  Prefactor     .10000E-03    5.1845        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.4068        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2403        35.874        .13153E-03   -1.5100    
   7  norm          4.5485        4.2097        .13121E-03   -1.5281    
   8  Prefactor     2.7370        25.123        .24611E-03   -1.5377    
   9  norm          .10000E-03    17.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.5380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.026        12.052        .94245E-04   -1.4859    
  12  norm          .10000E-03    9.9394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18043        36.175        .21829E-02   -1.5623    
  14  Prefactor     .10000E-03    22.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.608        9.1142        .10481E-03   -1.4943    
  16  Prefactor     .10000E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1354        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9894        17.406        .16385E-03   -1.5218    
  19  Prefactor     .10000E-03    30.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2759        381.57        .16029E-03   -1.5207    
  21  Prefactor     .50732        14.386        .22512E-02   -1.5566    
  22  Prefactor     13.020        14.011        .11103E-03   -1.4986    
  23  norm          .82129        6.7509        .33613E-03   -1.5527    
  24  Prefactor     92.563        11.013        .41770E-04   -1.3781    
  25  Normalizat    .81840        .28044        .29138E-03   -.99390    
  26  Prefactor     1.2509        .28885        .27322E-03   -.84778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16536e-09
Minuit parameter uncertainties:
  1  5.2142e-06
  2  151.02
  3  6.61037
  4  5.09036e-06
  5  0.000101221
  6  35.9574
  7  4.20993
  8  16.5937
  9  0.000203988
  10  5.95655e-05
  11  12.0535
  12  3.94754e-05
  13  5.11134
  14  3.00136e-05
  15  9.11506
  16  8.2583e-05
  17  2.67806e-06
  18  17.4202
  19  6.42157e-05
  20  98.535
  21  5.40395
  22  14.0143
  23  4.70977
  24  11.0133
  25  0.280938
  26  0.289216
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.989e+00  1.742e+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:  1.251e+00  2.892e-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.184e-01  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724496/likelihoodResults_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.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) = 4674.11589733
delta logL = 0.00357001421889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4674.11508649
delta logL = 0.00438085666428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3303       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5827       1.0000          .0000       10.000    
     3 'Normalizat'    .81636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2525       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=   4674.115     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3293        18.999        .17408E-03    .17241E-03
   2  Index         2.5788        1.5080        .11714E-01    .64145E-04
   3  Normalizat    .81677        .25076        .29165E-03   -.12996E-03
   4  Prefactor     1.2520        .28314        .27312E-03   -.11395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3293
  Index      = 2.5788
  Normalizat = 0.816769
  Prefactor  = 1.25201
 **********
 **   18 **HESSE 
 **********

 FCN=   4674.115     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3293        17.441        .69631E-05   -1.5246    
   2  Index         2.5788        1.3889        .46856E-03   -.50549    
   3  Normalizat    .81677        .25108        .11666E-04   -.99450    
   4  Prefactor     1.2520        .28340        .54624E-04   -.84745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28708e-10
Minuit parameter uncertainties:
  1  17.4575
  2  1.41334
  3  0.251435
  4  0.283743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724496': 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) = 4674.11507956
delta logL = 0.00438778044736

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.329e+00  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.579e+00  1.413e+00  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.252e+00  2.837e-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.168e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/724496/cmap_HighResolution_602467201_602726401_4FGL_J1330.7+2933_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 01:06:18.204547', job_id='724496', GAL2='1.25', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631088378.2', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.39e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1401' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 724496: <4FGL_J1330.7+2933_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1401 202.693 29.5536 602467201 602726401 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            922 sec.

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

