/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 146 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin122
RA = 21.7036, Dec = 24.21
tmin = 270950401, tmax = 271209601
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='572435', job_status='RUN', time_executed='2021-08-14 00:40:24.936069', time_epoch_executed='1628926824.94' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572435/ft1_4FGL_J0126.8+2412_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572435/ft2_4FGL_J0126.8+2412_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572435/ft1_4FGL_J0126.8+2412_daily_bin122.fits outfile=/scratch/kocevski/572435/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin122.fits ra=21.7036 dec=24.21 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.93
user 1.19
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572435/ft2_4FGL_J0126.8+2412_daily_bin122.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/572435/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin122.fits evtable="EVENTS" outfile="/scratch/kocevski/572435/ft1_filtered_4FGL_J0126.8+2412_daily_bin122.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.99
user 0.28
sys 0.69

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572435/ft1_filtered_4FGL_J0126.8+2412_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/572435/ft2_4FGL_J0126.8+2412_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/572435/ltcube_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.fits outfile=/scratch/kocevski/572435/expmap_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.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/572435/ltcube_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.fits
.....................!
real 157.36
user 151.90
sys 4.90

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/572435/ft1_filtered_4FGL_J0126.8+2412_daily_bin122.fits scfile=/scratch/kocevski/572435/ft2_4FGL_J0126.8+2412_daily_bin122.fits outfile=/scratch/kocevski/572435/cmap_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.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 1.02
user 0.33
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572435/ft1_filtered_4FGL_J0126.8+2412_daily_bin122.fits scfile=/scratch/kocevski/572435/ft2_4FGL_J0126.8+2412_daily_bin122.fits outfile=/scratch/kocevski/572435/cmap_HighResolution_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.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 1.02
user 0.33
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4405       1.0000         .10000E-03   10000.    
     6 'norm      '    .32020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69545E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12898E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47945E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0460       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0525       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88756       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99866       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=   8025.480     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2102 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8355        .15989E-07** at limit **
   2  Prefactor     .10000E-03    13.180        .55527E-09** at limit **
   3  Prefactor     .10000E-03    7.4601        .16849E-06** at limit **
   4  Prefactor     .10000E-03    14.150        .53617E-07** at limit **
   5  norm          1.4405        .60239        .36152E-07   -.62213E-03
   6  norm          .10001E-03    .50083       -.76336E-07** at limit **
   7  Prefactor     .10000E-03    5.1672        .41732E-08** at limit **
   8  Prefactor     .10003E-03    261.35        .49007E-04** at limit **
   9  Prefactor     10.375        6.7080       -.10687E-05   -.11572E-02
  10  Prefactor     6.1949        6.4451       -.24174E-06   -.94076E-04
  11  Prefactor     .10000E-03    5.9678        .13227E-06** at limit **
  12  Prefactor     22.340        28.894       -.55261E-05   -.10544E-03
  13  Prefactor     .10000E-03    60.166        .17884E-05** at limit **
  14  norm          1.4397        .60366        .33228E-08   -.37508E-04
  15  Prefactor     .10000E-03    7.2235       -.20252E-06** at limit **
  16  Prefactor     .10003E-03    12.481       -.80100E-06** at limit **
  17  norm          1.0464        2.2723        .41356E-07   -.23476E-03
  18  Prefactor     .10003E-03    299.80       -.53353E-04** at limit **
  19  Prefactor     .10000E-03    3.6722        .16274E-07** at limit **
  20  Prefactor     3.0528        2.4743        .98122E-06   -.37759E-02
  21  Normalizat    .88748        .16569       -.68201E-07   -.89693E-04
  22  Prefactor     .99871        .10709        .40212E-06   -.18399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44055
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 10.3748
  Prefactor  = 6.19493
  Prefactor  = 0.0001
  Prefactor  = 22.3398
  Prefactor  = 0.0001
  norm       = 1.43974
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 1.04635
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 3.05277
  Normalizat = 0.887477
  Prefactor  = 0.998705
 **********
 **   18 **HESSE 
 **********

 FCN=   8025.480     FROM HESSE     STATUS=OK           342 CALLS     2444 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8544        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4405        .60058        .42864E-04   -1.5468    
   6  norm          .10001E-03    11.278        .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    270.27        .37420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.375        6.7982        .12445E-03   -1.5064    
  10  Prefactor     6.1949        6.3096        .16126E-03   -1.5210    
  11  Prefactor     .10000E-03    6.0241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.340        28.905        .84786E-04   -1.4762    
  13  Prefactor     .10000E-03    60.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4397        .59998        .43401E-04   -1.5468    
  15  Prefactor     .10000E-03    7.3221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    77.586        .61202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0464        1.9103        .19269E-02   -1.5503    
  18  Prefactor     .10003E-03    298.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7037        .16748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0528        5.2074        .11610E-02   -1.5359    
  21  Normalizat    .88748        .19371        .29795E-03   -.96902    
  22  Prefactor     .99871        .12725        .18366E-03   -.92773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11495e-08
Minuit parameter uncertainties:
  1  1.22155e-06
  2  1.15582e-05
  3  5.91296e-07
  4  8.40556e-06
  5  0.600587
  6  0.000600456
  7  2.01712e-06
  8  0.00603109
  9  6.79875
  10  6.31028
  11  1.8566e-05
  12  28.9227
  13  0.000131917
  14  0.59998
  15  1.25172e-05
  16  0.00322551
  17  1.9104
  18  0.00580768
  19  1.7504e-06
  20  5.20821
  21  0.193861
  22  0.127284
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.857e-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:  9.987e-01  1.273e-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:  8.875e-01  1.939e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572435/likelihoodResults_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.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) = 8025.48033323
delta logL = -0.000791273838331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8025.47954286
delta logL = -8.96937308426e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7591       1.0000          .0000       10.000    
     3 'Normalizat'    .88736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99869       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=   8025.480     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.457        .90712E-02** at limit **
   2  Index         2.7584        6.2453        .50000        .97662E-06
   3  Normalizat    .88748        .10861E-01    .67349E-01    .18828E-04
   4  Prefactor     .99871        .70987E-02    .46251E-01   -.20304E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75844
  Normalizat = 0.887477
  Prefactor  = 0.998705
 **********
 **   18 **HESSE 
 **********

 FCN=   8025.480     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    234.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7584        6.2488        .50000       -.46488    
   3  Normalizat    .88748        .28074E-01    .29795E-03   -.96902    
   4  Prefactor     .99871        .18372E-01    .18366E-03   -.92773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25822e-08
Minuit parameter uncertainties:
  1  1.05003e-05
  2  1045.43
  3  0.0280742
  4  0.018372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572435': 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) = 8025.47954196
delta logL = 3.18323145621e-10

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.050e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.758e+00  1.045e+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:  9.987e-01  1.837e-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:  8.875e-01  2.807e-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/572435/cmap_HighResolution_270950401_271209601_4FGL_J0126.8+2412_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-08-14 00:50:16.011826', job_id='572435', GAL2='1.00', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1628927416.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.18e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='122' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 572435: <4FGL_J0126.8+2412_daily_bin122> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin122> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 00:35:56 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:37:42 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:42 2021
Terminated at Sat Aug 14 00:50:16 2021
Results reported at Sat Aug 14 00:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin122 21.7036 24.21 270950401 271209601 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 :                                   596.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            860 sec.

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

