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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin740
RA = 202.573, Dec = 70.0406
tmin = 431136001, tmax = 431395201
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='642517', job_status='RUN', time_executed='2021-09-07 21:36:39.142192', time_epoch_executed='1631075799.14' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642517/ft1_4FGL_J1330.2+7002_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642517/ft1_4FGL_J1330.2+7002_daily_bin740.fits outfile=/scratch/kocevski/642517/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin740.fits ra=202.573 dec=70.0406 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.62
user 5.33
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.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/642517/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/642517/ltcube_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.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/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits
.....................!
real 15.07
user 14.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/642517/ltcube_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits outfile=/scratch/kocevski/642517/expmap_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.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/642517/ltcube_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits
.....................!
real 191.39
user 185.74
sys 5.02

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/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits scfile=/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits outfile=/scratch/kocevski/642517/cmap_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits scfile=/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits outfile=/scratch/kocevski/642517/cmap_HighResolution_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits', '/scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits', expMap='/scratch/kocevski/642517/expmap_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits', expCube='/scratch/kocevski/642517/ltcube_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642517/Model_4FGL_J1330.2+7002_daily_bin740.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/642517/ft1_filtered_4FGL_J1330.2+7002_daily_bin740.fits
Spacecraft file(s): /scratch/kocevski/642517/ft2_4FGL_J1330.2+7002_daily_bin740.fits
Exposure map: /scratch/kocevski/642517/expmap_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits
Exposure cube: /scratch/kocevski/642517/ltcube_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642517/Model_4FGL_J1330.2+7002_daily_bin740.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) = 4472.06737117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.6187       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17293E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0363       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93647       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=   4472.059     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3409 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.884       -.26192E-05** at limit **
   2  Prefactor     1.7330        3.6560       -.30157E-06   -.42097E-03
   3  Prefactor     .10000E-03    16.824       -.52658E-05** at limit **
   4  Prefactor     79.448        84.370       -.12315E-04    .36162E-05
   5  Prefactor     1.9480        30.016       -.19443E-05   -.11772E-03
   6  Prefactor     .10000E-03    25.831        .17452E-04** at limit **
   7  norm          7.6185        6.0176       -.17065E-06   -.82041E-04
   8  norm          .10000E-03    2.7455        .12737E-07** at limit **
   9  Prefactor     52.172        61.876        .23912E-07   -.20017E-05
  10  Prefactor     .10000E-03    63.564       -.30917E-04** at limit **
  11  Prefactor     6.2378        27.813       -.12868E-05   -.15047E-04
  12  Prefactor     .10000E-03    13.492       -.48450E-05** at limit **
  13  Prefactor     .10002E-03    2.7220        .50987E-06** at limit **
  14  Prefactor     .10000E-03    10.598        .11348E-06** at limit **
  15  Prefactor     .10000E-03    12.958       -.35408E-05** at limit **
  16  Prefactor     5.8870        9.9119       -.44403E-06   -.10981E-03
  17  Prefactor     .10000E-03    6.2742        .15032E-06** at limit **
  18  Prefactor     .10000E-03    16.068        .44170E-05** at limit **
  19  Prefactor     .10000E-03    301.55       -.24967E-04** at limit **
  20  Prefactor     .10000E-03    24.795       -.21228E-05** at limit **
  21  Prefactor     .10000E-03    12.663        .56053E-05** at limit **
  22  Prefactor     .10000E-03    14.597        .39934E-05** at limit **
  23  Prefactor     .10000E-03    24.137       -.14356E-04** at limit **
  24  Prefactor     .10000E-03    74.368        .35229E-04** at limit **
  25  Prefactor     5.0354        16.328       -.90566E-06   -.62326E-04
  26  Prefactor     .10000E-03    10.621       -.33723E-06** at limit **
  27  Normalizat    1.0241        .18488        .15827E-06    .10079E-04
  28  Prefactor     .93624        .18655        .13979E-05   -.30785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.73303
  Prefactor  = 0.0001
  Prefactor  = 79.4475
  Prefactor  = 1.94798
  Prefactor  = 0.0001
  norm       = 7.61849
  norm       = 0.0001
  Prefactor  = 52.1718
  Prefactor  = 0.0001
  Prefactor  = 6.23781
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.88702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03539
  Prefactor  = 0.0001
  Normalizat = 1.02412
  Prefactor  = 0.936242
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.059     FROM HESSE     STATUS=OK           511 CALLS     3920 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7330        3.6270        .18012E-03   -1.5445    
   3  Prefactor     .10000E-03    16.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     79.448        84.541        .45052E-04   -1.3923    
   5  Prefactor     1.9480        30.180        .29727E-03   -1.5429    
   6  Prefactor     .10000E-03    25.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.6185        6.0238        .13991E-03   -1.5156    
   8  norm          .10000E-03    2.7991        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.172        61.955        .55527E-04   -1.4262    
  10  Prefactor     .10000E-03    63.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2378        27.828        .16075E-03   -1.5208    
  12  Prefactor     .10000E-03    13.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    16.086        .21016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8870        9.9454        .16549E-03   -1.5223    
  17  Prefactor     .10000E-03    6.2788        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    301.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    74.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.0354        16.330        .17918E-03   -1.5259    
  26  Prefactor     .10000E-03    10.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0241        .21132        .22163E-03   -.92227    
  28  Prefactor     .93624        .21511        .23938E-03   -.94886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42118e-09
