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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1612
RA = 21.8237, Dec = 3.413
tmin = 657158401, tmax = 657417601
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='139561', job_status='RUN', time_executed='2021-12-07 12:10:24.903293', time_epoch_executed='1638907824.9' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139561

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139561/ft1_4FGL_J0127.2+0324_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139561/ft2_4FGL_J0127.2+0324_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139561/ft1_4FGL_J0127.2+0324_daily_bin1612.fits outfile=/scratch/kocevski/139561/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1612.fits ra=21.8237 dec=3.413 rad=12.0 tmin=657158401.0 tmax=657417601.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 3.63
user 3.44
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139561/ft1_filtered_4FGL_J0127.2+0324_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/139561/ft2_4FGL_J0127.2+0324_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/139561/ltcube_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.fits outfile=/scratch/kocevski/139561/expmap_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.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/139561/ltcube_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.fits
.....................!
real 193.64
user 187.97
sys 5.10

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/139561/ft1_filtered_4FGL_J0127.2+0324_daily_bin1612.fits scfile=/scratch/kocevski/139561/ft2_4FGL_J0127.2+0324_daily_bin1612.fits outfile=/scratch/kocevski/139561/cmap_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.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 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139561/ft1_filtered_4FGL_J0127.2+0324_daily_bin1612.fits scfile=/scratch/kocevski/139561/ft2_4FGL_J0127.2+0324_daily_bin1612.fits outfile=/scratch/kocevski/139561/cmap_HighResolution_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.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 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14544E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17963E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.496       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.921       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26640E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.415       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94310       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .75039       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=   6419.854     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1594 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0372       -.25717E-06** at limit **
   2  Prefactor     .10000E-03    7.8605       -.11740E-06** at limit **
   3  norm          29.502        17.711       -.14590E-06    .24532E-04
   4  Prefactor     .10000E-03    14.702       -.11003E-06** at limit **
   5  Prefactor     16.238        41.852        .25019E-06    .13469E-04
   6  norm          8.4261        1.9026        .93396E-07    .51398E-03
   7  Prefactor     .10000E-03    28.846       -.79432E-07** at limit **
   8  Prefactor     25.445        12.669        .46224E-07    .26258E-04
   9  Prefactor     14.838        6.9519        .20755E-06    .67553E-04
  10  Prefactor     7.0501        5.7534        .14106E-06    .97614E-04
  11  Prefactor     .10000E-03    49.381       -.13001E-05** at limit **
  12  Prefactor     71.718        81.143        .23808E-05    .66604E-04
  13  Prefactor     .10000E-03    3.0771       -.42575E-06** at limit **
  14  norm          3.5121        11.745       -.16512E-06    .41786E-04
  15  Prefactor     .10000E-03    1.8093       -.17524E-06** at limit **
  16  Normalizat    .94297        .19199       -.64441E-05    .19073E-03
  17  Prefactor     .75032        .15117        .58637E-05    .18225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 29.5023
  Prefactor  = 0.0001
  Prefactor  = 16.2375
  norm       = 8.4261
  Prefactor  = 0.0001
  Prefactor  = 25.4454
  Prefactor  = 14.8375
  Prefactor  = 7.05009
  Prefactor  = 0.0001
  Prefactor  = 71.7178
  Prefactor  = 0.0001
  norm       = 3.51212
  Prefactor  = 0.0001
  Normalizat = 0.942973
  Prefactor  = 0.750322
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.854     FROM HESSE     STATUS=OK           223 CALLS     1817 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3289        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.502        17.715        .73771E-04   -1.4621    
   4  Prefactor     .10000E-03    14.706        .21128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.238        41.863        .10038E-03   -1.4902    
   6  norm          8.4261        1.9022        .48916E-04   -1.5127    
   7  Prefactor     .10000E-03    29.077        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.445        12.669        .79461E-04   -1.4699    
   9  Prefactor     14.838        6.9446        .10399E-03   -1.4937    
  10  Prefactor     7.0501        5.7537        .15109E-03   -1.5177    
  11  Prefactor     .10000E-03    49.777        .21157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     71.718        81.409        .23739E-03   -1.4012    
  13  Prefactor     .10000E-03    3.1766        .27466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5121        11.754        .21685E-03   -1.5333    
  15  Prefactor     .10000E-03    1.8209        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .94297        .19083        .24745E-03   -.94966    
  17  Prefactor     .75032        .15136        .22216E-03   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08615e-10
Minuit parameter uncertainties:
  1  0.000267874
  2  6.84359e-06
  3  17.7183
  4  1.01227e-05
  5  41.9388
  6  1.9022
  7  2.28632e-05
  8  12.6706
  9  6.94497
  10  5.75416
  11  0.0002394
  12  81.5363
  13  1.69107e-05
  14  11.7619
  15  7.96983e-06
  16  0.190967
  17  0.151448
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.394e-04  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:  7.503e-01  1.514e-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.430e-01  1.910e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139561/likelihoodResults_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.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) = 6419.85456283
delta logL = -9.56298208621e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.83828613
delta logL = 0.0161810700929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78519       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0983       1.0000          .0000       10.000    
     3 'Normalizat'    .94024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74902       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=   6419.838     FROM MIGRAD    STATUS=FAILED        88 CALLS      315 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78964        1073.4        .27320E-02    .98145E-03
   2  Index         3.1064        7.3136        .10065E-01    .23602E-03
   3  Normalizat    .93528        .11140        .24838E-03    .11605E-02
   4  Prefactor     .75316        .87689E-01    .22177E-03    .90209E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6419.838     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      417 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78964        1073.4        .64935E-03    .98145E-03
   2  Index         3.1064        7.3136        .29119E-02    .23602E-03
   3  Normalizat    .93528        .11140        .18383E-03    .11605E-02
   4  Prefactor     .75316        .87689E-01    .41953E-04    .90209E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6419.838     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      447 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79014        16.659        .10928E-03    .13468E-02
   2  Index         3.1062        2.7980        .40259E-03    .16498E-03
   3  Normalizat    .93528        .18740        .49675E-04    .11637E-02
   4  Prefactor     .75316        .14937        .44354E-04    .89814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.790137
  Index      = 3.10616
  Normalizat = 0.935277
  Prefactor  = 0.753159
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.838     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79014        15.522        .43712E-05   -1.5530    
   2  Index         3.1062        2.7144        .80519E-04   -.38847    
   3  Normalizat    .93528        .18745        .99350E-05   -.95231    
   4  Prefactor     .75316        .14940        .88707E-05   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99978e-09
Minuit parameter uncertainties:
  1  7.00578
  2  2.9007
  3  0.187583
  4  0.149479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139561': 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) = 6419.83788788
delta logL = 0.0165793206361

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  7.901e-01  7.006e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.106e+00  2.901e+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:  7.532e-01  1.495e-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.353e-01  1.876e-01  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/139561/cmap_HighResolution_657158401_657417601_4FGL_J0127.2+0324_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-12-07 12:20:07.874556', job_id='139561', GAL2='0.75', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1638908407.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.66e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1612' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:20:07 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 139561: <4FGL_J0127.2+0324_daily_bin1612> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1612> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:27 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:07:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:07:08 2021
Terminated at Tue Dec  7 12:20:08 2021
Results reported at Tue Dec  7 12:20:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1612 21.8237 3.413 657158401 657417601 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 :                                   582.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            881 sec.

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

