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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1003
RA = 202.693, Dec = 29.5536
tmin = 499305601, tmax = 499564801
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='722736', job_status='RUN', time_executed='2021-09-08 00:48:11.220733', time_epoch_executed='1631087291.22' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722736/ft1_4FGL_J1330.7+2933_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722736/ft1_4FGL_J1330.7+2933_daily_bin1003.fits outfile=/scratch/kocevski/722736/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1003.fits ra=202.693 dec=29.5536 rad=12.0 tmin=499305601.0 tmax=499564801.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.46
user 5.16
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.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/722736/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/722736/ft1_filtered_4FGL_J1330.7+2933_daily_bin1003.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722736/ft1_filtered_4FGL_J1330.7+2933_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/722736/ltcube_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.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/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits
.....................!
real 15.89
user 15.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722736/ft1_filtered_4FGL_J1330.7+2933_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/722736/ltcube_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.fits outfile=/scratch/kocevski/722736/expmap_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.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/722736/ltcube_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.fits
.....................!
real 193.31
user 188.50
sys 4.31

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/722736/ft1_filtered_4FGL_J1330.7+2933_daily_bin1003.fits scfile=/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits outfile=/scratch/kocevski/722736/cmap_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722736/ft1_filtered_4FGL_J1330.7+2933_daily_bin1003.fits scfile=/scratch/kocevski/722736/ft2_4FGL_J1330.7+2933_daily_bin1003.fits outfile=/scratch/kocevski/722736/cmap_HighResolution_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    224.90       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6630       1.0000         .10000E-03   10000.    
     5 'norm      '    10.125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15278E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.877       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.5115       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92343       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99382       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=   4610.445     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3084 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.060       -.25001E-05** at limit **
   2  Prefactor     224.86        142.02       -.10829E-04   -.31936E-03
   3  Prefactor     .10000E-03    3.5236        .21059E-05** at limit **
   4  Prefactor     3.6586        8.3026        .48825E-05   -.11946E-02
   5  norm          10.125        7.6587        .61377E-06    .42327E-05
   6  Prefactor     .10000E-03    22.750       -.50661E-06** at limit **
   7  norm          .10000E-03    3.3861        .37522E-06** at limit **
   8  Prefactor     .10000E-03    17.978        .57411E-06** at limit **
   9  norm          .10000E-03    4.0346       -.63889E-06** at limit **
  10  norm          .10000E-03    2.9284       -.24218E-07** at limit **
  11  norm          .10000E-03    3.2348        .10080E-06** at limit **
  12  norm          23.657        22.589       -.10953E-07   -.17279E-04
  13  Prefactor     5.9449        4.7774       -.17185E-06   -.71466E-04
  14  Prefactor     .10000E-03    10.174       -.32914E-06** at limit **
  15  norm          .10000E-03    5.4165       -.77787E-06** at limit **
  16  Prefactor     .10000E-03    105.14       -.13308E-05** at limit **
  17  norm          21.881        12.840       -.22315E-07    .11900E-05
  18  Prefactor     23.366        26.940       -.46166E-06   -.71879E-04
  19  Prefactor     .10000E-03    33.241        .38878E-05** at limit **
  20  Prefactor     .10000E-03    24.265       -.20042E-05** at limit **
  21  Prefactor     .10000E-03    2.7715        .66958E-07** at limit **
  22  Prefactor     .10000E-03    5.0054        .76654E-06** at limit **
  23  norm          5.5114        4.9770        .63501E-08    .98064E-04
  24  Prefactor     .10000E-03    3.4150       -.19001E-05** at limit **
  25  Normalizat    .92363        .20319        .63657E-06   -.17644E-04
  26  Prefactor     .99364        .21248       -.58040E-06    .25401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 224.858
  Prefactor  = 0.000100001
  Prefactor  = 3.65865
  norm       = 10.1247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.6567
  Prefactor  = 5.9449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.8812
  Prefactor  = 23.3659
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51136
  Prefactor  = 0.000100001
  Normalizat = 0.923631
  Prefactor  = 0.993635
 **********
 **   18 **HESSE 
 **********

 FCN=   4610.445     FROM HESSE     STATUS=OK           450 CALLS     3534 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     224.86        148.45        .13489E-03   -1.2698    
   3  Prefactor     .10000E-03    3.6014        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6586        10.227        .10553E-02   -1.5325    
   5  norm          10.125        7.7045        .12593E-03   -1.5071    
   6  Prefactor     .10000E-03    22.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9185        .24142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0595        .13327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9555        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2454        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.657        22.547        .82363E-04   -1.4735    
  13  Prefactor     5.9449        4.7780        .12594E-03   -1.5220    
  14  Prefactor     .10000E-03    10.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4460        .15428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    105.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.881        12.837        .85635E-04   -1.4772    
  18  Prefactor     23.366        27.158        .82857E-04   -1.4741    
  19  Prefactor     .10000E-03    33.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8145        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0205        .14849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.5114        4.9762        .13889E-03   -1.5238    
  24  Prefactor     .10000E-03    3.5577        .24664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92363        .24156        .24624E-03   -.95635    
  26  Prefactor     .99364        .25082        .25822E-03   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85141e-09
