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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1022
RA = 202.693, Dec = 29.5536
tmin = 504230401, tmax = 504489601
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='722770', job_status='RUN', time_executed='2021-09-08 00:47:39.241811', time_epoch_executed='1631087259.24' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722770/ft1_4FGL_J1330.7+2933_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722770/ft1_4FGL_J1330.7+2933_daily_bin1022.fits outfile=/scratch/kocevski/722770/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1022.fits ra=202.693 dec=29.5536 rad=12.0 tmin=504230401.0 tmax=504489601.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.59
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/722770/ltcube_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.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/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits
.....................!
real 14.74
user 14.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/722770/ltcube_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.fits outfile=/scratch/kocevski/722770/expmap_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.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/722770/ltcube_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.fits
.....................!
real 195.00
user 188.46
sys 5.87

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/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits scfile=/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits outfile=/scratch/kocevski/722770/cmap_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits scfile=/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits outfile=/scratch/kocevski/722770/cmap_HighResolution_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/722770/ft2_4FGL_J1330.7+2933_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722770/Model_4FGL_J1330.7+2933_daily_bin1022.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/722770/ft1_filtered_4FGL_J1330.7+2933_daily_bin1022.fits.....................!
real 47.55
user 46.05
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1946       1.0000         .10000E-03   10000.    
     5 'norm      '    17.332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3017       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72853E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.291       1.0000         .10000E-03   10000.    
    16 'Prefactor '    105.58       1.0000         .10000E-03   10000.    
    17 'norm      '    14.238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15763       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2541       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68288       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=   5552.668     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3147 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2841        .36890E-07** at limit **
   2  Prefactor     .10000E-03    44.025       -.48498E-06** at limit **
   3  Prefactor     .15618        8.6100        .27249E-05   -.40373E-03
   4  Prefactor     3.1926        5.0240        .23690E-05    .69887E-04
   5  norm          17.330        7.1452        .65680E-06    .59345E-03
   6  Prefactor     2.2863        77.958       -.87095E-05   -.48761E-04
   7  norm          5.0674        3.5627        .67135E-08   -.59338E-04
   8  Prefactor     .10000E-03    7.1418        .20559E-06** at limit **
   9  norm          .10000E-03    1.9086        .91116E-07** at limit **
  10  norm          .10000E-03    1.3011        .10971E-06** at limit **
  11  norm          .10000E-03    1.8905        .23596E-07** at limit **
  12  norm          .10000E-03    9.9332       -.15581E-07** at limit **
  13  Prefactor     .10000E-03    1.8697        .18817E-07** at limit **
  14  Prefactor     .10000E-03    4.9293        .60089E-07** at limit **
  15  norm          13.289        9.0964        .59443E-07    .74279E-06
  16  Prefactor     105.60        77.408        .61647E-06   -.22524E-05
  17  norm          14.239        10.908       -.73509E-07    .85713E-05
  18  Prefactor     10.162        15.329       -.82693E-06   -.10005E-04
  19  Prefactor     .10000E-03    10.777        .17640E-06** at limit **
  20  Prefactor     .10000E-03    103.23       -.69437E-07** at limit **
  21  Prefactor     .10000E-03    2.1157       -.44377E-08** at limit **
  22  Prefactor     .13481E-03    11.104       -.42134E-06** at limit **
  23  norm          3.3610        3.6968       -.56523E-08    .35842E-05
  24  Prefactor     .10000E-03    1.5960       -.33616E-07** at limit **
  25  Normalizat    1.2540        .17597       -.66049E-06    .19021E-04
  26  Prefactor     .68319        .18039        .90398E-06    .10860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.156182
  Prefactor  = 3.19262
  norm       = 17.3301
  Prefactor  = 2.28631
  norm       = 5.06743
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2893
  Prefactor  = 105.601
  norm       = 14.239
  Prefactor  = 10.1623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000134809
  norm       = 3.36101
  Prefactor  = 0.0001
  Normalizat = 1.25403
  Prefactor  = 0.683194
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.668     FROM HESSE     STATUS=OK           464 CALLS     3611 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15618        49.999        .34610E-02   -1.5629    
   4  Prefactor     3.1926        5.1634        .10437E-02   -1.5351    
   5  norm          17.330        7.2296        .96204E-04   -1.4875    
   6  Prefactor     2.2863        79.507        .27049E-03   -1.5406    
   7  norm          5.0674        3.5575        .11382E-03   -1.5258    
   8  Prefactor     .10000E-03    7.1632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9147        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3098        .82996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8966        .10005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.284        .18895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9339        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.289        9.0989        .10987E-03   -1.4979    
  16  Prefactor     105.60        75.580        .39136E-04   -1.3649    
  17  norm          14.239        10.911        .10615E-03   -1.4953    
  18  Prefactor     10.162        15.263        .12568E-03   -1.5070    
  19  Prefactor     .10000E-03    10.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    103.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1405        .10579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13481E-03    16.429        .74536E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3610        3.6960        .14623E-03   -1.5341    
  24  Prefactor     .10000E-03    1.6043        .91925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2540        .20442        .21735E-03   -.84949    
  26  Prefactor     .68319        .21173        .30368E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80747e-09
