/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 114 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0107.4+0334_daily_bin284
RA = 16.8508, Dec = 3.5691
tmin = 312940801, tmax = 313200001
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='344340', job_status='RUN', time_executed='2021-08-13 12:25:24.252072', time_epoch_executed='1628882724.25' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344340

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344340/ft1_4FGL_J0107.4+0334_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344340/ft1_4FGL_J0107.4+0334_daily_bin284.fits outfile=/scratch/kocevski/344340/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin284.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=312940801.0 tmax=313200001.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 2.87
user 2.65
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.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/344340/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/344340/ltcube_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.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/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits
.....................!
real 11.62
user 11.30
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/344340/ltcube_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits outfile=/scratch/kocevski/344340/expmap_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.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/344340/ltcube_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits
.....................!
real 157.77
user 152.64
sys 4.78

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

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits outfile=/scratch/kocevski/344340/cmap_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.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=16.8508 yref=3.5691 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.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits outfile=/scratch/kocevski/344340/cmap_HighResolution_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.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=16.8508 yref=3.5691 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.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344340/Model_4FGL_J0107.4+0334_daily_bin284.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/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits.....................!
real 63.58
user 62.41
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits', '/scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits', expMap='/scratch/kocevski/344340/expmap_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits', expCube='/scratch/kocevski/344340/ltcube_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344340/Model_4FGL_J0107.4+0334_daily_bin284.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/344340/ft1_filtered_4FGL_J0107.4+0334_daily_bin284.fits
Spacecraft file(s): /scratch/kocevski/344340/ft2_4FGL_J0107.4+0334_daily_bin284.fits
Exposure map: /scratch/kocevski/344340/expmap_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits
Exposure cube: /scratch/kocevski/344340/ltcube_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344340/Model_4FGL_J0107.4+0334_daily_bin284.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) = 7280.14182961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12254E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65740E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3974       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.213       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31103       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8890       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64510       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   7280.125     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     2547 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3756        3.5773        .12831E-03   -.10455E-04
   2  Prefactor     .10000E-03    1.7883        .11141E-02** at limit **
   3  norm          .10000E-03    3.3925        .15296E-02** at limit **
   4  Prefactor     36.849        24.170        .66071E-04   -.11215E-03
   5  Prefactor     1.5420        11.312        .34107E-03   -.19333E-05
   6  Prefactor     .10000E-03    1.5334        .20143E-03** at limit **
   7  Prefactor     .10000E-03    .87903        .77545E-03** at limit **
   8  norm          17.987        6.5646        .94438E-04    .33105E-04
   9  Prefactor     .10000E-03    9.6337        .18142E-02** at limit **
  10  norm          .10000E-03    7.7063        .18142E-02** at limit **
  11  Prefactor     .10000E-03    52.294        .18142E-02** at limit **
  12  Prefactor     .10000E-03    32.173        .15884    ** at limit **
  13  norm          2.3976        1.2033        .62626E-04    .24234E-03
  14  Prefactor     55.275        40.560        .53940E-04    .35704E-04
  15  Prefactor     14.224        10.731        .10624E-03   -.13376E-04
  16  Prefactor     4.9428        5.6580        .18090E-03   -.35571E-04
  17  Prefactor     .32196        23.988        .36744E-02    .10939E-03
  18  Prefactor     .10000E-03    24.326        .18142E-02** at limit **
  19  Prefactor     7.8887        5.4258        .14276E-03    .74062E-05
  20  Normalizat    .64511        .18741        .32191E-03    .13279E-04
  21  Prefactor     1.2297        .15479        .20055E-03    .12877E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.3756
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.849
  Prefactor  = 1.54202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39761
  Prefactor  = 55.2753
  Prefactor  = 14.2235
  Prefactor  = 4.94279
  Prefactor  = 0.32196
  Prefactor  = 0.0001
  Prefactor  = 7.88874
  Normalizat = 0.645107
  Prefactor  = 1.22973
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.125     FROM HESSE     STATUS=OK           307 CALLS     2854 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3756        3.5773        .51323E-05   -1.5244    
   2  Prefactor     .10000E-03    1.7883        .22283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3931        .30592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.849        24.140        .13214E-04   -1.4493    
   5  Prefactor     1.5420        11.276        .13643E-04   -1.5460    
   6  Prefactor     .10000E-03    1.5335        .40286E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .87911        .15509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.987        6.5646        .37775E-05   -1.4859    
   9  Prefactor     .10000E-03    9.6342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    52.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.151        .15894       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3976        1.2033        .25051E-05   -1.5398    
  14  Prefactor     55.275        40.548        .10788E-04   -1.4220    
  15  Prefactor     14.224        10.731        .42496E-05   -1.4954    
  16  Prefactor     4.9428        5.6571        .72358E-05   -1.5263    
  17  Prefactor     .32196        24.279        .14698E-03   -1.5594    
  18  Prefactor     .10000E-03    24.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8887        5.4257        .57103E-05   -1.5146    
  20  Normalizat    .64511        .18748        .12876E-04   -1.0610    
  21  Prefactor     1.2297        .15486        .40109E-04   -.85421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16622e-11
Minuit parameter uncertainties:
  1  3.57745
  2  1.84433e-07
  3  7.77828e-07
  4  24.1462
  5  8.34185
  6  3.84379e-06
  7  1.11917e-06
  8  6.56483
  9  1.04235e-05
  10  2.88536e-07
  11  3.92286e-05
  12  2.0652e-05
  13  1.20327
  14  40.5679
  15  10.7323
  16  5.65775
  17  5.59326
  18  5.16632e-06
  19  5.426
  20  0.187662
  21  0.154918
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.065e-05  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.230e+00  1.549e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  6.451e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344340/likelihoodResults_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.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) = 7280.1253646
delta logL = -1.56177038662e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7280.1253646
delta logL = -1.56169144248e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3538       1.0000          .0000       10.000    
     3 'Normalizat'    .64511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7280.125     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      225 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11753E-02    1.4713        .16857    ** at limit **
   2  Index         2.1903        6.3489        .50000        .39819E-04
   3  Normalizat    .64511        .78906E-03    .72721E-01    .11447E-03
   4  Prefactor     1.2297        .66231E-03    .33963E-01    .19256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00117528
  Index      = 2.1903
  Normalizat = 0.645107
  Prefactor  = 1.22973
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.125     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      266 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11753E-02    1.3391        .17729       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1903        6.2374        .50000       -.59673    
   3  Normalizat    .64511        .77321E-03    .32191E-03   -1.0610    
   4  Prefactor     1.2297        .65044E-03    .20055E-03   -.85421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58175e-08
Minuit parameter uncertainties:
  1  0.0758952
  2  10.248
  3  0.000773209
  4  0.000650436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344340': 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) = 7280.1253484
delta logL = 5.86016540183e-07

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.175e-03  7.590e-02  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.190e+00  1.025e+01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.230e+00  6.504e-04  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  6.451e-01  7.732e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/344340/cmap_HighResolution_312940801_313200001_4FGL_J0107.4+0334_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-08-13 12:34:54.479992', job_id='344340', GAL2='1.23', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1628883294.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='5.86e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='284' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 344340: <4FGL_J0107.4+0334_daily_bin284> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin284> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 12:20:38 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:23:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 12:23:19 2021
Terminated at Fri Aug 13 12:34:55 2021
Results reported at Fri Aug 13 12:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin284 16.8508 3.5691 312940801 313200001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0107.4+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   565.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            857 sec.

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

