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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin22
RA = 202.573, Dec = 70.0406
tmin = 245030401, tmax = 245289601
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='631490', job_status='RUN', time_executed='2021-09-07 21:03:58.276328', time_epoch_executed='1631073838.28' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631490/ft1_4FGL_J1330.2+7002_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631490/ft1_4FGL_J1330.2+7002_daily_bin22.fits outfile=/scratch/kocevski/631490/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin22.fits ra=202.573 dec=70.0406 rad=12.0 tmin=245030401.0 tmax=245289601.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.22
user 1.04
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.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/631490/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.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.44
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/631490/ltcube_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.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/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits
.....................!
real 13.63
user 13.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/631490/ltcube_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits outfile=/scratch/kocevski/631490/expmap_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.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/631490/ltcube_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits
.....................!
real 158.21
user 153.37
sys 4.05

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 229 point sources and 0 extended sources

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits outfile=/scratch/kocevski/631490/cmap_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.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.573 yref=70.0406 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.49
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits outfile=/scratch/kocevski/631490/cmap_HighResolution_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.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.573 yref=70.0406 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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631490/Model_4FGL_J1330.2+7002_daily_bin22.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/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits.....................!
real 48.61
user 47.40
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits', '/scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits', expMap='/scratch/kocevski/631490/expmap_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits', expCube='/scratch/kocevski/631490/ltcube_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631490/Model_4FGL_J1330.2+7002_daily_bin22.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/631490/ft1_filtered_4FGL_J1330.2+7002_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/631490/ft2_4FGL_J1330.2+7002_daily_bin22.fits
Exposure map: /scratch/kocevski/631490/expmap_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits
Exposure cube: /scratch/kocevski/631490/ltcube_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631490/Model_4FGL_J1330.2+7002_daily_bin22.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) = 5596.5516667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.430       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.51       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.548       1.0000         .10000E-03   10000.    
     7 'norm      '    .64053       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21460E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13393E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.712       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.753       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.815       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1639       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98929       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5596.529     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3548 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.432        27.457       -.70484E-08    .29942E-06
   2  Prefactor     .10000E-03    3.8633       -.27853E-07** at limit **
   3  Prefactor     57.200        48.842        .30072E-07    .15487E-04
   4  Prefactor     147.52        87.139       -.85318E-06   -.16333E-04
   5  Prefactor     6.7690        14.812        .61645E-06    .63249E-04
   6  Prefactor     68.533        73.130        .10605E-05    .22949E-04
   7  norm          .63458        3.4059        .10029E-06   -.37542E-04
   8  norm          .10000E-03    1.1471        .50103E-08** at limit **
   9  Prefactor     .10000E-03    207.88       -.10024E-04** at limit **
  10  Prefactor     .10000E-03    33.378        .18684E-05** at limit **
  11  Prefactor     80.390        62.633       -.11709E-06    .67338E-06
  12  Prefactor     .10000E-03    12.857       -.13182E-05** at limit **
  13  Prefactor     .10000E-03    2.4051       -.23259E-06** at limit **
  14  Prefactor     .10000E-03    11.624        .76215E-06** at limit **
  15  Prefactor     .10002E-03    7.1942       -.21425E-05** at limit **
  16  Prefactor     4.1297        9.0091        .20842E-05    .31662E-03
  17  Prefactor     55.719        26.305        .19914E-07    .28495E-04
  18  Prefactor     .10000E-03    19.871       -.16536E-05** at limit **
  19  Prefactor     .10000E-03    252.55        .82199E-05** at limit **
  20  Prefactor     .10000E-03    29.455       -.22454E-06** at limit **
  21  Prefactor     .10000E-03    9.1972       -.48827E-07** at limit **
  22  Prefactor     43.775        37.085       -.31752E-06    .67284E-05
  23  Prefactor     59.822        42.340       -.10589E-06   -.15076E-05
  24  Prefactor     6.1687        132.20       -.61971E-06   -.94369E-06
  25  Prefactor     .10000E-03    42.490       -.13153E-05** at limit **
  26  Prefactor     .10000E-03    17.254        .10248E-05** at limit **
  27  Normalizat    .98901        .17024       -.39716E-07    .24048E-03
  28  Prefactor     .83596        .16990       -.37123E-07    .17865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4316
  Prefactor  = 0.0001
  Prefactor  = 57.2003
  Prefactor  = 147.521
  Prefactor  = 6.76905
  Prefactor  = 68.5333
  norm       = 0.634585
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 80.3904
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 4.12972
  Prefactor  = 55.7194
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.775
  Prefactor  = 59.8215
  Prefactor  = 6.16874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.989008
  Prefactor  = 0.835959
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.529     FROM HESSE     STATUS=OK           517 CALLS     4065 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.432        27.451        .84575E-04   -1.4760    
   2  Prefactor     .10000E-03    3.9356        .14352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     57.200        48.849        .53040E-04   -1.4194    
   4  Prefactor     147.52        87.213        .16590E-03   -1.3273    
   5  Prefactor     6.7690        14.827        .77113E-03   -1.5188    
   6  Prefactor     68.533        73.216        .24240E-03   -1.4050    
   7  norm          .63458        12.028        .26076E-02   -1.5549    
   8  norm          .10000E-03    1.9857        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    212.63        .40329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.390        62.666        .44795E-04   -1.3912    
  12  Prefactor     .10000E-03    12.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1214        .21516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    14.797        .31428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1297        9.2897        .99221E-03   -1.5302    
  17  Prefactor     55.719        26.319        .53742E-04   -1.4214    
  18  Prefactor     .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    253.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.2181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.775        37.143        .60609E-04   -1.4384    
  23  Prefactor     59.822        42.325        .51877E-04   -1.4160    
  24  Prefactor     6.1687        132.22        .16170E-03   -1.5211    
  25  Prefactor     .10000E-03    43.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .98901        .19666        .22855E-03   -.93400    
  28  Prefactor     .83596        .19662        .24973E-03   -.98416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51442e-08