Minuit parameter uncertainties:
  1  4.68767e-06
  2  9.67147e-05
  3  5.5918
  4  5.16414
  5  7.23001
  6  27.0034
  7  3.55761
  8  2.16127e-05
  9  6.83624e-06
  10  6.94029e-06
  11  1.87335e-06
  12  2.31762e-06
  13  1.19886e-05
  14  7.56788e-06
  15  9.09983
  16  75.6495
  17  10.9123
  18  15.269
  19  2.99144e-05
  20  0.000146838
  21  5.90288e-07
  22  0.0478418
  23  3.69629
  24  1.98383e-06
  25  0.204551
  26  0.211976
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.016e+01  1.527e+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:  6.832e-01  2.120e-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.254e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722770/likelihoodResults_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.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) = 5552.50646879
delta logL = 0.16144216158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.49378508
delta logL = 0.174125873162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.646       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7494       1.0000          .0000       10.000    
     3 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66897       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=   5552.494     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 70.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.645        15.105       -.26372E-05    .59829E-03
   2  Index         1.7492        .56971        .82136E-05    .22249E-03
   3  Normalizat    1.2714        .16852       -.32373E-06   -.17656E-03
   4  Prefactor     .66898        .17964        .40818E-06   -.98566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6452
  Index      = 1.74925
  Normalizat = 1.27139
  Prefactor  = 0.668978
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.494     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.645        17.952        .10843E-03   -1.4969    
   2  Index         1.7492        .84308        .12534E-01   -.70778    
   3  Normalizat    1.2714        .19496        .21606E-03   -.84424    
   4  Prefactor     .66898        .20748        .30643E-03   -1.0476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75824e-09
Minuit parameter uncertainties:
  1  17.9592
  2  0.850159
  3  0.195067
  4  0.207716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722770': 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) = 5552.49378505
delta logL = 0.174125902678

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.365e+01  1.796e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.749e+00  8.502e-01  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  6.690e-01  2.077e-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.271e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/722770/cmap_HighResolution_504230401_504489601_4FGL_J1330.7+2933_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-08 00:59:00.276033', job_id='722770', GAL2='0.67', fit_tolerance='1e-08', EG2='1.27', EG='1.25', time_epoch_completed='1631087940.28', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.74e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1022' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:59:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 722770: <4FGL_J1330.7+2933_daily_bin1022> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1022> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:28 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45: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:45:30 2021
Terminated at Wed Sep  8 00:59:01 2021
Results reported at Wed Sep  8 00:59:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1022 202.693 29.5536 504230401 504489601 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

