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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1099
RA = 202.693, Dec = 29.5536
tmin = 524188801, tmax = 524448001
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='722894', job_status='RUN', time_executed='2021-09-08 00:49:27.147413', time_epoch_executed='1631087367.15' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722894/ft1_4FGL_J1330.7+2933_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722894/ft1_4FGL_J1330.7+2933_daily_bin1099.fits outfile=/scratch/kocevski/722894/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1099.fits ra=202.693 dec=29.5536 rad=12.0 tmin=524188801.0 tmax=524448001.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.48
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.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/722894/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/722894/ft1_filtered_4FGL_J1330.7+2933_daily_bin1099.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722894/ft1_filtered_4FGL_J1330.7+2933_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/722894/ltcube_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.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/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits
.....................!
real 16.42
user 16.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722894/ft1_filtered_4FGL_J1330.7+2933_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/722894/ltcube_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.fits outfile=/scratch/kocevski/722894/expmap_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.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/722894/ltcube_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.fits
.....................!
real 192.51
user 187.75
sys 4.29

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/722894/ft1_filtered_4FGL_J1330.7+2933_daily_bin1099.fits scfile=/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits outfile=/scratch/kocevski/722894/cmap_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.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.57
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722894/ft1_filtered_4FGL_J1330.7+2933_daily_bin1099.fits scfile=/scratch/kocevski/722894/ft2_4FGL_J1330.7+2933_daily_bin1099.fits outfile=/scratch/kocevski/722894/cmap_HighResolution_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1191       1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6889       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.289       1.0000         .10000E-03   10000.    
     9 'norm      '    8.1714       1.0000         .10000E-03   10000.    
    10 'norm      '    .13519E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    93.377       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30279E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3920       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87030       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1087       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=   5709.274     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3657 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.130        .18210E-06** at limit **
   2  Prefactor     16.649        52.181        .44643E-05    .81525E-04
   3  Prefactor     .10000E-03    2.2734        .26676E-07** at limit **
   4  Prefactor     2.1205        5.1869       -.89738E-06    .88250E-04
   5  norm          .10000E-03    1.2733        .36101E-06** at limit **
   6  Prefactor     7.6382        28.022       -.40194E-05   -.29360E-03
   7  norm          2.5536        3.2659       -.27022E-06    .75479E-04
   8  Prefactor     34.286        21.561        .21950E-06   -.24670E-03
   9  norm          8.1726        7.1047        .63166E-07   -.37636E-03
  10  norm          .10001E-03    2.9365       -.11381E-05** at limit **
  11  norm          .10000E-03    2.6637       -.11799E-06** at limit **
  12  norm          .10000E-03    5.4785        .13683E-07** at limit **
  13  Prefactor     4.8268        4.5915       -.81134E-06   -.14253E-02
  14  Prefactor     .10000E-03    12.464        .49902E-06** at limit **
  15  norm          21.505        10.303        .46190E-07   -.32653E-04
  16  Prefactor     93.378        79.897        .85446E-06   -.13506E-03
  17  norm          8.8488        12.502       -.12521E-06    .38633E-04
  18  Prefactor     .10011E-03    97.091        .27370E-04** at limit **
  19  Prefactor     9.9982        22.348        .10979E-05   -.11441E-03
  20  Prefactor     77.224        67.470       -.17509E-05   -.15949E-03
  21  Prefactor     .10000E-03    1.0153       -.17229E-07** at limit **
  22  Prefactor     .10000E-03    22.297       -.49848E-06** at limit **
  23  norm          .10000E-03    4.8656       -.32590E-05** at limit **
  24  Prefactor     2.3920        4.4137       -.76184E-06    .17173E-03
  25  Normalizat    .87065        .18088       -.13376E-06   -.69516E-03
  26  Prefactor     1.1082        .19361        .12202E-06   -.49778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.6492
  Prefactor  = 0.0001
  Prefactor  = 2.12046
  norm       = 0.0001
  Prefactor  = 7.63823
  norm       = 2.55363
  Prefactor  = 34.286
  norm       = 8.17256
  norm       = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.82677
  Prefactor  = 0.0001
  norm       = 21.5047
  Prefactor  = 93.3783
  norm       = 8.84879
  Prefactor  = 0.000100114
  Prefactor  = 9.99816
  Prefactor  = 77.2241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 2.39204
  Normalizat = 0.870646
  Prefactor  = 1.1082
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.274     FROM HESSE     STATUS=OK           458 CALLS     4115 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.649        52.762        .98056E-04   -1.4892    
   3  Prefactor     .10000E-03    2.2779        .11126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1205        5.1162        .25182E-03   -1.5417    
   5  norm          .10000E-03    1.2760        .83270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6382        27.977        .14462E-03   -1.5155    
   7  norm          2.5536        3.2482        .14856E-03   -1.5388    
   8  Prefactor     34.286        21.515        .68434E-04   -1.4536    
   9  norm          8.1726        7.0776        .14025E-03   -1.5136    
  10  norm          .10001E-03    4.9888        .22945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6775        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.4796        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8268        4.5872        .12801E-03   -1.5269    
  14  Prefactor     .10000E-03    12.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.505        10.285        .86370E-04   -1.4780    
  16  Prefactor     93.378        79.582        .41589E-04   -1.3772    
  17  norm          8.8488        12.468        .13477E-03   -1.5113    
  18  Prefactor     .10011E-03    109.15        .43409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9982        21.603        .12657E-03   -1.5075    
  20  Prefactor     77.224        67.757        .45703E-04   -1.3948    
  21  Prefactor     .10000E-03    1.0207        .74333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    25.904        .27715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3920        4.3830        .20202E-03   -1.5399    
  25  Normalizat    .87065        .21519        .24328E-03   -.97499    
  26  Prefactor     1.1082        .23138        .25563E-03   -.89205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11292e-09
