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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin490
RA = 21.7036, Dec = 24.21
tmin = 366336001, tmax = 366595201
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='574026', job_status='RUN', time_executed='2021-08-14 00:44:19.400391', time_epoch_executed='1628927059.4' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574026

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574026/ft1_4FGL_J0126.8+2412_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574026/ft1_4FGL_J0126.8+2412_daily_bin490.fits outfile=/scratch/kocevski/574026/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin490.fits ra=21.7036 dec=24.21 rad=12.0 tmin=366336001.0 tmax=366595201.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 10.90
user 5.21
sys 5.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.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/574026/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.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 5.91
user 0.35
sys 5.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/574026/ltcube_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.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/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits
.....................!
real 18.73
user 12.30
sys 6.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/574026/ltcube_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits outfile=/scratch/kocevski/574026/expmap_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.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/574026/ltcube_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits
.....................!
real 198.05
user 185.36
sys 12.08

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/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits scfile=/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits outfile=/scratch/kocevski/574026/cmap_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.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 5.84
user 0.38
sys 5.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits scfile=/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits outfile=/scratch/kocevski/574026/cmap_HighResolution_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.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 5.88
user 0.41
sys 5.42

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits', '/scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits', expMap='/scratch/kocevski/574026/expmap_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits', expCube='/scratch/kocevski/574026/ltcube_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574026/Model_4FGL_J0126.8+2412_daily_bin490.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/574026/ft1_filtered_4FGL_J0126.8+2412_daily_bin490.fits
Spacecraft file(s): /scratch/kocevski/574026/ft2_4FGL_J0126.8+2412_daily_bin490.fits
Exposure map: /scratch/kocevski/574026/expmap_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits
Exposure cube: /scratch/kocevski/574026/ltcube_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574026/Model_4FGL_J0126.8+2412_daily_bin490.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) = 6244.17966501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .58773       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8203       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11042E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.405       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8618       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.728       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1909       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81749       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=   6244.143     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2372 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4001        9.4349        .12905E-05   -.12446E-04
   2  Prefactor     .10000E-03    18.509        .92106E-07** at limit **
   3  Prefactor     .10000E-03    12.265        .26258E-06** at limit **
   4  Prefactor     .10000E-03    28.598        .89041E-07** at limit **
   5  norm          .58756        .59313        .84832E-07    .12786E-03
   6  norm          .10000E-03    .45649        .10078E-06** at limit **
   7  Prefactor     6.8201        12.261        .33986E-05   -.10430E-04
   8  Prefactor     .10000E-03    82.451        .94178E-06** at limit **
   9  Prefactor     .10000E-03    1.3616        .20209E-07** at limit **
  10  Prefactor     .10000E-03    2.2865        .10160E-06** at limit **
  11  Prefactor     3.5487        10.779        .77998E-06   -.12675E-04
  12  Prefactor     .10000E-03    10.987        .33040E-07** at limit **
  13  Prefactor     11.418        90.674       -.61121E-07   -.35448E-06
  14  norm          2.8618        .83614       -.66678E-08   -.11461E-03
  15  Prefactor     .10000E-03    2.1590       -.85672E-07** at limit **
  16  Prefactor     .10000E-03    20.173        .27621E-07** at limit **
  17  norm          .10000E-03    2.3439        .19610E-07** at limit **
  18  Prefactor     36.537        89.746       -.79842E-06   -.26969E-04
  19  Prefactor     .87394        4.9017        .56049E-06   -.16484E-03
  20  Prefactor     .10000E-03    5.2132       -.96429E-06** at limit **
  21  Normalizat    1.1910        .19028       -.16986E-05    .45462E-05
  22  Prefactor     .81737        .12025        .72068E-06   -.16372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.40006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.587564
  norm       = 0.0001
  Prefactor  = 6.82006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54868
  Prefactor  = 0.0001
  Prefactor  = 11.4178
  norm       = 2.86182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.5374
  Prefactor  = 0.873942
  Prefactor  = 0.0001
  Normalizat = 1.19102
  Prefactor  = 0.817373
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.143     FROM HESSE     STATUS=OK           344 CALLS     2716 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4001        9.4323        .65360E-03   -1.5095    
   2  Prefactor     .10000E-03    18.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .58756        .55820        .58192E-03   -1.5555    
   6  norm          .10000E-03    .47455        .10424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8201        12.311        .76817E-03   -1.5186    
   8  Prefactor     .10000E-03    85.524        .36313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3634        .90030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3008        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5487        10.713        .21445E-03   -1.5331    
  12  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.418        90.568        .11862E-03   -1.5032    
  14  norm          2.8618        .83655        .36787E-04   -1.5370    
  15  Prefactor     .10000E-03    2.1616        .11338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3693        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.537        89.954        .33065E-03   -1.4498    
  19  Prefactor     .87394        18.672        .32966E-02   -1.5521    
  20  Prefactor     .10000E-03    5.3250        .35141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1910        .21837        .25800E-03   -.86881    
  22  Prefactor     .81737        .13949        .19684E-03   -.99091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80058e-10
