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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1549
RA = 21.8237, Dec = 3.413
tmin = 640828801, tmax = 641088001
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='587579', job_status='RUN', time_executed='2021-08-14 01:26:51.871484', time_epoch_executed='1628929611.87' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587579/ft1_4FGL_J0127.2+0324_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587579/ft1_4FGL_J0127.2+0324_daily_bin1549.fits outfile=/scratch/kocevski/587579/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1549.fits ra=21.8237 dec=3.413 rad=12.0 tmin=640828801.0 tmax=641088001.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.02
user 2.90
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587579/ft1_filtered_4FGL_J0127.2+0324_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/587579/ltcube_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.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/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits
.....................!
real 14.85
user 13.55
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587579/ft1_filtered_4FGL_J0127.2+0324_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/587579/ltcube_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.fits outfile=/scratch/kocevski/587579/expmap_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.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/587579/ltcube_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.fits
.....................!
real 192.41
user 185.82
sys 6.13

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/587579/ft1_filtered_4FGL_J0127.2+0324_daily_bin1549.fits scfile=/scratch/kocevski/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits outfile=/scratch/kocevski/587579/cmap_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.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.31
user 0.37
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587579/ft1_filtered_4FGL_J0127.2+0324_daily_bin1549.fits scfile=/scratch/kocevski/587579/ft2_4FGL_J0127.2+0324_daily_bin1549.fits outfile=/scratch/kocevski/587579/cmap_HighResolution_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.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.31
user 0.40
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2809       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .97627       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1363       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=   1846.878     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1356 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4038        7.1094       -.36237E-06   -.37750E-04
   2  Prefactor     .10000E-03    21.282        .74409E-06** at limit **
   3  norm          .10000E-03    35.084        .12523E-05** at limit **
   4  Prefactor     .10000E-03    137.17        .13013E-05** at limit **
   5  Prefactor     .10000E-03    83.252        .22953E-06** at limit **
   6  norm          27.483        6.6218       -.22435E-06   -.14929E-03
   7  Prefactor     .10000E-03    26.099        .36710E-06** at limit **
   8  Prefactor     .10000E-03    84.580        .22783E-05** at limit **
   9  Prefactor     .10000E-03    13.956        .89998E-06** at limit **
  10  Prefactor     .10000E-03    8.1497       -.20599E-06** at limit **
  11  Prefactor     10.414        275.01       -.20393E-05   -.93735E-05
  12  Prefactor     4.6531        6171.0       -.21978E-03   -.25541E-05
  13  Prefactor     .10000E-03    30.308        .21370E-05** at limit **
  14  norm          .10000E-03    190.97        .17086E-06** at limit **
  15  Prefactor     .10003E-03    2161.8       -.33576E-05** at limit **
  16  Normalizat    .97651        .45897        .10009E-04   -.11141E-03
  17  Prefactor     1.1361        .34046       -.56460E-05   -.33221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.40384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.4827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4144
  Prefactor  = 4.65306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  Normalizat = 0.976506
  Prefactor  = 1.1361
 **********
 **   18 **HESSE 
 **********

 FCN=   1846.878     FROM HESSE     STATUS=OK           213 CALLS     1569 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4038        7.1120        .10384E-03   -1.5164    
   2  Prefactor     .10000E-03    21.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    35.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    137.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    83.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.483        6.6223        .50434E-04   -1.4659    
   7  Prefactor     .10000E-03    26.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    84.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.005        .15681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1668        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.414        279.84        .12353E-03   -1.5062    
  12  Prefactor     4.6531        6187.0        .17490E-02   -1.5277    
  13  Prefactor     .10000E-03    30.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    190.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    2189.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97651        .53056        .35930E-03   -.93822    
  17  Prefactor     1.1361        .39906        .26174E-03   -.88321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04313e-10
Minuit parameter uncertainties:
  1  7.11285
  2  4.44706e-05
  3  0.000112394
  4  0.000381307
  5  1.72826e-06
  6  6.6225
  7  1.6869e-05
  8  0.000262848
  9  5.39786e-05
  10  1.32133e-05
  11  108.537
  12  229.049
  13  0.000210693
  14  3.75981e-05
  15  0.0178557
  16  0.533452
  17  0.400119
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.041e+01  1.085e+02  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.136e+00  4.001e-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.765e-01  5.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 2.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587579/likelihoodResults_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.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) = 1846.87553531
delta logL = 0.00224284396791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1846.87463021
delta logL = 0.00314793906068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.014       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7737       1.0000          .0000       10.000    
     3 'Normalizat'    .97624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1367       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1846.875     FROM MIGRAD    STATUS=FAILED        81 CALLS      268 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.073        308.56        .10008E-03   -.42155E-03
   2  Index         1.7692        2.2208        .16736E-01   -.34453E-03
   3  Normalizat    .97766        .50567        .35906E-03    .15191E-03
   4  Prefactor     1.1348        .39901        .26186E-03    .35687E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1846.875     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      343 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.073        308.56        .84107E-03   -1.4906    
   2  Index         1.7692        2.2208        .28572E-02   -.70254    
   3  Normalizat    .97766        .50567        .62591E-03   -.93783    
   4  Prefactor     1.1348        .39901        .57641E-03   -.88363    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1846.875     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      372 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.085        282.64        .20017E-04   -.40524E-04
   2  Index         1.7696        2.1393        .66943E-03    .98457E-05
   3  Normalizat    .97767        .50603        .71811E-04   -.17668E-04
   4  Prefactor     1.1347        .39927        .52371E-04   -.36545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0845
  Index      = 1.76963
  Normalizat = 0.977666
  Prefactor  = 1.13474
 **********
 **   18 **HESSE 
 **********

 FCN=   1846.875     FROM HESSE     STATUS=OK            23 CALLS      395 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.085        281.99        .40034E-05   -1.4906    
   2  Index         1.7696        2.1365        .26777E-04   -.70243    
   3  Normalizat    .97767        .50608        .14362E-04   -.93782    
   4  Prefactor     1.1347        .39931        .10474E-04   -.88364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55667e-10
Minuit parameter uncertainties:
  1  135.446
  2  2.26765
  3  0.508588
  4  0.400374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587579': 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) = 1846.87461277
delta logL = 0.00316538576226

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.608e+01  1.354e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.770e+00  2.268e+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.135e+00  4.004e-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.777e-01  5.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/587579/cmap_HighResolution_640828801_641088001_4FGL_J0127.2+0324_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', job_status='DONE', photon_flux_upper_limit='2.30e-07', time_completed='2021-08-14 01:33:33.106028', job_id='587579', GAL2='1.13', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628930013.11', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.17e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1549' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:33:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 587579: <4FGL_J0127.2+0324_daily_bin1549> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1549> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 01:20:31 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:22:43 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:22:43 2021
Terminated at Sat Aug 14 01:33:34 2021
Results reported at Sat Aug 14 01:33:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1549 21.8237 3.413 640828801 641088001 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 :                                   409.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            783 sec.

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

