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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin407
RA = 21.8237, Dec = 3.413
tmin = 344822401, tmax = 345081601
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='580830', job_status='RUN', time_executed='2021-08-14 01:05:52.351244', time_epoch_executed='1628928352.35' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580830/ft1_4FGL_J0127.2+0324_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580830/ft1_4FGL_J0127.2+0324_daily_bin407.fits outfile=/scratch/kocevski/580830/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin407.fits ra=21.8237 dec=3.413 rad=12.0 tmin=344822401.0 tmax=345081601.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 4.10
user 3.18
sys 0.89

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.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/580830/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin407.fits evtable="EVENTS" outfile="/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.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.23
user 0.35
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/580830/ltcube_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.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/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits
.....................!
real 13.10
user 11.94
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/580830/ltcube_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits outfile=/scratch/kocevski/580830/expmap_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.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/580830/ltcube_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits
.....................!
real 193.49
user 187.62
sys 5.32

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

Setting source of interest to:
4FGL J0127.2+0324 @ 21.8237 3.413

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits outfile=/scratch/kocevski/580830/cmap_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.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=21.8237 yref=3.413 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.23
user 0.38
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits outfile=/scratch/kocevski/580830/cmap_HighResolution_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.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=21.8237 yref=3.413 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.26
user 0.41
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580830/Model_4FGL_J0127.2+0324_daily_bin407.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/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits.....................!
real 61.33
user 59.09
sys 1.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits', '/scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits', expMap='/scratch/kocevski/580830/expmap_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits', expCube='/scratch/kocevski/580830/ltcube_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580830/Model_4FGL_J0127.2+0324_daily_bin407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0127.2+0324'

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  8.781e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580830/ft1_filtered_4FGL_J0127.2+0324_daily_bin407.fits
Spacecraft file(s): /scratch/kocevski/580830/ft2_4FGL_J0127.2+0324_daily_bin407.fits
Exposure map: /scratch/kocevski/580830/expmap_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits
Exposure cube: /scratch/kocevski/580830/ltcube_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580830/Model_4FGL_J0127.2+0324_daily_bin407.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) = 5538.14018306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19120E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.477       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7055       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .95525       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5538.139     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1533 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70061        2.4696       -.89119E-06   -.87400E-03
   2  Prefactor     .10000E-03    44.832        .24341E-04** at limit **
   3  norm          .10000E-03    18.479        .12335E-04** at limit **
   4  Prefactor     30.978        51.882        .87653E-05    .16931E-04
   5  Prefactor     .10005E-03    277.32       -.41997E-03** at limit **
   6  norm          2.2493        1.6868        .38191E-06    .40030E-02
   7  Prefactor     50.486        38.926        .72541E-05    .64367E-04
   8  Prefactor     .10000E-03    13.003       -.24056E-05** at limit **
   9  Prefactor     .10000E-03    3.7731       -.67290E-07** at limit **
  10  Prefactor     .10000E-03    7.4209        .57319E-07** at limit **
  11  Prefactor     .10000E-03    26.863       -.28319E-04** at limit **
  12  Prefactor     .10000E-03    50.275        .15636E-04** at limit **
  13  Prefactor     .10000E-03    2.1349       -.33743E-07** at limit **
  14  norm          .10000E-03    5.8461        .15890E-07** at limit **
  15  Prefactor     6.7066        5.5692       -.59594E-06    .86658E-05
  16  Normalizat    .95508        .19469        .40168E-06    .94978E-03
  17  Prefactor     1.0503        .15561       -.31184E-06    .10187E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.700613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.9781
  Prefactor  = 0.000100046
  norm       = 2.24934
  Prefactor  = 50.4856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.70659
  Normalizat = 0.955075
  Prefactor  = 1.05026
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.139     FROM HESSE     STATUS=OK           213 CALLS     1746 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70061        2.4882        .20898E-03   -1.5541    
   2  Prefactor     .10000E-03    45.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.978        51.895        .71996E-04   -1.4594    
   5  Prefactor     .10005E-03    277.29        .20269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2493        1.6795        .79055E-04   -1.5408    
   7  Prefactor     50.486        38.930        .56446E-04   -1.4286    
   8  Prefactor     .10000E-03    13.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7895        .14107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1642        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.8521        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7066        5.5711        .77478E-03   -1.5190    
  16  Normalizat    .95508        .22317        .27210E-03   -.94551    
  17  Prefactor     1.0503        .17907        .21066E-03   -.91073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89051e-09
Minuit parameter uncertainties:
  1  2.48858
  2  0.000181423
  3  2.13892e-05
  4  51.9703
  5  0.00716588
  6  1.67952
  7  38.95
  8  2.91581e-05
  9  2.03874e-05
  10  2.02903e-05
  11  3.02728e-05
  12  2.2366e-05
  13  3.68297e-08
  14  1.76904e-06
  15  5.5715
  16  0.223385
  17  0.179176
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.027e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.050e+00  1.792e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.551e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580830/likelihoodResults_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.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) = 5538.13917152
delta logL = -0.000177072218321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5538.13899589
delta logL = -1.44161367643e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4879       1.0000          .0000       10.000    
     3 'Normalizat'    .95507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   5538.139     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10676E-03    1.0605        .18142E-01** at limit **
   2  Index         2.3410        8.0528        .50000        .13029E-04
   3  Normalizat    .95507        .11494E-02    .27210E-03   -.10558E-03
   4  Prefactor     1.0503        .93349E-03    .21066E-03   -.64004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106757
  Index      = 2.34103
  Normalizat = 0.95507
  Prefactor  = 1.05026
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.139     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10676E-03    49.836        .31828E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3410        6.0644        .50000       -.56072    
   3  Normalizat    .95507        .78599E-02    .10884E-04   -.94551    
   4  Prefactor     1.0503        .63832E-02    .84265E-05   -.91073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72587e-09
Minuit parameter uncertainties:
  1  0.0367325
  2  324.779
  3  0.00785989
  4  0.00638323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580830': 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) = 5538.13899534
delta logL = -8.92449861567e-07

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.068e-04  3.673e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.341e+00  3.248e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.050e+00  6.383e-03  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.551e-01  7.860e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.824 3.413

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/580830/cmap_HighResolution_344822401_345081601_4FGL_J0127.2+0324_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-08-14 01:14:48.861806', job_id='580830', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1628928888.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-8.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='407' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 580830: <4FGL_J0127.2+0324_daily_bin407> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin407> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:00:58 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:04:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 01:04:15 2021
Terminated at Sat Aug 14 01:14:49 2021
Results reported at Sat Aug 14 01:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin407 21.8237 3.413 344822401 345081601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0127.2+0324 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            831 sec.

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

