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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1135
RA = 21.8237, Dec = 3.413
tmin = 533520001, tmax = 533779201
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='585935', job_status='RUN', time_executed='2021-08-14 01:19:40.667624', time_epoch_executed='1628929180.67' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585935/ft1_4FGL_J0127.2+0324_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585935/ft2_4FGL_J0127.2+0324_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585935/ft1_4FGL_J0127.2+0324_daily_bin1135.fits outfile=/scratch/kocevski/585935/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1135.fits ra=21.8237 dec=3.413 rad=12.0 tmin=533520001.0 tmax=533779201.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 5.60
user 3.28
sys 2.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585935/ft2_4FGL_J0127.2+0324_daily_bin1135.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/585935/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1135.fits evtable="EVENTS" outfile="/scratch/kocevski/585935/ft1_filtered_4FGL_J0127.2+0324_daily_bin1135.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 3.21
user 0.32
sys 2.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585935/ft1_filtered_4FGL_J0127.2+0324_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/585935/ft2_4FGL_J0127.2+0324_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/585935/ltcube_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.fits outfile=/scratch/kocevski/585935/expmap_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.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/585935/ltcube_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.fits
.....................!
real 195.04
user 185.67
sys 7.55

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/585935/ft1_filtered_4FGL_J0127.2+0324_daily_bin1135.fits scfile=/scratch/kocevski/585935/ft2_4FGL_J0127.2+0324_daily_bin1135.fits outfile=/scratch/kocevski/585935/cmap_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.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 2.33
user 0.36
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585935/ft1_filtered_4FGL_J0127.2+0324_daily_bin1135.fits scfile=/scratch/kocevski/585935/ft2_4FGL_J0127.2+0324_daily_bin1135.fits outfile=/scratch/kocevski/585935/cmap_HighResolution_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.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 2.59
user 0.39
sys 2.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   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 '    35.905       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9377       1.0000         .10000E-03   10000.    
    14 'norm      '    19.386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2909       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91563       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=   7054.613     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1559 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0441        2.1127       -.18751E-06   -.39047E-03
   2  Prefactor     .10000E-03    8.0864       -.16346E-06** at limit **
   3  norm          .10000E-03    6.5010       -.11366E-06** at limit **
   4  Prefactor     .10000E-03    19.901       -.12769E-05** at limit **
   5  Prefactor     35.908        64.240        .30927E-05   -.18747E-04
   6  norm          3.8927        1.7552       -.14384E-06   -.19742E-03
   7  Prefactor     .10000E-03    52.062       -.27639E-05** at limit **
   8  Prefactor     .10000E-03    2.6175        .73282E-07** at limit **
   9  Prefactor     .10000E-03    2.1979       -.18972E-07** at limit **
  10  Prefactor     8.6963        7.2568        .57087E-06   -.13069E-03
  11  Prefactor     16.117        42.766        .10128E-05   -.76709E-05
  12  Prefactor     .10000E-03    29.548        .54814E-06** at limit **
  13  Prefactor     3.9380        4.4175       -.34723E-05   -.24715E-04
  14  norm          19.386        16.785       -.10751E-07    .63963E-06
  15  Prefactor     .10000E-03    2.5740        .10318E-07** at limit **
  16  Normalizat    1.2910        .17929        .54488E-06    .16074E-04
  17  Prefactor     .91555        .14068        .15462E-06    .39297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9076
  norm       = 3.8927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.69629
  Prefactor  = 16.1168
  Prefactor  = 0.0001
  Prefactor  = 3.938
  norm       = 19.3864
  Prefactor  = 0.0001
  Normalizat = 1.29096
  Prefactor  = 0.915553
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.613     FROM HESSE     STATUS=OK           223 CALLS     1782 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0441        2.1072        .12017E-03   -1.5422    
   2  Prefactor     .10000E-03    8.0894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.5108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.908        64.298        .66881E-04   -1.4509    
   6  norm          3.8927        1.7576        .67767E-04   -1.5313    
   7  Prefactor     .10000E-03    52.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6188        .13271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2107        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6963        7.2417        .13592E-03   -1.5118    
  11  Prefactor     16.117        42.817        .99768E-04   -1.4905    
  12  Prefactor     .10000E-03    29.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9380        4.5759        .18643E-03   -1.5311    
  14  norm          19.386        16.792        .90966E-04   -1.4827    
  15  Prefactor     .10000E-03    2.5834        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2910        .20857        .25570E-03   -.83837    
  17  Prefactor     .91555        .16316        .23859E-03   -.95600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6638e-11
Minuit parameter uncertainties:
  1  2.10726
  2  1.91047e-06
  3  1.39017e-07
  4  3.88205e-05
  5  64.4229
  6  1.7576
  7  0.000115609
  8  1.48001e-06
  9  1.02623e-06
  10  7.24239
  11  42.8983
  12  2.8449e-05
  13  4.57635
  14  16.7965
  15  1.11293e-06
  16  0.208702
  17  0.163247
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.612e+01  4.290e+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:  9.156e-01  1.632e-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:  1.291e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/585935/likelihoodResults_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.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) = 7049.77084279
delta logL = 4.84197851068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7049.71802303
delta logL = 4.89479826804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88436       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0309       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.

 FCN=   7049.718     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87819        3.8154        .61927E-02   -.10693E-02
   2  Index         4.2778        1.3593        .46446E-01    .36739E-04
   3  Normalizat    1.0516        .68811E-01    .62789E-01   -.38858E-03
   4  Prefactor     1.0312        .54783E-01    .41185E-01   -.51751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.878189
  Index      = 4.2778
  Normalizat = 1.05157
  Prefactor  = 1.03119
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.718     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87819        5.7412        .27647E-04   -1.5521    
   2  Index         4.2778        1.7585        .19672E-02   -.14495    
   3  Normalizat    1.0516        .19886        .27772E-03   -.91322    
   4  Prefactor     1.0312        .15693        .22607E-03   -.91697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47593e-10
Minuit parameter uncertainties:
  1  4.49117
  2  1.79778
  3  0.199
  4  0.157005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585935': 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) = 7049.7180173
delta logL = 4.89480399303

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  8.782e-01  4.491e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  4.278e+00  1.798e+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.031e+00  1.570e-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:  1.052e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.05
Ra Dec: 21.824 3.413
Photon Index (Free Index): 4.28 +/- 1.80
Photon Flux (Free Index): 2.06e-07 +/- 7.72e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.25e-05

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/585935/cmap_HighResolution_533520001_533779201_4FGL_J0127.2+0324_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', comment='SUCCESS', energy_flux2='2.96e-05', dlogl='4.89e+00', photon_flux2='2.06e-07', job_status='DONE', time_completed='2021-08-14 01:30:09.291578', photon_index_error2='1.80', photon_index2='4.28', ts='0.18', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='7.47e-08', energy_flux_error2='1.25e-05', EG='1.29', time_epoch_completed='1628929809.29', return_code='0', job_id='585935', GAL2='1.03', EG2='1.05', return_code2='102', photon_flux_error2='7.72e-08', ts2='11.05', photon_index='1.97' WHERE bin_id='1135' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 585935: <4FGL_J0127.2+0324_daily_bin1135> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1135> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 01:15:24 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:18:18 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:18:18 2021
Terminated at Sat Aug 14 01:30:11 2021
Results reported at Sat Aug 14 01:30:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1135 21.8237 3.413 533520001 533779201 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 :                                   650.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            887 sec.

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

