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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1601
RA = 202.693, Dec = 29.5536
tmin = 654307201, tmax = 654566401
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='542508', job_status='RUN', time_executed='2021-09-29 00:18:29.795407', time_epoch_executed='1632899909.8' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542508/ft1_4FGL_J1330.7+2933_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542508/ft1_4FGL_J1330.7+2933_daily_bin1601.fits outfile=/scratch/kocevski/542508/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1601.fits ra=202.693 dec=29.5536 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.19
user 3.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/542508/ltcube_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.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/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542508/ltcube_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.fits outfile=/scratch/kocevski/542508/expmap_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.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/542508/ltcube_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.fits
.....................!
real 190.05
user 185.51
sys 4.22

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/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits scfile=/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits outfile=/scratch/kocevski/542508/cmap_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits scfile=/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits outfile=/scratch/kocevski/542508/cmap_HighResolution_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542508/ft2_4FGL_J1330.7+2933_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542508/Model_4FGL_J1330.7+2933_daily_bin1601.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/542508/ft1_filtered_4FGL_J1330.7+2933_daily_bin1601.fits.....................!
real 47.43
user 46.19
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2205       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.468       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44143       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4509       1.0000         .10000E-03   10000.    
     7 'norm      '    .10695E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5535       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4451       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.839       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3719       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9549       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0753       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=   5586.707     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3096 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2370        59.666        .69005E-05    .37910E-04
   2  Prefactor     43.505        80.510        .45808E-04    .74749E-06
   3  Prefactor     .10000E-03    2.9122       -.29306E-06** at limit **
   4  Prefactor     .43879        6.4036       -.21195E-05   -.52722E-03
   5  norm          5.5528        6.9851       -.44797E-05   -.45346E-03
   6  Prefactor     5.4636        75.578        .23992E-04    .39756E-04
   7  norm          .10000E-03    2.9198        .13643E-05** at limit **
   8  Prefactor     .10000E-03    4.5034       -.13750E-06** at limit **
   9  norm          .10000E-03    1.2615       -.76706E-07** at limit **
  10  norm          3.5519        8.7845       -.23002E-05   -.64306E-03
  11  norm          7.4475        11.651        .28545E-05   -.17260E-03
  12  norm          .10000E-03    6.0299       -.15762E-05** at limit **
  13  Prefactor     .10000E-03    1.4729        .11403E-06** at limit **
  14  Prefactor     .10000E-03    5.6519       -.14000E-05** at limit **
  15  norm          .10000E-03    2.6184       -.78758E-09** at limit **
  16  Prefactor     .10000E-03    122.68       -.30550E-05** at limit **
  17  norm          .10000E-03    3.4766       -.35035E-06** at limit **
  18  Prefactor     6.8237        20.318        .37839E-06   -.49120E-04
  19  Prefactor     .10000E-03    51.478        .15349E-05** at limit **
  20  Prefactor     .10000E-03    42.355        .79105E-06** at limit **
  21  Prefactor     .10000E-03    2.4480        .42464E-06** at limit **
  22  Prefactor     17.819        22.827        .27412E-05   -.27574E-04
  23  norm          8.3718        7.0069        .19210E-05   -.12589E-03
  24  Prefactor     4.9555        4.3346       -.41385E-06   -.16050E-03
  25  Normalizat    1.1497        .19019       -.32052E-05    .37645E-04
  26  Prefactor     1.0756        .20432        .21509E-06   -.21060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23696
  Prefactor  = 43.5054
  Prefactor  = 0.0001
  Prefactor  = 0.438786
  norm       = 5.55279
  Prefactor  = 5.46363
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.55194
  norm       = 7.44751
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.82367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8189
  norm       = 8.37185
  Prefactor  = 4.95546
  Normalizat = 1.14971
  Prefactor  = 1.07564
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.707     FROM HESSE     STATUS=OK           456 CALLS     3552 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2370        58.257        .22574E-03   -1.5348    
   2  Prefactor     43.505        79.746        .60806E-04   -1.4388    
   3  Prefactor     .10000E-03    2.9165        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .43879        16.100        .32130E-02   -1.5575    
   5  norm          5.5528        6.9163        .16789E-03   -1.5237    
   6  Prefactor     5.4636        72.277        .17211E-03   -1.5240    
   7  norm          .10000E-03    5.8320        .24605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5064        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2623        .81979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5519        8.7814        .17879E-03   -1.5331    
  11  norm          7.4475        11.800        .14699E-03   -1.5162    
  12  norm          .10000E-03    6.0304        .17924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4937        .88485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6582        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6410        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    125.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4850        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8237        20.318        .15363E-03   -1.5185    
  19  Prefactor     .10000E-03    52.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4829        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.819        22.814        .94827E-04   -1.4863    
  23  norm          8.3718        6.9913        .13855E-03   -1.5129    
  24  Prefactor     4.9555        4.3327        .14021E-03   -1.5263    
  25  Normalizat    1.1497        .23130        .23784E-03   -.88172    
  26  Prefactor     1.0756        .24892        .27452E-03   -.90249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15853e-09
Minuit parameter uncertainties:
  1  27.4955
  2  79.9422
  3  1.94126e-06
  4  5.31677
  5  6.9173
  6  39.8026
  7  0.000226574
  8  4.92228e-06
  9  2.72011e-06
  10  8.78458
  11  11.8034
  12  2.09609e-06
  13  3.01319e-06
  14  2.14115e-06
  15  6.57118e-06
  16  0.000282083
  17  7.72581e-06
  18  20.3381
  19  0.000197783
  20  5.44074e-05
  21  1.15872e-05
  22  22.8252
  23  6.99195
  24  4.33294
  25  0.231502
  26  0.24919
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.076e+00  2.492e-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.150e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542508/likelihoodResults_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.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) = 5586.68668116
delta logL = 0.0202482719797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5586.68482572
delta logL = 0.0221037166484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7448       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0808       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=   5586.685     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8187        19.952        .16647E-03    .15503E-04
   2  Index         2.7430        1.5609        .10942E-01    .12369E-04
   3  Normalizat    1.1427        .22141        .23847E-03   -.63838E-03
   4  Prefactor     1.0802        .24411        .27401E-03   -.46570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81872
  Index      = 2.74304
  Normalizat = 1.14273
  Prefactor  = 1.08018
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.685     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8187        17.888        .66587E-05   -1.5225    
   2  Index         2.7430        1.4030        .43766E-03   -.46832    
   3  Normalizat    1.1427        .22172        .47694E-04   -.88391    
   4  Prefactor     1.0802        .24420        .54803E-04   -.90103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00176e-10
Minuit parameter uncertainties:
  1  17.9044
  2  1.42727
  3  0.221903
  4  0.244453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542508': 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) = 5586.68482198
delta logL = 0.0221074496467

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.819e+00  1.790e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.743e+00  1.427e+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.080e+00  2.445e-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.143e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/542508/cmap_HighResolution_654307201_654566401_4FGL_J1330.7+2933_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-29 00:29:20.262580', job_id='542508', GAL2='1.08', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1632900560.26', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.21e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1601' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 542508: <4FGL_J1330.7+2933_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:29 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:30 2021
Terminated at Wed Sep 29 00:29:20 2021
Results reported at Wed Sep 29 00:29:20 2021

Your job looked like:

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

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

