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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin368
RA = 21.8237, Dec = 3.413
tmin = 334713601, tmax = 334972801
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='580783', job_status='RUN', time_executed='2021-08-14 01:07:31.283693', time_epoch_executed='1628928451.28' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580783/ft1_4FGL_J0127.2+0324_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580783/ft1_4FGL_J0127.2+0324_daily_bin368.fits outfile=/scratch/kocevski/580783/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin368.fits ra=21.8237 dec=3.413 rad=12.0 tmin=334713601.0 tmax=334972801.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.79
user 3.32
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.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/580783/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.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.79
user 0.34
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/580783/ltcube_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.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/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits
.....................!
real 15.11
user 13.41
sys 1.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/580783/ltcube_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits outfile=/scratch/kocevski/580783/expmap_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.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/580783/ltcube_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits
.....................!
real 192.26
user 186.10
sys 5.81

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/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits scfile=/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits outfile=/scratch/kocevski/580783/cmap_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.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.78
user 0.40
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits scfile=/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits outfile=/scratch/kocevski/580783/cmap_HighResolution_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.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.81
user 0.41
sys 1.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits', '/scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits', expMap='/scratch/kocevski/580783/expmap_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits', expCube='/scratch/kocevski/580783/ltcube_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580783/Model_4FGL_J0127.2+0324_daily_bin368.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/580783/ft1_filtered_4FGL_J0127.2+0324_daily_bin368.fits
Spacecraft file(s): /scratch/kocevski/580783/ft2_4FGL_J0127.2+0324_daily_bin368.fits
Exposure map: /scratch/kocevski/580783/expmap_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits
Exposure cube: /scratch/kocevski/580783/ltcube_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580783/Model_4FGL_J0127.2+0324_daily_bin368.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) = 5295.78114688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.065       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6285       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4252       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .58858       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2497       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=   5295.778     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1597 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88553        3.0885        .50003E-07   -.23747E-03
   2  Prefactor     61.064        45.028       -.26446E-06    .89451E-05
   3  norm          .10000E-03    4.8667        .27731E-07** at limit **
   4  Prefactor     .10000E-03    12.818       -.44529E-08** at limit **
   5  Prefactor     .10000E-03    65.223        .88186E-06** at limit **
   6  norm          4.9525        1.8265        .10872E-06    .37877E-03
   7  Prefactor     .10000E-03    10.554        .21794E-07** at limit **
   8  Prefactor     2.8889        5.9149        .27983E-05   -.11099E-02
   9  Prefactor     1.2484        4.9549       -.45298E-05   -.39042E-03
  10  Prefactor     .10000E-03    5.2446        .11610E-08** at limit **
  11  Prefactor     28.503        41.379       -.14005E-05   -.10445E-04
  12  Prefactor     .10000E-03    159.57       -.28454E-05** at limit **
  13  Prefactor     .10000E-03    3.3053        .22424E-07** at limit **
  14  norm          2.6264        9.5075       -.68276E-05   -.20528E-03
  15  Prefactor     2.4251        3.2073        .26744E-07    .70611E-05
  16  Normalizat    .58850        .18890        .71625E-07    .92906E-04
  17  Prefactor     1.2497        .15740        .45105E-06    .84906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.885533
  Prefactor  = 61.0638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9525
  Prefactor  = 0.0001
  Prefactor  = 2.88891
  Prefactor  = 1.24836
  Prefactor  = 0.0001
  Prefactor  = 28.5025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62641
  Prefactor  = 2.42509
  Normalizat = 0.588498
  Prefactor  = 1.24973
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.778     FROM HESSE     STATUS=OK           223 CALLS     1820 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88553        3.1445        .22258E-03   -1.5520    
   2  Prefactor     61.064        45.030        .51346E-04   -1.4144    
   3  norm          .10000E-03    4.8677        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9525        1.8212        .56297E-04   -1.5263    
   7  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8889        9.6628        .11954E-02   -1.5368    
   9  Prefactor     1.2484        5.1861        .31659E-03   -1.5485    
  10  Prefactor     .10000E-03    5.2745        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.503        41.396        .75038E-04   -1.4640    
  12  Prefactor     .10000E-03    160.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3952        .25832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6264        9.6220        .25153E-03   -1.5384    
  15  Prefactor     2.4251        3.1992        .14600E-03   -1.5397    
  16  Normalizat    .58850        .20996        .31484E-03   -1.0847    
  17  Prefactor     1.2497        .17619        .19117E-03   -.84814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7535e-09
Minuit parameter uncertainties:
  1  3.14505
  2  45.0546
  3  5.27899e-07
  4  4.12679e-06
  5  4.56991e-05
  6  1.82119
  7  1.61219e-05
  8  9.66802
  9  5.08944
  10  1.31714e-06
  11  41.4373
  12  0.000331597
  13  2.75315e-06
  14  9.62762
  15  3.19941
  16  0.210243
  17  0.176272
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  2.850e+01  4.144e+01  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.250e+00  1.763e-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:  5.885e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/580783/likelihoodResults_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.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) = 5295.76408063
delta logL = 0.0137593313048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5295.75396863
delta logL = 0.0238713371673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2017       1.0000          .0000       10.000    
     3 'Normalizat'    .58346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2522       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=   5295.754     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      283 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.399        60.375        .86592E-04    .11202E-03
   2  Index         2.2009        1.4202        .89602E-02    .50645E-04
   3  Normalizat    .58302        .20531        .31622E-03    .17009E-03
   4  Prefactor     1.2526        .17548        .19098E-03    .34003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3994
  Index      = 2.20088
  Normalizat = 0.583024
  Prefactor  = 1.25256
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.754     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.399        48.770        .17318E-04   -1.4782    
   2  Index         2.2009        1.1537        .35841E-03   -.59417    
   3  Normalizat    .58302        .20432        .12649E-04   -1.0871    
   4  Prefactor     1.2526        .17499        .38197E-04   -.84729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2099e-10
Minuit parameter uncertainties:
  1  48.8612
  2  1.16918
  3  0.204582
  4  0.175073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580783': 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) = 5295.75396511
delta logL = 0.0238748591373

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  2.140e+01  4.886e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.201e+00  1.169e+00  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.253e+00  1.751e-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:  5.830e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/580783/cmap_HighResolution_334713601_334972801_4FGL_J0127.2+0324_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-08-14 01:16:35.952378', job_id='580783', GAL2='1.25', fit_tolerance='1e-08', EG2='0.58', EG='0.59', time_epoch_completed='1628928995.95', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.39e-02', ts2='0.73', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='368' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:16:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 580783: <4FGL_J0127.2+0324_daily_bin368> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin368> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:00:55 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:03:47 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:03:47 2021
Terminated at Sat Aug 14 01:16:36 2021
Results reported at Sat Aug 14 01:16:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin368 21.8237 3.413 334713601 334972801 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 :                                   563.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            941 sec.

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