Minuit parameter uncertainties:
  1  0.000401253
  2  148.7
  3  0.000115583
  4  10.2315
  5  7.70528
  6  4.57652e-05
  7  7.26042e-05
  8  7.09723e-05
  9  3.73824e-05
  10  7.34196e-07
  11  4.37337e-06
  12  22.5554
  13  4.77834
  14  2.60214e-05
  15  5.41229e-05
  16  0.000394874
  17  12.8383
  18  27.1724
  19  0.000658645
  20  0.000297219
  21  6.17088e-07
  22  4.82894e-05
  23  4.97659
  24  0.000101314
  25  0.241845
  26  0.251119
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.337e+01  2.717e+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:  9.936e-01  2.511e-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:  9.236e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722736/likelihoodResults_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.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) = 4609.69096617
delta logL = 0.754521174254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4609.68323057
delta logL = 0.762256772339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8502       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5163       1.0000          .0000       10.000    
     3 'Normalizat'    .84780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   4609.683     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      272 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8485        35.304        .12631E-03   -.12464E-02
   2  Index         3.5164        2.1542        .41850E-02   -.40599E-03
   3  Normalizat    .84776        .24395        .25556E-03   -.63916E-03
   4  Prefactor     1.0494        .25920        .25196E-03   -.55847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8485
  Index      = 3.51645
  Normalizat = 0.847761
  Prefactor  = 1.04938
 **********
 **   18 **HESSE 
 **********

 FCN=   4609.683     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8485        15.822        .50525E-05   -1.5148    
   2  Index         3.5164        1.0511        .16740E-03   -.30125    
   3  Normalizat    .84776        .24238        .51112E-04   -.98321    
   4  Prefactor     1.0494        .25548        .50392E-04   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64583e-09
Minuit parameter uncertainties:
  1  15.8301
  2  1.05975
  3  0.242686
  4  0.255776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722736': 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) = 4609.68323055
delta logL = 0.762256792928

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  7.848e+00  1.583e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.516e+00  1.060e+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.049e+00  2.558e-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.478e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.52 +/- 1.06
Photon Flux (Free Index): 1.18e-07 +/- 8.92e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.45e-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/722736/cmap_HighResolution_499305601_499564801_4FGL_J1330.7+2933_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='1.96e-05', dlogl='7.62e-01', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-08 00:58:20.939709', photon_index_error2='1.06', photon_index2='3.52', ts='0.92', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.45e-05', EG='0.92', time_epoch_completed='1631087900.94', return_code='0', job_id='722736', GAL2='1.05', EG2='0.85', return_code2='0', photon_flux_error2='8.92e-08', ts2='2.62', photon_index='2.45' WHERE bin_id='1003' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:58:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 722736: <4FGL_J1330.7+2933_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1003> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:24 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:45:28 2021
Terminated at Wed Sep  8 00:58:21 2021
Results reported at Wed Sep  8 00:58:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1003 202.693 29.5536 499305601 499564801 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 :                                   605.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            777 sec.

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