Minuit parameter uncertainties:
  1  2.54507e-06
  2  3.62743
  3  2.84856e-07
  4  84.6688
  5  15.3438
  6  8.40679e-07
  7  6.02423
  8  2.1694e-06
  9  62.0316
  10  4.80781e-06
  11  26.3709
  12  2.66185e-07
  13  0.0010435
  14  2.27137e-06
  15  2.8246e-05
  16  9.94814
  17  5.38033e-07
  18  4.39705e-06
  19  2.27453e-05
  20  2.26206e-06
  21  9.65971e-06
  22  8.41742e-06
  23  8.17415e-06
  24  6.57418e-05
  25  16.3448
  26  6.63053e-07
  27  0.211497
  28  0.21531
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  2.662e-07  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:  9.362e-01  2.153e-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:  1.024e+00  2.115e-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: 4.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642517/likelihoodResults_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.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) = 4472.05967127
delta logL = -0.000352000244675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4472.0593192
delta logL = 6.83576217853e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9449       1.0000          .0000       10.000    
     3 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93624       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=   4472.059     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.365        .18142E-02** at limit **
   2  Index         1.9235        5.7760        .50000        .11665E-04
   3  Normalizat    1.0241        .20124        .22163E-03   -.11597E-03
   4  Prefactor     .93624        .20980        .23938E-03   -.27284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.92354
  Normalizat = 1.02412
  Prefactor  = 0.93624
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.059     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9235        5.9489        .50000       -.66276    
   3  Normalizat    1.0241        .20139        .44325E-04   -.92227    
   4  Prefactor     .93624        .20996        .47877E-04   -.94886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00617e-10
Minuit parameter uncertainties:
  1  0.000329862
  2  3.97958
  3  0.20154
  4  0.21014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642517': 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) = 4472.05931914
delta logL = 1.32805325848e-07

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  3.299e-04  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.924e+00  3.980e+00  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:  9.362e-01  2.101e-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:  1.024e+00  2.015e-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/642517/cmap_HighResolution_431136001_431395201_4FGL_J1330.2+7002_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.19e-08', time_completed='2021-09-07 21:49:37.846605', job_id='642517', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631076577.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='740' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 642517: <4FGL_J1330.2+7002_daily_bin740> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin740> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 21:35:36 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:36:27 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:36:27 2021
Terminated at Tue Sep  7 21:49:38 2021
Results reported at Tue Sep  7 21:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin740 202.573 70.0406 431136001 431395201 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            842 sec.

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

