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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1282
RA = 202.693, Dec = 29.5536
tmin = 571622401, tmax = 571881601
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='724332', job_status='RUN', time_executed='2021-09-08 00:53:36.633115', time_epoch_executed='1631087616.63' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724332/ft1_4FGL_J1330.7+2933_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724332/ft1_4FGL_J1330.7+2933_daily_bin1282.fits outfile=/scratch/kocevski/724332/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1282.fits ra=202.693 dec=29.5536 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.74
user 2.54
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.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/724332/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/724332/ft1_filtered_4FGL_J1330.7+2933_daily_bin1282.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/724332/ft1_filtered_4FGL_J1330.7+2933_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/724332/ltcube_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.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/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.fits
.....................!
real 19.56
user 19.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724332/ft1_filtered_4FGL_J1330.7+2933_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/724332/ltcube_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.fits outfile=/scratch/kocevski/724332/expmap_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.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/724332/ltcube_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.fits
.....................!
real 192.01
user 186.34
sys 5.04

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/724332/ft1_filtered_4FGL_J1330.7+2933_daily_bin1282.fits scfile=/scratch/kocevski/724332/ft2_4FGL_J1330.7+2933_daily_bin1282.fits outfile=/scratch/kocevski/724332/cmap_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8326       1.0000         .10000E-03   10000.    
     5 'norm      '    .10618E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.130       1.0000         .10000E-03   10000.    
     7 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9676       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8163       1.0000         .10000E-03   10000.    
    11 'norm      '    .21902E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.6584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.970       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.368       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.300       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96184       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79757       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=   4500.355     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3195 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.019       -.25977E-05** at limit **
   2  Prefactor     .10000E-03    108.35        .81126E-05** at limit **
   3  Prefactor     .10000E-03    4.5207        .35579E-07** at limit **
   4  Prefactor     3.8317        6.7459       -.18217E-07    .32936E-04
   5  norm          .10002E-03    14.564        .38323E-05** at limit **
   6  Prefactor     47.132        50.868        .26951E-05    .11990E-03
   7  norm          .10000E-03    3.5072       -.33762E-06** at limit **
   8  Prefactor     .10000E-03    11.517        .26902E-05** at limit **
   9  norm          4.9748        8.1231        .25046E-05    .58158E-03
  10  norm          1.8264        5.2661       -.74770E-06   -.32853E-03
  11  norm          .10000E-03    9.6171       -.13122E-05** at limit **
  12  norm          5.6623        18.990        .14986E-06    .63813E-05
  13  Prefactor     3.7093        5.5780       -.65935E-07   -.55411E-04
  14  Prefactor     .10009E-03    16.979        .29184E-05** at limit **
  15  norm          17.131        12.593        .29760E-08    .12914E-04
  16  Prefactor     .10000E-03    25.041        .32918E-05** at limit **
  17  norm          22.573        16.709        .19706E-07    .96507E-05
  18  Prefactor     .10000E-03    4.6737       -.15574E-07** at limit **
  19  Prefactor     .10000E-03    5.4328        .47760E-07** at limit **
  20  Prefactor     .10000E-03    93.473       -.32139E-05** at limit **
  21  Prefactor     12.970        5.8905        .25273E-06    .28939E-03
  22  Prefactor     11.368        14.324        .36138E-07    .46493E-05
  23  norm          .10000E-03    4.7238        .10912E-06** at limit **
  24  Prefactor     20.300        6.2309       -.31604E-07   -.78449E-05
  25  Normalizat    .96177        .19572        .51538E-07    .49314E-04
  26  Prefactor     .79751        .20252       -.86978E-07    .28645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8317
  norm       = 0.000100024
  Prefactor  = 47.132
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9748
  norm       = 1.82638
  norm       = 0.000100004
  norm       = 5.66233
  Prefactor  = 3.70933
  Prefactor  = 0.000100089
  norm       = 17.1306
  Prefactor  = 0.0001
  norm       = 22.5732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9702
  Prefactor  = 11.3679
  norm       = 0.0001
  Prefactor  = 20.3003
  Normalizat = 0.961767
  Prefactor  = 0.797507
 **********
 **   18 **HESSE 
 **********

 FCN=   4500.355     FROM HESSE     STATUS=OK           462 CALLS     3657 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    107.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5343        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8317        6.7254        .20616E-03   -1.5316    
   5  norm          .10002E-03    20.089        .33568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.132        45.771        .58407E-04   -1.4334    
   7  norm          .10000E-03    8.2613        .24212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9748        9.0162        .90220E-03   -1.5262    
  10  norm          1.8264        4.3980        .19711E-03   -1.5438    
  11  norm          .10000E-03    17.450        .32641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6623        18.926        .16887E-03   -1.5232    
  13  Prefactor     3.7093        5.1367        .15394E-03   -1.5323    
  14  Prefactor     .10009E-03    59.764        .43758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.131        12.603        .96766E-04   -1.4880    
  16  Prefactor     .10000E-03    24.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.573        16.739        .84309E-04   -1.4757    
  18  Prefactor     .10000E-03    4.6762        .14164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4336        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    93.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.970        5.9308        .51665E-03   -1.4988    
  22  Prefactor     11.368        14.326        .11882E-03   -1.5034    
  23  norm          .10000E-03    4.9041        .28457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.300        6.2377        .88898E-04   -1.4807    
  25  Normalizat    .96177        .23109        .23417E-03   -.94323    
  26  Prefactor     .79751        .23814        .27606E-03   -.99820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56383e-09
