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


Performing analysis on: 4FGL_J0102.4+4214_daily_bin1480
RA = 15.6069, Dec = 42.2371
tmin = 622944001, tmax = 623203201
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='289991', job_status='RUN', time_executed='2021-08-13 09:26:48.006621', time_epoch_executed='1628872008.01' WHERE source_name='4FGL J0102.4+4214' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289991/ft1_4FGL_J0102.4+4214_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289991/ft1_4FGL_J0102.4+4214_daily_bin1480.fits outfile=/scratch/kocevski/289991/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1480.fits ra=15.6069 dec=42.2371 rad=12.0 tmin=622944001.0 tmax=623203201.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 7.21
user 2.82
sys 4.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.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/289991/ft1_filteredMKT_4FGL_J0102.4+4214_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.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 4.57
user 0.35
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/289991/ltcube_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.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/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits
.....................!
real 19.64
user 14.61
sys 4.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/289991/ltcube_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits outfile=/scratch/kocevski/289991/expmap_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.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/289991/ltcube_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits
.....................!
real 198.41
user 186.25
sys 10.53

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

Setting source of interest to:
4FGL J0102.4+4214 @ 15.6069 42.2371

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits outfile=/scratch/kocevski/289991/cmap_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.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.6069 yref=42.2371 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 4.57
user 0.39
sys 4.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits outfile=/scratch/kocevski/289991/cmap_HighResolution_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.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.6069 yref=42.2371 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 4.57
user 0.40
sys 4.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/289991/Model_4FGL_J0102.4+4214_daily_bin1480.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/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits............!
real 20.85
user 13.87
sys 6.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits', '/scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits', expMap='/scratch/kocevski/289991/expmap_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits', expCube='/scratch/kocevski/289991/ltcube_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289991/Model_4FGL_J0102.4+4214_daily_bin1480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0102.4+4214'

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  3.800e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/289991/ft1_filtered_4FGL_J0102.4+4214_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/289991/ft2_4FGL_J0102.4+4214_daily_bin1480.fits
Exposure map: /scratch/kocevski/289991/expmap_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits
Exposure cube: /scratch/kocevski/289991/ltcube_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289991/Model_4FGL_J0102.4+4214_daily_bin1480.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 155.152163997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 151.406455198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    485.40       1.0000         .10000E-03   10000.    
     2 'norm      '    .27815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22807E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    104.08       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2853       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7859       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8149       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3320       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6117       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0522       1.0000         .10000E-03   10000.    
    16 'norm      '    2623.5       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35797E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50524E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    22.579       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73691E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .73448E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .24557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   149.8641     FROM MIGRAD    STATUS=CONVERGED    480 CALLS      809 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     404.24        363.75        .46532E-03   -.49263E-04
   2  norm          .10000E-03    566.78        .10329E-01** at limit **
   3  Prefactor     .10000E-03    165.12        .91365E-02** at limit **
   4  Prefactor     .10000E-03    201.51        .83305E-02** at limit **
   5  Prefactor     307.66        927.63        .98537E-03    .13336E-03
   6  Prefactor     119.01        2243.8        .47271E-02   -.18592E-02
   7  Prefactor    10000.0        9299.1        .48655E-02** at limit **
   8  norm          1.7859        1.0458         .0000         .0000    
   9  Prefactor     632.98        19.179       -.73071E-03   -.32597E-02
  10  Prefactor     1.5960        1.0602         .0000         .0000    
  11  Prefactor    10000.0        .52520E-01   -.67561E-04** at limit **
  12  norm         10000.0        .30556E-01   -.13443E-03** at limit **
  13  Prefactor    10000.0        .47332E-01    .86738E-03    .84365E-04
  14  Prefactor     .21937E-01    .62649E-01    .36606E-04    .98298E-04
  15  norm          9997.7        1.0860       -.51012E-02    .55369E-03
  16  norm          2441.6        .97652        .74582E-06    .45574E-02
  17  Prefactor     .10000E-03    .21162       -.83527E-06** at limit **
  18  Prefactor     .10000E-03    .31855       -.79873E-06** at limit **
  19  Prefactor     .10000E-03    .21495       -.97646E-05** at limit **
  20  norm          20.885        .96208       -.74036E-05    .34206E-04
  21  norm          .10000E-03    .20571       -.49520E-05** at limit **
  22  Prefactor     .10000E-03    .27432        .86338E-07** at limit **
  23  Prefactor     .10000E-03    .20571        .30782E-08** at limit **
  24  Prefactor     .10000E-03    .27437       -.74281E-07** at limit **
  25  Normalizat    .10000E-01    .25505       -.41368E-04** at limit **
  26  Prefactor     .16335        .44621       -.13088E-04    .36174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 404.239
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 307.662
  Prefactor  = 119.013
  Prefactor  = 10000
  norm       = 1.78589
  Prefactor  = 632.985
  Prefactor  = 1.59596
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 9999.99
  Prefactor  = 0.0219365
  norm       = 9997.73
  norm       = 2441.57
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 20.8855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.163348
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   149.8641     FROM HESSE     STATUS=FAILED        23 CALLS      832 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     404.24        363.75        .46532E-03   -1.1659    
   2  norm          .10000E-03    566.78        .10329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    165.12        .91365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    201.51        .83305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     307.66        927.63        .98537E-03   -1.2182    
   6  Prefactor     119.01        2243.8        .47271E-02   -1.3522    
   7  Prefactor    10000.0        9299.1        .48655E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          572.61        570.67         .0000       -1.5441    
   9  Prefactor     632.98        19.179       -.73071E-03   -1.0621    
  10  Prefactor     1.5960        1.0602         .0000       -1.5455    
  11  Prefactor    10000.0        .52520E-01   -.67561E-04    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        .30556E-01   -.13443E-03    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        .47332E-01    .86738E-03    1.5723    
  14  Prefactor     .21937E-01    .62649E-01    .36606E-04   -1.5678    
  15  norm          9997.7        1.0860       -.51012E-02    1.6009    
  16  norm          2441.6        .97652        .74582E-06   -.53715    
  17  Prefactor     .10000E-03    .21162       -.83527E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .31855       -.79873E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .21495       -.97646E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.885        .96208       -.74036E-05   -1.4794    
  21  norm          .10000E-03    .20571       -.49520E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .27432        .86338E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571        .30782E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .27437       -.74281E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25505       -.41368E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16335        .44621       -.13088E-04   -1.3145    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.42135e-10
