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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin149
RA = 21.7036, Dec = 24.21
tmin = 277948801, tmax = 278208001
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='572462', job_status='RUN', time_executed='2021-08-14 00:38:18.163080', time_epoch_executed='1628926698.16' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572462/ft1_4FGL_J0126.8+2412_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572462/ft1_4FGL_J0126.8+2412_daily_bin149.fits outfile=/scratch/kocevski/572462/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin149.fits ra=21.7036 dec=24.21 rad=12.0 tmin=277948801.0 tmax=278208001.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.27
user 3.98
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.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/572462/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/572462/ltcube_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.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/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits
.....................!
real 11.77
user 11.33
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/572462/ltcube_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits outfile=/scratch/kocevski/572462/expmap_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.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/572462/ltcube_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits
.....................!
real 195.19
user 187.49
sys 7.18

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

Setting source of interest to:
4FGL J0126.8+2412 @ 21.7036 24.21

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits outfile=/scratch/kocevski/572462/cmap_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.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.7036 yref=24.21 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits outfile=/scratch/kocevski/572462/cmap_HighResolution_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.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.7036 yref=24.21 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572462/Model_4FGL_J0126.8+2412_daily_bin149.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/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits.....................!
real 79.40
user 77.95
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits', '/scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits', expMap='/scratch/kocevski/572462/expmap_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits', expCube='/scratch/kocevski/572462/ltcube_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572462/Model_4FGL_J0126.8+2412_daily_bin149.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0126.8+2412'

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.716e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/572462/ft1_filtered_4FGL_J0126.8+2412_daily_bin149.fits
Spacecraft file(s): /scratch/kocevski/572462/ft2_4FGL_J0126.8+2412_daily_bin149.fits
Exposure map: /scratch/kocevski/572462/expmap_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits
Exposure cube: /scratch/kocevski/572462/ltcube_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572462/Model_4FGL_J0126.8+2412_daily_bin149.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) = 7727.86075055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.647       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13271       1.0000         .10000E-03   10000.    
     6 'norm      '    .15911E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.756       1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2500       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94049       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14642E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .99909E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7727.821     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2466 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1567        .93036E-08** at limit **
   2  Prefactor     31.647        15.831        .98606E-07   -.54869E-04
   3  Prefactor     .10000E-03    14.385       -.21588E-06** at limit **
   4  Prefactor     .10000E-03    41.094        .61251E-08** at limit **
   5  norm          .13261        .37133        .32745E-06   -.18724E-03
   6  norm          .10000E-03    .45486        .15215E-07** at limit **
   7  Prefactor     15.707        13.550        .13543E-06   -.69587E-05
   8  Prefactor     16.335        39.755       -.11274E-06   -.22747E-04
   9  Prefactor     .10000E-03    3.4823        .45758E-06** at limit **
  10  Prefactor     10.046        7.7178        .24504E-06   -.10352E-05
  11  Prefactor     .10000E-03    4.0197        .35365E-06** at limit **
  12  Prefactor     .10000E-03    10.085        .91092E-07** at limit **
  13  Prefactor     36.809        72.379       -.20059E-06   -.64038E-06
  14  norm          .10000E-03    .16640        .50218E-06** at limit **
  15  Prefactor     7.2523        10.343        .44908E-06   -.22551E-04
  16  Prefactor     .94824        13.570        .19949E-05   -.30198E-03
  17  norm          4.7310        4.6270        .26271E-06   -.77726E-04
  18  Prefactor     .10000E-03    194.90       -.17945E-07** at limit **
  19  Prefactor     .10000E-03    3.8289       -.71722E-07** at limit **
  20  Prefactor     .10000E-03    4.8309        .38559E-06** at limit **
  21  Normalizat    1.1442        .20055       -.11672E-05   -.25616E-03
  22  Prefactor     1.0210        .12261        .23677E-06   -.42297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 31.6468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.132614
  norm       = 0.0001
  Prefactor  = 15.7069
  Prefactor  = 16.335
  Prefactor  = 0.0001
  Prefactor  = 10.0462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8085
  norm       = 0.0001
  Prefactor  = 7.25229
  Prefactor  = 0.948243
  norm       = 4.73097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.14417
  Prefactor  = 1.02102
 **********
 **   18 **HESSE 
 **********

 FCN=   7727.821     FROM HESSE     STATUS=OK           348 CALLS     2814 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.647        15.857        .71226E-04   -1.4582    
   3  Prefactor     .10000E-03    14.849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13261        .40395        .83032E-03   -1.5635    
   6  norm          .10000E-03    17.960        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.707        13.565        .10106E-03   -1.4915    
   8  Prefactor     16.335        39.517        .99163E-04   -1.4899    
   9  Prefactor     .10000E-03    3.5171        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.046        7.6168        .12642E-03   -1.5074    
  11  Prefactor     .10000E-03    4.0360        .17217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.809        72.003        .66105E-04   -1.4494    
  14  norm          .10000E-03    .17377        .70434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2523        10.337        .14897E-03   -1.5169    
  16  Prefactor     .94824        49.909        .55681E-02   -1.5513    
  17  norm          4.7310        4.6060        .17774E-03   -1.5273    
  18  Prefactor     .10000E-03    195.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8425        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.613        .36836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1442        .23518        .29575E-03   -.88346    
  22  Prefactor     1.0210        .14346        .19867E-03   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59135e-08