Minuit parameter uncertainties:
  1  3.31313e-05
  2  52.9107
  3  1.56753e-06
  4  5.11722
  5  5.22841e-06
  6  28.0248
  7  3.24842
  8  21.5201
  9  7.07831
  10  0.000485442
  11  1.79435e-05
  12  2.34993e-06
  13  4.58755
  14  0.000113719
  15  10.2863
  16  79.6731
  17  12.4717
  18  0.00707187
  19  21.6197
  20  67.8247
  21  6.86908e-07
  22  9.00807e-05
  23  0.000638406
  24  4.38359
  25  0.215402
  26  0.231585
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.001e-04  7.072e-03  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.108e+00  2.316e-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.706e-01  2.154e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722894/likelihoodResults_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.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) = 5709.2744046
delta logL = -4.26504666393e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5709.27440459
delta logL = -4.26416236223e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96348E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    .87064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1082       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=   5709.262     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      355 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68201        18.626        .36285E-03   -.80521E-05
   2  Index         3.2175        3.7541        .51313E-02   -.32214E-05
   3  Normalizat    .86354        .19873        .24420E-03   -.21657E-03
   4  Prefactor     1.1124        .22901        .25520E-03   -.91724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.682007
  Index      = 3.21752
  Normalizat = 0.86354
  Prefactor  = 1.11236
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.262     FROM HESSE     STATUS=OK            25 CALLS      380 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68201        13.699        .14514E-04   -1.5543    
   2  Index         3.2175        3.3521        .20525E-03   -.36451    
   3  Normalizat    .86354        .19903        .97679E-05   -.97753    
   4  Prefactor     1.1124        .22930        .10208E-04   -.89073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02393e-10
Minuit parameter uncertainties:
  1  6.11446
  2  3.73859
  3  0.199198
  4  0.229503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722894': 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) = 5709.26240026
delta logL = 0.0119616895036

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.820e-01  6.114e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.218e+00  3.739e+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.112e+00  2.295e-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.635e-01  1.992e-01  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/722894/cmap_HighResolution_524188801_524448001_4FGL_J1330.7+2933_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-08 01:02:03.389614', job_id='722894', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1631088123.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.20e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1099' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 722894: <4FGL_J1330.7+2933_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1099 202.693 29.5536 524188801 524448001 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 :                                   741.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            985 sec.

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

