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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1224
RA = 202.693, Dec = 29.5536
tmin = 556588801, tmax = 556848001
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='724248', job_status='RUN', time_executed='2021-09-08 00:54:32.423510', time_epoch_executed='1631087672.42' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724248/ft1_4FGL_J1330.7+2933_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724248/ft1_4FGL_J1330.7+2933_daily_bin1224.fits outfile=/scratch/kocevski/724248/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1224.fits ra=202.693 dec=29.5536 rad=12.0 tmin=556588801.0 tmax=556848001.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.73
user 3.44
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.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/724248/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.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/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/724248/ltcube_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.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/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits
.....................!
real 17.55
user 17.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/724248/ltcube_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.fits outfile=/scratch/kocevski/724248/expmap_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.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/724248/ltcube_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.fits
.....................!
real 193.97
user 188.02
sys 4.69

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/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits outfile=/scratch/kocevski/724248/cmap_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits outfile=/scratch/kocevski/724248/cmap_HighResolution_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=202.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/724248/ft2_4FGL_J1330.7+2933_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724248/Model_4FGL_J1330.7+2933_daily_bin1224.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/724248/ft1_filtered_4FGL_J1330.7+2933_daily_bin1224.fits.......................!
real 21.27
user 19.71
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57176E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    188.17       1.0000         .10000E-03   10000.    
     9 'norm      '    43.728       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0426       1.0000         .10000E-03   10000.    
    11 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.079       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.347       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.000       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.927       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.481       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2620       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=   1202.157     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3030 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.415       -.57129E-06** at limit **
   2  Prefactor     .10000E-03    190.60        .80626E-08** at limit **
   3  Prefactor     .10000E-03    57.881        .16112E-05** at limit **
   4  Prefactor     .10000E-03    21.847       -.18911E-05** at limit **
   5  norm          .10000E-03    17.837        .56114E-07** at limit **
   6  Prefactor     .10005E-03    1012.1       -.19230E-06** at limit **
   7  norm          .10000E-03    8.8360        .92423E-06** at limit **
   8  Prefactor     188.06        120.54       -.33487E-05   -.15058E-03
   9  norm          43.745        34.080       -.20419E-05   -.18615E-03
  10  norm          8.0403        15.835       -.91184E-05   -.34190E-03
  11  norm          .10000E-03    12.754        .19667E-06** at limit **
  12  norm          14.119        96.072       -.23811E-06    .80665E-05
  13  Prefactor     .10000E-03    5.6982       -.93101E-07** at limit **
  14  Prefactor     .10000E-03    27.904        .27422E-06** at limit **
  15  norm          10.345        18.822       -.56045E-06   -.77010E-05
  16  Prefactor     .10000E-03    83.311        .63209E-06** at limit **
  17  norm          .10000E-03    9.0197        .10611E-06** at limit **
  18  Prefactor     36.970        43.738       -.30939E-06   -.31700E-04
  19  Prefactor     .10000E-03    23.557       -.95648E-07** at limit **
  20  Prefactor     28.644        425.07       -.12660E-04   -.24952E-04
  21  Prefactor     .10000E-03    3.5939        .16737E-06** at limit **
  22  Prefactor     .10000E-03    28.098        .88664E-06** at limit **
  23  norm          .10000E-03    4.0912        .33812E-07** at limit **
  24  Prefactor     10.480        9.6089       -.23804E-06   -.13013E-05
  25  Normalizat    1.0681        .51315        .16412E-04   -.22965E-03
  26  Prefactor     1.2628        .53758       -.16655E-04    .41002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100054
  norm       = 0.0001
  Prefactor  = 188.058
  norm       = 43.745
  norm       = 8.04029
  norm       = 0.0001
  norm       = 14.1193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3447
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 36.9701
  Prefactor  = 0.0001
  Prefactor  = 28.6444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.48
  Normalizat = 1.06809
  Prefactor  = 1.26282
 **********
 **   18 **HESSE 
 **********

 FCN=   1202.157     FROM HESSE     STATUS=OK           440 CALLS     3470 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    190.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.840        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.889        .14298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    1021.8        .19012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.8476        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     188.06        120.60        .14719E-03   -1.2957    
   9  norm          43.745        34.165        .60626E-04   -1.4384    
  10  norm          8.0403        15.877        .14138E-03   -1.5141    
  11  norm          .10000E-03    12.761        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.119        95.647        .10675E-03   -1.4956    
  13  Prefactor     .10000E-03    5.7008        .80803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.931        .17899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.345        18.828        .12456E-03   -1.5065    
  16  Prefactor     .10000E-03    83.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.0204        .10170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.970        43.811        .65888E-04   -1.4491    
  19  Prefactor     .10000E-03    23.562        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.644        434.19        .37246E-03   -1.4637    
  21  Prefactor     .10000E-03    3.6007        .64197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.154        .17960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.0931        .68504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.480        9.6195        .98608E-04   -1.5060    
  25  Normalizat    1.0681        .58221        .27015E-03   -.90783    
  26  Prefactor     1.2628        .60691        .27903E-03   -.84419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4531e-09