Minuit parameter uncertainties:
  1  365.851
  2  2.09696e-05
  3  2.94359e-05
  4  0.000846988
  5  979.278
  6  1084.42
  7  2.9074
  8  1.04584
  9  19.1791
  10  1.06019
  11  0.00442779
  12  0.00389028
  13  0.032913
  14  0.0626487
  15  1.08603
  16  0.976525
  17  1.94173e-06
  18  5.95176e-06
  19  3.70742e-05
  20  0.96208
  21  1.99389e-05
  22  5.67087e-07
  23  8.2409e-08
  24  2.06574e-06
  25  1.70454e-06
  26  0.455979
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 149.864135314

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.000e+04  4.428e-03  1.000e-04  1.000e+04 ( 1.000e-12)
179        Index:  2.680e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.633e-01  4.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.000e-02  1.705e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 3.34163246407e-07

TS (Fixed Index): 0.74
Ra Dec: 15.607 42.237
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.86e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289991/likelihoodResults_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 140.938863407
delta logL = 8.92527190676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 140.938527021
delta logL = 8.92560829301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   140.9385     FROM MIGRAD    STATUS=CONVERGED     33 CALLS       72 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index      10.0000        .26966         .0000    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   140.9385     FROM HESSE     STATUS=OK             5 CALLS       77 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index      10.0000        .26858        .19159E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00734e-07
Minuit parameter uncertainties:
  1  0.00017255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289991': 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) = 140.938527021
delta logL = 8.92560829301

Extracting fit parameters...

4FGL J0102.4+4214
   Spectrum: PowerLaw
178    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
179        Index:  1.000e+01  1.725e-04  0.000e+00  1.000e+01 (-1.000e+00)
180        Scale:  5.094e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.631e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.029e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 18.59
Ra Dec: 15.607 42.237
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.35e+00 +/- 3.42e-04
Energy Flux (Free Index): 1.51e+02 +/- 3.81e-02

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/289991/cmap_HighResolution_622944001_623203201_4FGL_J0102.4+4214_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.86e+04', comment='SUCCESS', energy_flux2='1.51e+02', dlogl='8.93e+00', photon_flux2='1.35e+00', job_status='DONE', time_completed='2021-08-13 09:33:23.420843', photon_index_error2='0.00', photon_index2='10.00', ts='0.74', fit_tolerance='1e-08', GAL='0.16', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.81e-02', EG='0.01', time_epoch_completed='1628872403.42', return_code='101', job_id='289991', GAL2='0.16', EG2='0.01', return_code2='0', photon_flux_error2='3.42e-04', ts2='18.59', photon_index='2.68' WHERE bin_id='1480' AND source_name='4FGL J0102.4+4214' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 09:33:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 289991: <4FGL_J0102.4+4214_daily_bin1480> in cluster <slac> Done

Job <4FGL_J0102.4+4214_daily_bin1480> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 13 09:20:31 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 09:22:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 09:22:48 2021
Terminated at Fri Aug 13 09:33:24 2021
Results reported at Fri Aug 13 09:33:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0102.4+4214_daily_bin1480 15.6069 42.2371 622944001 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0102.4+4214 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   447.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            773 sec.

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

