/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 210 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1
RA = 202.693, Dec = 29.5536
tmin = 239587201, tmax = 239846401
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='703995', job_status='RUN', time_executed='2021-09-07 23:45:49.470330', time_epoch_executed='1631083549.47' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703995

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703995/ft1_4FGL_J1330.7+2933_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703995/ft1_4FGL_J1330.7+2933_daily_bin1.fits outfile=/scratch/kocevski/703995/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1.fits ra=202.693 dec=29.5536 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.13
user 0.97
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/703995/ltcube_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.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/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits
.....................!
real 12.52
user 12.13
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/703995/ltcube_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.fits outfile=/scratch/kocevski/703995/expmap_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.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/703995/ltcube_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.fits
.....................!
real 156.12
user 151.20
sys 4.24

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/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits scfile=/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits outfile=/scratch/kocevski/703995/cmap_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.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.95
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits scfile=/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits outfile=/scratch/kocevski/703995/cmap_HighResolution_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.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.82
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/703995/ft2_4FGL_J1330.7+2933_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703995/Model_4FGL_J1330.7+2933_daily_bin1.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/703995/ft1_filtered_4FGL_J1330.7+2933_daily_bin1.fits.....................!
real 32.29
user 29.88
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.648       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12867E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25823E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .48591       1.0000         .10000E-03   10000.    
    11 'norm      '    .74156E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22881E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52300E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .13327E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67984E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.864       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2185       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16276E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1322       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69997       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3999.042     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1767 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.666        1.6227        .24131E-06   -.10007E-02
   2  Prefactor     16.748        42.217       -.44668E-05    .23209E-03
   3  Prefactor     .10000E-03    1.9343        .92257E-07** at limit **
   4  Prefactor     .10000E-03    2.1107        .30265E-07** at limit **
   5  norm          .10000E-03    2.8280       -.11612E-06** at limit **
   6  Prefactor     .10027E-03    17.425        .97610E-05** at limit **
   7  norm          1.7510        1.8210        .45233E-07   -.16487E-04
   8  Prefactor     .10000E-03    9.0613       -.15822E-05** at limit **
   9  norm          .10000E-03    4.1264       -.38685E-06** at limit **
  10  norm          .48025        4.4869        .17963E-05    .15311E-05
  11  norm          .10000E-03    6.5376       -.11840E-05** at limit **
  12  norm          .10007E-03    9.7829       -.84879E-05** at limit **
  13  Prefactor     5.3129        3.9740        .31715E-06    .54955E-04
  14  Prefactor     .10007E-03    9.6870        .90118E-05** at limit **
  15  norm          .10000E-03    5.1381        .21479E-06** at limit **
  16  Prefactor     .10138E-03    54.120       -.94412E-05** at limit **
  17  norm          .10000E-03    17.308       -.19794E-05** at limit **
  18  Prefactor     5.6548        9.7480       -.96954E-05    .48212E-02
  19  Prefactor     .10000E-03    .61063       -.84620E-06** at limit **
  20  Prefactor     .10022E-03    136.39        .73270E-05** at limit **
  21  Prefactor     10.863        5.3197        .45186E-05    .44836E-02
  22  Prefactor     2.4285        21.461       -.25928E-05   -.31391E-03
  23  norm          .10000E-03    1.3721       -.32793E-07** at limit **
  24  Prefactor     .10000E-03    5.2708       -.69803E-06** at limit **
  25  Normalizat    1.1320        .22190       -.34120E-05   -.21672E-03
  26  Prefactor     .69989        .24445        .24291E-05   -.14132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6663
  Prefactor  = 16.7478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100273
  norm       = 1.75096
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.480252
  norm       = 0.0001
  norm       = 0.000100067
  Prefactor  = 5.31289
  Prefactor  = 0.000100071
  norm       = 0.0001
  Prefactor  = 0.000101383
  norm       = 0.000100004
  Prefactor  = 5.65485
  Prefactor  = 0.000100001
  Prefactor  = 0.000100221
  Prefactor  = 10.8626
  Prefactor  = 2.42847
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13196
  Prefactor  = 0.699894
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.042     FROM HESSE     STATUS=OK           506 CALLS     2273 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.666        23.701        .18395E-02   -1.4618    
   2  Prefactor     16.748        42.383        .23913E-02   -1.4889    
   3  Prefactor     .10000E-03    1.9331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10027E-03    18.823        .10726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7510        1.8087        .79223E-02   -1.5443    
   8  Prefactor     .10000E-03    9.0555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .48025        4.5196        .11213E-01   -1.5569    
  11  norm          .10000E-03    6.5570        .10473E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10007E-03    10.399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3129        3.9775        .43577E-02   -1.5247    
  14  Prefactor     .10007E-03    10.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.0535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10138E-03    62.276        .92813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6548        16.380        .43033E-02   -1.5232    
  19  Prefactor     .10000E-03    13.852        .10519E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10022E-03    137.52        .93575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.863        5.3628        .30388E-02   -1.5049    
  22  Prefactor     2.4285        21.690        .69024E-02   -1.5396    
  23  norm          .10000E-03    1.3719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.0457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1320        .18829        .36818E-01   -.88732    
  26  Prefactor     .69989        .20718        .62273E-01   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7355e-07