Minuit parameter uncertainties:
  1  27.4663
  2  1.89973e-06
  3  48.8833
  4  87.2897
  5  14.8354
  6  73.3125
  7  5.52628
  8  9.71922e-07
  9  0.000830718
  10  0.000108976
  11  62.7175
  12  4.71891e-05
  13  0.000112123
  14  3.05156e-05
  15  0.000967141
  16  9.29295
  17  26.3241
  18  6.86934e-05
  19  0.00132179
  20  1.41432e-05
  21  2.22954e-06
  22  37.163
  23  42.346
  24  57.2631
  25  5.52395e-05
  26  4.37794e-05
  27  0.196808
  28  0.196789
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  4.719e-05  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  8.360e-01  1.968e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  9.890e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631490/likelihoodResults_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.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) = 5596.52983963
delta logL = -0.000369097109797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5596.5294707
delta logL = -1.60280251293e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9497       1.0000          .0000       10.000    
     3 'Normalizat'    .98907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83590       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+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=   5596.529     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      229 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    429.68        .18142E-01** at limit **
   2  Index         1.5031        5.2507        .10435        .81714E-08
   3  Normalizat    .98901        .22843E-01    .22855E-03    .58049E-04
   4  Prefactor     .83596        .23258E-01    .24973E-03    .56906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.50307
  Normalizat = 0.989007
  Prefactor  = 0.835959
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.529     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.475        .28572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5031        5.0975        .41738E-02   -.77454    
   3  Normalizat    .98901        .19010        .91422E-05   -.93400    
   4  Prefactor     .83596        .19353        .99891E-05   -.98416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95212e-12
Minuit parameter uncertainties:
  1  6.6324e-05
  2  404.379
  3  0.190231
  4  0.193691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631490': 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) = 5596.52946993
delta logL = 6.06171852269e-07

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  6.632e-05  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.503e+00  4.044e+02  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  8.360e-01  1.937e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  9.890e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/631490/cmap_HighResolution_245030401_245289601_4FGL_J1330.2+7002_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-09-07 21:15:58.905615', job_id='631490', GAL2='0.84', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631074558.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='22' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 631490: <4FGL_J1330.2+7002_daily_bin22> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin22> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 21:00:26 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 21:01:09 2021
Terminated at Tue Sep  7 21:15:59 2021
Results reported at Tue Sep  7 21:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin22 202.573 70.0406 245030401 245289601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            933 sec.

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

