/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1770
RA = 21.7036, Dec = 24.21
tmin = 698112001, tmax = 698371201
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='474983', job_status='RUN', time_executed='2023-02-18 00:08:47.035040', time_epoch_executed='1676707727.04' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474983/ft1_4FGL_J0126.8+2412_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474983/ft1_4FGL_J0126.8+2412_daily_bin1770.fits outfile=/scratch/kocevski/474983/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1770.fits ra=21.7036 dec=24.21 rad=12.0 tmin=698112001.0 tmax=698371201.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.78
user 4.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.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/474983/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.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.96
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 721

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/474983/ltcube_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.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/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits
.....................!
real 14.08
user 12.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/474983/ltcube_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits outfile=/scratch/kocevski/474983/expmap_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.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/474983/ltcube_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits
.....................!
real 194.86
user 186.27
sys 4.35

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/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits scfile=/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits outfile=/scratch/kocevski/474983/cmap_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits scfile=/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits outfile=/scratch/kocevski/474983/cmap_HighResolution_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits', '/scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits', expMap='/scratch/kocevski/474983/expmap_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits', expCube='/scratch/kocevski/474983/ltcube_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474983/Model_4FGL_J0126.8+2412_daily_bin1770.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  0.000e+00  1.000e+06 ( 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/474983/ft1_filtered_4FGL_J0126.8+2412_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/474983/ft2_4FGL_J0126.8+2412_daily_bin1770.fits
Exposure map: /scratch/kocevski/474983/expmap_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits
Exposure cube: /scratch/kocevski/474983/ltcube_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474983/Model_4FGL_J0126.8+2412_daily_bin1770.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) = 7981.01277121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9618       1.0000          .0000       .10000E+07
     2 'Prefactor '    .54089E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.735       1.0000          .0000       .10000E+07
     4 'norm      '    .29238       1.0000          .0000       .10000E+07
     5 'norm      '    .13933E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5757       1.0000          .0000       .10000E+07
     7 'Prefactor '    .33230       1.0000          .0000       .10000E+07
     8 'Prefactor '    .51985E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    20.949       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.682       1.0000          .0000       .10000E+07
    11 'norm      '    4.0760       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4266       1.0000          .0000       .10000E+07
    13 'Prefactor '    .92421E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .39213E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.6302       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.3914       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1661       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94618       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7980.987     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1369 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9078        5.9040       -.79667E-07   -.14351E-03
   2  Prefactor     .51070E-08    12.105        .33506E-06** at limit **
   3  Prefactor     13.712        13.989        .19545E-06    .19432E-02
   4  norm          .29214        .40996        .12427E-06   -.41636E-02
   5  norm           .0000        1.3283       -.14455E-06** at limit **
   6  Prefactor     8.6569        9.9696       -.46865E-07   -.22443E-03
   7  Prefactor     .39841E-04    97.029        .18199E-05** at limit **
   8  Prefactor     .48044E-05    67.356        .16994E-05** at limit **
   9  Prefactor     20.807        15.092       -.10314E-06    .15423E-02
  10  Prefactor     16.052        45.837       -.23877E-06   -.32209E-02
  11  norm          4.0754        .94629        .25169E-07   -.13421E-02
  12  Prefactor     1.3386        8.8661        .51169E-06   -.35010E-03
  13  Prefactor     .88818E-09    5.8428       -.31662E-06** at limit **
  14  norm          .55511E-10    1.3703        .50829E-06** at limit **
  15  Prefactor     1.6372        4.8562        .38917E-06   -.90981E-03
  16  Prefactor     3.3944        3.6058       -.10009E-06    .15446E-03
  17  Normalizat    1.1663        .22157       -.48769E-05    .39597E-04
  18  Prefactor     .94603        .13791        .23206E-05   -.21184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.90776
  Prefactor  = 5.10703e-09
  Prefactor  = 13.7117
  norm       = 0.292141
  norm       = 0
  Prefactor  = 8.65688
  Prefactor  = 3.9841e-05
  Prefactor  = 4.80443e-06
  Prefactor  = 20.8067
  Prefactor  = 16.0522
  norm       = 4.07543
  Prefactor  = 1.33857
  Prefactor  = 8.88178e-10
  norm       = 5.55112e-11
  Prefactor  = 1.6372
  Prefactor  = 3.39436
  Normalizat = 1.16628
  Prefactor  = 0.946026
 **********
 **   18 **HESSE 
 **********

 FCN=   7980.987     FROM HESSE     STATUS=OK           308 CALLS     1677 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9078        5.9348        .41101E-03   -1.5659    
   2  Prefactor     .51070E-08    12.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.712        14.042        .27001E-03   -1.5634    
   4  norm          .29214        .49057        .16141E-02   -1.5697    
   5  norm           .0000        .58193        .23725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6569        9.9898        .34207E-03   -1.5649    
   7  Prefactor     .39841E-04    39.419        .13963E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48044E-05    4.5791        .56803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.807        15.398        .21855E-03   -1.5617    
  10  Prefactor     16.052        46.043        .26113E-03   -1.5628    
  11  norm          4.0754        .94771        .49914E-03   -1.5668    
  12  Prefactor     1.3386        8.9120        .90460E-03   -1.5685    
  13  Prefactor     .88818E-09    5.8591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.3713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6372        4.8986        .82795E-03   -1.5682    
  16  Prefactor     3.3944        3.6110        .54915E-03   -1.5671    
  17  Normalizat    1.1663        .19013        .67329E-01   -.87651    
  18  Prefactor     .94603        .11731        .45591E-01   -.94551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12774e-06