Minuit parameter uncertainties:
  1  0.000237348
  2  7.5337e-05
  3  8.63665e-05
  4  9.66793e-05
  5  0.000235713
  6  0.0151387
  7  3.16346e-05
  8  120.759
  9  34.1799
  10  15.8852
  11  8.18142e-05
  12  73.6673
  13  4.07919e-05
  14  0.000204352
  15  18.8391
  16  0.000773739
  17  5.04638e-06
  18  43.8487
  19  2.28551e-05
  20  225.024
  21  1.25945e-06
  22  0.000114962
  23  1.40716e-06
  24  9.62092
  25  0.585749
  26  0.610334
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.697e+01  4.385e+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.263e+00  6.103e-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.068e+00  5.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 9.38e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.89e-05

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

Saving results to:
/scratch/kocevski/724248/likelihoodResults_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.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) = 1202.11982275
delta logL = 0.0372051104205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1202.1191808
delta logL = 0.0378470580383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.951       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7462       1.0000          .0000       10.000    
     3 'Normalizat'    1.0558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2731       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=   1202.119     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      292 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.915        57.493        .80195E-04   -.84349E-05
   2  Index         2.7445        1.2486        .43327E-02    .92763E-04
   3  Normalizat    1.0571        .53726        .27132E-03   -.39921E-04
   4  Prefactor     1.2725        .59468        .27814E-03    .24868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9145
  Index      = 2.74453
  Normalizat = 1.05712
  Prefactor  = 1.27249
 **********
 **   18 **HESSE 
 **********

 FCN=   1202.119     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.915        52.917        .32078E-05   -1.4709    
   2  Index         2.7445        1.1509        .86654E-03   -.46799    
   3  Normalizat    1.0571        .53788        .10853E-04   -.91141    
   4  Prefactor     1.2725        .59527        .55628E-04   -.84129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24081e-10
Minuit parameter uncertainties:
  1  53.0172
  2  1.1641
  3  0.540688
  4  0.598484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724248': 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) = 1202.11916918
delta logL = 0.0378586767367

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.491e+01  5.302e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.745e+00  1.164e+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.272e+00  5.985e-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.057e+00  5.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.74 +/- 1.16
Photon Flux (Free Index): 8.86e-08 +/- 1.05e-07
Energy Flux (Free Index): 2.06e-05 +/- 2.67e-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/724248/cmap_HighResolution_556588801_556848001_4FGL_J1330.7+2933_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-02', comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='2.06e-05', photon_flux_error='9.38e-08', dlogl='3.79e-02', energy_flux='2.44e-05', photon_flux2='8.86e-08', job_status='DONE', time_completed='2021-09-08 01:01:29.022667', photon_index_error2='1.16', photon_index2='2.74', ts='1.15', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='3.28e-07', energy_flux_error2='2.67e-05', EG='1.07', time_epoch_completed='1631088089.02', return_code='0', job_id='724248', GAL2='1.27', EG2='1.06', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='1.05e-07', ts2='1.22', photon_index='2.45' WHERE bin_id='1224' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:01:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 724248: <4FGL_J1330.7+2933_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1224 202.693 29.5536 556588801 556848001 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 :                                   408.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            649 sec.

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