Minuit parameter uncertainties:
  1  23.709
  2  42.4592
  3  4.52232e-06
  4  3.52258e-06
  5  4.45303e-07
  6  0.0045315
  7  1.80871
  8  0.000186664
  9  4.41086e-06
  10  2.94655
  11  4.22563e-05
  12  0.0016741
  13  3.97767
  14  0.00169222
  15  2.71157e-05
  16  0.0185774
  17  0.000504818
  18  16.3929
  19  0.000225506
  20  0.011042
  21  5.36307
  22  14.5221
  23  1.46001e-06
  24  3.19059e-05
  25  0.188398
  26  0.207413
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.655e+00  1.639e+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.999e-01  2.074e-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.132e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/703995/likelihoodResults_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.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) = 3997.94277298
delta logL = 1.09944339238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3997.68507439
delta logL = 1.35714198383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36008       1.0000         .10000E-03   10000.    
     2 'Index     '    .15622E-01   1.0000          .0000       10.000    
     3 'Normalizat'    1.1152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72241       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.

 FCN=   3997.685     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      269 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35090        .56312        .91633E-02   -.16431E-02
   2  Index         .72796E-02    .76718        .50000        .50720E-04
   3  Normalizat    1.1151        .18271        .37413E-01    .37119E-04
   4  Prefactor     .72253        .20643        .61453E-01    .36551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.350903
  Index      = 0.00727961
  Normalizat = 1.11512
  Prefactor  = 0.722525
 **********
 **   18 **HESSE 
 **********

 FCN=   3997.685     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35090        25.068        .40573E-04   -1.5590    
   2  Index         .72796E-02    9.5094        .23948E-01   -1.5168    
   3  Normalizat    1.1151        .14769        .19855E-03   -.89268    
   4  Prefactor     .72253        .16679        .27182E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12062e-08
Minuit parameter uncertainties:
  1  5.93355
  2  4.42233
  3  0.147749
  4  0.16691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703995': 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) = 3997.68504418
delta logL = 1.35717219281

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.509e-01  5.934e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  7.280e-03  4.422e+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:  7.225e-01  1.669e-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.115e+00  1.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 202.693 29.554
Photon Index (Free Index): 0.01 +/- 4.42
Photon Flux (Free Index): 3.42e-09 +/- 5.18e-09
Energy Flux (Free Index): 1.71e-04 +/- 2.56e-04

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/703995/cmap_HighResolution_239587201_239846401_4FGL_J1330.7+2933_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', comment='SUCCESS', energy_flux2='1.71e-04', dlogl='1.36e+00', photon_flux2='3.42e-09', job_status='DONE', time_completed='2021-09-07 23:52:47.865119', photon_index_error2='4.42', photon_index2='0.01', ts='0.14', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='2.56e-04', EG='1.13', time_epoch_completed='1631083967.87', return_code='0', job_id='703995', GAL2='0.72', EG2='1.12', return_code2='102', photon_flux_error2='5.18e-09', ts2='2.86', photon_index='2.45' WHERE bin_id='1' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 23:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 703995: <4FGL_J1330.7+2933_daily_bin1> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 23:40:21 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:42:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:42:12 2021
Terminated at Tue Sep  7 23:52:48 2021
Results reported at Tue Sep  7 23:52:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1 202.693 29.5536 239587201 239846401 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 :                                   414.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            747 sec.

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