Minuit parameter uncertainties:
  1  5.93482
  2  0.000497719
  3  14.0422
  4  0.490573
  5  4.86732e-06
  6  9.98978
  7  0.0792592
  8  0.00938086
  9  15.3976
  10  46.0445
  11  0.947707
  12  6.90779
  13  0.000146022
  14  1.68138e-05
  15  4.89862
  16  3.61095
  17  0.19024
  18  0.117345
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.081e+01  1.540e+01  0.000e+00  1.000e+06 ( 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:  9.460e-01  1.173e-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.166e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.63e-08 +/- 6.38e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.47e-05

TS (Fixed Index): 2.58
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 2.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474983/likelihoodResults_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.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) = 7980.29272008
delta logL = 0.694251753951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7980.24699131
delta logL = 0.739980519449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58538       1.0000          .0000       .10000E+07
     2 'Index     '    5.9484       1.0000          .0000       10.000    
     3 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99717       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.

 FCN=   7980.247     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58025        4.6093        .70548E-03   -.50753E-01
   2  Index         5.9544        3.1997        .16163       -.18517E-03
   3  Normalizat    1.0855        .55021E-01    .69380E-01   -.16557E-03
   4  Prefactor     .99694        .34727E-01    .46232E-01   -.14293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.580251
  Index      = 5.95442
  Normalizat = 1.08555
  Prefactor  = 0.996944
 **********
 **   18 **HESSE 
 **********

 FCN=   7980.247     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58025        9.7278        .37985E-05   -1.5693    
   2  Index         5.9544        7.5831        .62819E-02    .19206    
   3  Normalizat    1.0855        .19860        .30697E-03   -.90217    
   4  Prefactor     .99694        .12264        .20046E-03   -.92831    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39074e-09
Minuit parameter uncertainties:
  1  4.75167
  2  5.85876
  3  0.198736
  4  0.122674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474983': 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) = 7980.2469868
delta logL = 0.739985033007

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.803e-01  4.752e+00  0.000e+00  1.000e+06 ( 1.000e-12)
258        Index:  5.954e+00  5.859e+00  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:  9.969e-01  1.227e-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.086e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 21.704 24.210
Photon Index (Free Index): 5.95 +/- 5.86
Photon Flux (Free Index): 1.24e-07 +/- 7.63e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.21e-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/474983/cmap_HighResolution_698112001_698371201_4FGL_J0126.8+2412_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.63e-08', energy_flux2='1.54e-05', photon_flux_error='6.38e-08', dlogl='7.40e-01', energy_flux='1.99e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2023-02-18 00:18:52.291990', photon_index_error2='5.86', photon_index2='5.95', ts='2.58', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.21e-05', EG='1.17', time_epoch_completed='1676708332.29', return_code='0', job_id='474983', GAL2='1.00', EG2='1.09', return_code2='102', energy_flux_error='1.47e-05', photon_flux_error2='7.63e-08', ts2='4.34', photon_index='2.76' WHERE bin_id='1770' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:18:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 474983: <4FGL_J0126.8+2412_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 00:05:08 2023
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:05:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:05:13 2023
Terminated at Sat Feb 18 00:18:53 2023
Results reported at Sat Feb 18 00:18:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1770 21.7036 24.21 698112001 698371201 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 :                                   600.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            825 sec.

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