Minuit parameter uncertainties:
  1  2.58931e-06
  2  0.000228173
  3  1.40736e-06
  4  6.72675
  5  0.00139487
  6  45.8056
  7  2.38134e-05
  8  4.83975e-05
  9  9.01868
  10  4.39881
  11  0.000549878
  12  18.946
  13  5.13728
  14  0.00460436
  15  12.6046
  16  4.37329e-05
  17  16.7425
  18  1.97359e-06
  19  1.25632e-06
  20  2.86746e-06
  21  5.93105
  22  14.3306
  23  5.3147e-06
  24  6.23793
  25  0.231328
  26  0.238445
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.974e-06  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:  7.975e-01  2.384e-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.618e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724332/likelihoodResults_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4500.35612085
delta logL = -0.00100810341701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4500.35511332
delta logL = -5.76567799726e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4242       1.0000          .0000       10.000    
     3 'Normalizat'    .96199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79726       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=   4500.355     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.051        .14508E-01** at limit **
   2  Index         1.6801        5.6747        .50000       -.48476E-07
   3  Normalizat    .96177        .10193E-01    .23417E-03   -.29816E-03
   4  Prefactor     .79751        .11090E-01    .27606E-03   -.25047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68011
  Normalizat = 0.961766
  Prefactor  = 0.797506
 **********
 **   18 **HESSE 
 **********

 FCN=   4500.355     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    279.08        .17908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6801        6.9386        .50000       -.72613    
   3  Normalizat    .96177        .29954E-01    .46835E-04   -.94323    
   4  Prefactor     .79751        .32590E-01    .55213E-04   -.99820    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74343e-09
Minuit parameter uncertainties:
  1  0.000599428
  2  936.52
  3  0.0299545
  4  0.0325907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724332': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4500.35510874
delta logL = 4.00374756282e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.975e-01  3.259e-02  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.618e-01  2.995e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/724332/cmap_HighResolution_571622401_571881601_4FGL_J1330.7+2933_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-08 01:04:55.206378', job_id='724332', GAL2='0.80', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631088295.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1282' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 724332: <4FGL_J1330.7+2933_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1282 202.693 29.5536 571622401 571881601 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 :                                   610.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            851 sec.

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

