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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin110
RA = 15.969, Dec = 13.3536
tmin = 267840001, tmax = 268099201
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='318385', job_status='RUN', time_executed='2021-08-13 11:00:46.165579', time_epoch_executed='1628877646.17' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318385/ft1_4FGL_J0103.8+1321_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318385/ft1_4FGL_J0103.8+1321_daily_bin110.fits outfile=/scratch/kocevski/318385/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin110.fits ra=15.969 dec=13.3536 rad=12.0 tmin=267840001.0 tmax=268099201.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.45
user 1.30
sys 1.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.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/318385/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.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 1.45
user 0.34
sys 1.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/318385/ltcube_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.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/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits
.....................!
real 17.87
user 16.42
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/318385/ltcube_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits outfile=/scratch/kocevski/318385/expmap_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.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/318385/ltcube_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits
.....................!
real 194.57
user 187.69
sys 6.46

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

Setting source of interest to:
4FGL J0103.8+1321 @ 15.969 13.3536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits outfile=/scratch/kocevski/318385/cmap_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.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=15.969 yref=13.3536 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 1.47
user 0.38
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits outfile=/scratch/kocevski/318385/cmap_HighResolution_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.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=15.969 yref=13.3536 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 1.49
user 0.39
sys 1.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318385/Model_4FGL_J0103.8+1321_daily_bin110.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/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits.....................!
real 99.81
user 96.86
sys 2.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits', '/scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits', expMap='/scratch/kocevski/318385/expmap_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits', expCube='/scratch/kocevski/318385/ltcube_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318385/Model_4FGL_J0103.8+1321_daily_bin110.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0103.8+1321'

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  4.686e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318385/ft1_filtered_4FGL_J0103.8+1321_daily_bin110.fits
Spacecraft file(s): /scratch/kocevski/318385/ft2_4FGL_J0103.8+1321_daily_bin110.fits
Exposure map: /scratch/kocevski/318385/expmap_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits
Exposure cube: /scratch/kocevski/318385/ltcube_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318385/Model_4FGL_J0103.8+1321_daily_bin110.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) = 9790.77259141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.9574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12493E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.109       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7095       1.0000         .10000E-03   10000.    
     9 'norm      '    22.019       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9789.847     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1489 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3773       -.40041E-07** at limit **
   2  norm          2.9575        3.1735        .17941E-08    .48929E-04
   3  Prefactor     .10000E-03    34.706       -.13753E-05** at limit **
   4  Prefactor     16.109        10.675       -.33140E-07   -.69954E-04
   5  norm          .10000E-03    2.5783       -.66895E-07** at limit **
   6  Prefactor     .10000E-03    1.7159       -.10298E-07** at limit **
   7  Prefactor     2.5363        4.1494        .74067E-06   -.90596E-03
   8  Prefactor     1.7094        1.7686       -.13215E-07   -.48982E-04
   9  norm          22.019        12.612       -.16728E-07   -.23984E-05
  10  Prefactor     .10000E-03    9.0783        .22765E-07** at limit **
  11  Prefactor     .10000E-03    26.250        .30155E-05** at limit **
  12  norm          4.8148        1.8244        .20120E-07   -.50199E-04
  13  Prefactor     .10000E-03    19.117       -.51969E-05** at limit **
  14  norm          1.2389        .56851       -.74863E-08    .24181E-03
  15  Prefactor     .10000E-03    17.584        .36143E-05** at limit **
  16  Prefactor     10.322        33.331       -.13100E-04   -.34934E-04
  17  Normalizat    1.1443        .14942        .35301E-06   -.55911E-04
  18  Prefactor     .90633        .10691       -.65040E-07   -.95166E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.95749
  Prefactor  = 0.0001
  Prefactor  = 16.1088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53626
  Prefactor  = 1.7094
  norm       = 22.0191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.81478
  Prefactor  = 0.0001
  norm       = 1.23889
  Prefactor  = 0.0001
  Prefactor  = 10.3225
  Normalizat = 1.14429
  Prefactor  = 0.906332
 **********
 **   18 **HESSE 
 **********

 FCN=   9789.847     FROM HESSE     STATUS=OK           244 CALLS     1733 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4269        .22671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9575        3.1788        .17825E-03   -1.5364    
   3  Prefactor     .10000E-03    35.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.109        10.695        .49896E-03   -1.4905    
   5  norm          .10000E-03    2.5875        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7254        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5363        10.195        .12822E-02   -1.5389    
   8  Prefactor     1.7094        1.7668        .12943E-03   -1.5446    
   9  norm          22.019        12.617        .85360E-04   -1.4769    
  10  Prefactor     .10000E-03    9.0808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8148        1.8261        .79354E-04   -1.5269    
  13  Prefactor     .10000E-03    19.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2389        .56117        .48531E-04   -1.5485    
  15  Prefactor     .10000E-03    18.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.322        33.483        .12466E-03   -1.5065    
  17  Normalizat    1.1443        .17755        .26573E-03   -.88342    
  18  Prefactor     .90633        .12577        .21270E-03   -.95920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27175e-09
Minuit parameter uncertainties:
  1  8.09709e-07
  2  3.179
  3  2.96587e-05
  4  10.696
  5  7.84463e-07
  6  5.7126e-07
  7  10.1727
  8  1.76688
  9  12.6184
  10  1.64545e-06
  11  4.25984e-05
  12  1.82609
  13  6.12657e-05
  14  0.561177
  15  2.32619e-05
  16  33.5438
  17  0.177639
  18  0.125812
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.645e-06  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.063e-01  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.144e+00  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 15.969 13.354
Photon Flux Upper Limit: 3.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318385/likelihoodResults_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.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) = 9789.84717679
delta logL = -0.000524177874468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9789.8466607
delta logL = -8.09720222605e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16462E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0466       1.0000          .0000       10.000    
     3 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+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=   9789.847     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    64.876        .18142E-02** at limit **
   2  Index         1.9874        8.4730        .50000        .23039E-04
   3  Normalizat    1.1443        .98831E-02    .26573E-03    .19783E-03
   4  Prefactor     .90633        .71690E-02    .21270E-03    .32547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101755
  Index      = 1.98742
  Normalizat = 1.14429
  Prefactor  = 0.906332
 **********
 **   18 **HESSE 
 **********

 FCN=   9789.847     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10175E-03    278.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9874        8.9160        .50000       -.64665    
   3  Normalizat    1.1443        .21043E-01    .10629E-04   -.88342    
   4  Prefactor     .90633        .15264E-01    .42539E-04   -.95920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92396e-08
Minuit parameter uncertainties:
  1  0.0444459
  2  393.399
  3  0.0210436
  4  0.0152645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318385': 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) = 9789.84665209
delta logL = 5.19177774549e-07

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.018e-04  4.445e-02  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  1.987e+00  3.934e+02  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.063e-01  1.526e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.144e+00  2.104e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 15.969 13.354

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/318385/cmap_HighResolution_267840001_268099201_4FGL_J0103.8+1321_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-03', job_status='DONE', photon_flux_upper_limit='3.12e-08', time_completed='2021-08-13 11:12:00.493012', job_id='318385', GAL2='0.91', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1628878320.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='110' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 318385: <4FGL_J0103.8+1321_daily_bin110> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin110> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 10:55:35 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 10:57:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 10:57:22 2021
Terminated at Fri Aug 13 11:12:01 2021
Results reported at Fri Aug 13 11:12:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin110 15.969 13.3536 267840001 268099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0103.8+1321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            986 sec.

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