Minuit parameter uncertainties:
  1  9.43375
  2  6.11236e-05
  3  1.26263e-05
  4  1.36343e-05
  5  0.558207
  6  5.73797e-07
  7  12.3153
  8  1.34866e-05
  9  3.58894e-07
  10  2.01187e-06
  11  10.7185
  12  2.03385e-07
  13  64.4485
  14  0.83655
  15  9.93268e-07
  16  1.44894e-05
  17  1.94079e-06
  18  90.2904
  19  8.08161
  20  1.15857e-05
  21  0.218534
  22  0.139552
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  3.549e+00  1.072e+01  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:  8.174e-01  1.396e-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.191e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574026/likelihoodResults_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.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) = 6244.12412524
delta logL = 0.0193124617954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6244.12073128
delta logL = 0.0227064281216

Fit tolerance = 1e-08

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

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

 FCN=   6244.121     FROM MIGRAD    STATUS=FAILED        90 CALLS      259 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4640        11.757        .19052E-03    .11766E-02
   2  Index         2.4304        1.3727        .12870E-01    .41591E-03
   3  Normalizat    1.1947        .21518        .25765E-03   -.90433E-03
   4  Prefactor     .81503        .13911        .19709E-03   -.14076E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6244.121     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      333 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4640        11.757        .21047E-03   -1.5285    
   2  Index         2.4304        1.3727        .94469E-03   -.53975    
   3  Normalizat    1.1947        .21518        .23823E-03   -.86767    
   4  Prefactor     .81503        .13911        .16664E-03   -.99177    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6244.121     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      361 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4632        11.721        .76206E-05    .15813E-03
   2  Index         2.4302        1.3690        .51479E-03    .12720E-04
   3  Normalizat    1.1947        .21535        .51531E-04    .14473E-04
   4  Prefactor     .81503        .13918        .39418E-04    .12171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.46323
  Index      = 2.43019
  Normalizat = 1.19468
  Prefactor  = 0.815033
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.121     FROM HESSE     STATUS=OK            23 CALLS      384 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4632        11.712        .15241E-05   -1.5285    
   2  Index         2.4302        1.3689        .20592E-04   -.53980    
   3  Normalizat    1.1947        .21538        .10306E-04   -.86767    
   4  Prefactor     .81503        .13920        .78835E-05   -.99177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03871e-11
Minuit parameter uncertainties:
  1  11.7184
  2  1.39331
  3  0.215544
  4  0.139259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574026': 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) = 6244.12073112
delta logL = 0.0227065865647

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.463e+00  1.172e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.430e+00  1.393e+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:  8.150e-01  1.393e-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.195e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 21.704 24.210

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/574026/cmap_HighResolution_366336001_366595201_4FGL_J0126.8+2412_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-14 00:57:07.051452', job_id='574026', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1628927827.05', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.27e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='490' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 574026: <4FGL_J0126.8+2412_daily_bin490> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin490> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:39 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:42:29 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:42:29 2021
Terminated at Sat Aug 14 00:57:08 2021
Results reported at Sat Aug 14 00:57:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin490 21.7036 24.21 366336001 366595201 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 :                                   824.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            989 sec.

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