Minuit parameter uncertainties:
  1  5.61991e-07
  2  15.8591
  3  1.11083e-06
  4  5.3176e-05
  5  0.403961
  6  4.25824e-05
  7  13.5681
  8  39.5806
  9  9.64695e-06
  10  7.61754
  11  1.0781e-05
  12  2.94773e-06
  13  72.1738
  14  2.93089e-06
  15  10.3395
  16  13.7702
  17  4.60636
  18  0.000125077
  19  7.81464e-06
  20  0.000347805
  21  0.235401
  22  0.143511
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.078e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.021e+00  1.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.144e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572462/likelihoodResults_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.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) = 7727.8226366
delta logL = -0.00117960806529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7727.82145697
delta logL = 1.53731889441e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7517       1.0000          .0000       10.000    
     3 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   7727.821     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    133.09        .17262E-02** at limit **
   2  Index         2.6820        6.2882        .50000        .13055E-04
   3  Normalizat    1.1442        .28716E-01    .29576E-03   -.65577E-04
   4  Prefactor     1.0210        .18448E-01    .19867E-03   -.62030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100743
  Index      = 2.682
  Normalizat = 1.14417
  Prefactor  = 1.02102
 **********
 **   18 **HESSE 
 **********

 FCN=   7727.821     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    494.93        .34524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6820        6.1014        .50000       -.48205    
   3  Normalizat    1.1442        .64400E-01    .11830E-04   -.88346    
   4  Prefactor     1.0210        .41372E-01    .79469E-05   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38955e-08
Minuit parameter uncertainties:
  1  0.0386888
  2  1561.68
  3  0.0644048
  4  0.0413734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572462': 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) = 7727.8214568
delta logL = 1.85248609341e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.007e-04  3.869e-02  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.682e+00  1.562e+03  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.021e+00  4.137e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.144e+00  6.440e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.704 24.210

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/572462/cmap_HighResolution_277948801_278208001_4FGL_J0126.8+2412_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-08-14 00:50:42.241393', job_id='572462', GAL2='1.02', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1628927442.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='149' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:50:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 572462: <4FGL_J0126.8+2412_daily_bin149> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin149> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 00:35:58 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:37:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:37:50 2021
Terminated at Sat Aug 14 00:50:42 2021
Results reported at Sat Aug 14 00:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin149 21.7036 24.21 277948801 278208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0126.8+2412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            884 sec.

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

