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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin366
RA = 21.7036, Dec = 24.21
tmin = 334195201, tmax = 334454401
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='573850', job_status='RUN', time_executed='2021-08-14 00:42:34.224611', time_epoch_executed='1628926954.22' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573850

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573850/ft1_4FGL_J0126.8+2412_daily_bin366.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573850/ft1_4FGL_J0126.8+2412_daily_bin366.fits outfile=/scratch/kocevski/573850/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin366.fits ra=21.7036 dec=24.21 rad=12.0 tmin=334195201.0 tmax=334454401.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 5.06
user 3.71
sys 1.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573850/ft1_filtered_4FGL_J0126.8+2412_daily_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/573850/ltcube_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.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/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits
.....................!
real 14.55
user 12.90
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573850/ft1_filtered_4FGL_J0126.8+2412_daily_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/573850/ltcube_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.fits outfile=/scratch/kocevski/573850/expmap_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.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/573850/ltcube_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.fits
.....................!
real 193.51
user 186.33
sys 6.84

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/573850/ft1_filtered_4FGL_J0126.8+2412_daily_bin366.fits scfile=/scratch/kocevski/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits outfile=/scratch/kocevski/573850/cmap_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.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.78
user 0.39
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573850/ft1_filtered_4FGL_J0126.8+2412_daily_bin366.fits scfile=/scratch/kocevski/573850/ft2_4FGL_J0126.8+2412_daily_bin366.fits outfile=/scratch/kocevski/573850/cmap_HighResolution_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.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.78
user 0.38
sys 1.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57985       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.537       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43709E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27343       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76446       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96709       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=   6214.111     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2494 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6317        .14448E-07** at limit **
   2  Prefactor     .10000E-03    9.6113       -.16079E-05** at limit **
   3  Prefactor     .10000E-03    4.7781       -.23368E-07** at limit **
   4  Prefactor     .10000E-03    9.4981        .11492E-05** at limit **
   5  norm          .57984        .46956        .55177E-07   -.26178E-03
   6  norm          .10000E-03    .52630        .69638E-07** at limit **
   7  Prefactor     .10000E-03    22.000       -.12868E-06** at limit **
   8  Prefactor     .10000E-03    14.233        .55935E-07** at limit **
   9  Prefactor     4.8711        4.9963       -.10521E-05   -.25878E-03
  10  Prefactor     6.9181        6.3762        .10397E-06   -.26845E-03
  11  Prefactor     7.5386        12.195       -.51087E-05   -.17138E-03
  12  Prefactor     26.229        51.968        .49558E-04    .95953E-05
  13  Prefactor     72.532        77.881       -.51648E-05   -.10202E-04
  14  norm          .10000E-03    .19004        .22774E-07** at limit **
  15  Prefactor     11.449        13.066       -.41253E-05   -.14848E-03
  16  Prefactor     .10000E-03    11.532        .73595E-06** at limit **
  17  norm          .10002E-03    2.7180        .26657E-06** at limit **
  18  Prefactor     .10000E-03    50.178        .81792E-06** at limit **
  19  Prefactor     26.437        13.352       -.48884E-06   -.23071E-03
  20  Prefactor     .26980        3.2686        .21160E-06   -.15918E-03
  21  Normalizat    .76452        .18379        .41014E-06   -.14491E-03
  22  Prefactor     .96704        .11542       -.12979E-05    .67664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.579839
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87106
  Prefactor  = 6.91814
  Prefactor  = 7.53863
  Prefactor  = 26.2289
  Prefactor  = 72.5321
  norm       = 0.0001
  Prefactor  = 11.4492
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 26.4372
  Prefactor  = 0.269797
  Normalizat = 0.764519
  Prefactor  = 0.967045
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.111     FROM HESSE     STATUS=OK           346 CALLS     2840 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8146        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57984        .44726        .46658E-03   -1.5556    
   6  norm          .10000E-03    1.1909        .11035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8711        4.9868        .16937E-03   -1.5267    
  10  Prefactor     6.9181        6.3605        .15252E-03   -1.5182    
  11  Prefactor     7.5386        12.183        .14603E-03   -1.5159    
  12  Prefactor     26.229        51.915        .78268E-04   -1.4683    
  13  Prefactor     72.532        77.538        .47138E-04   -1.4003    
  14  norm          .10000E-03    .19496        .66773E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.449        13.086        .11839E-03   -1.5031    
  16  Prefactor     .10000E-03    11.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    25.153        .22409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.437        11.967        .77938E-04   -1.4679    
  20  Prefactor     .26980        30.911        .27223E-02   -1.5604    
  21  Normalizat    .76452        .21454        .29623E-03   -1.0140    
  22  Prefactor     .96704        .13618        .17518E-03   -.93836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18592e-09
Minuit parameter uncertainties:
  1  1.06644e-05
  2  2.63773e-05
  3  4.71406e-06
  4  1.31155e-05
  5  0.447266
  6  6.93274e-06
  7  4.21261e-05
  8  4.57115e-05
  9  4.98722
  10  6.3611
  11  12.1869
  12  52.0047
  13  77.6459
  14  1.07676e-06
  15  13.0895
  16  1.35581e-05
  17  0.00130045
  18  2.04175e-05
  19  11.9681
  20  5.77767
  21  0.214778
  22  0.136226
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  7.539e+00  1.219e+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:  9.670e-01  1.362e-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:  7.645e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/573850/likelihoodResults_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.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) = 6213.96215911
delta logL = 0.14896809508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6213.95767008
delta logL = 0.153457128696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7287       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4856       1.0000          .0000       10.000    
     3 'Normalizat'    .74833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97437       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6213.958     FROM MIGRAD    STATUS=FAILED        98 CALLS      305 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7225        18.627        .92520E-03    .38858E-03
   2  Index         3.4872        2.7157        .10936E-01    .32201E-03
   3  Normalizat    .74825        .20515        .29910E-03    .24098E-04
   4  Prefactor     .97440        .13449        .17458E-03    .42720E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6213.958     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      381 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7225        18.627        .18780E-03   -1.5273    
   2  Index         3.4872        2.7157        .14373E-02   -.30737    
   3  Normalizat    .74825        .20515        .33928E-03   -1.0202    
   4  Prefactor     .97440        .13449        .17621E-03   -.93588    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6213.958     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      412 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7225        11.071        .18504E-03    .15421E-04
   2  Index         3.4872        1.6785        .21871E-02   -.67055E-06
   3  Normalizat    .74825        .20533        .11964E-04    .12163E-04
   4  Prefactor     .97440        .13385        .34915E-04    .21425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72255
  Index      = 3.48722
  Normalizat = 0.74825
  Prefactor  = 0.974403
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.958     FROM HESSE     STATUS=OK            25 CALLS      437 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7225        10.407        .37008E-04   -1.5273    
   2  Index         3.4872        1.5815        .87485E-04   -.30737    
   3  Normalizat    .74825        .20526        .23928E-05   -1.0202    
   4  Prefactor     .97440        .13375        .69830E-05   -.93588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99047e-13
Minuit parameter uncertainties:
  1  10.4112
  2  1.61205
  3  0.205468
  4  0.1338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573850': 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) = 6213.9576694
delta logL = 0.153457809185

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.723e+00  1.041e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.487e+00  1.612e+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.744e-01  1.338e-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:  7.483e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/573850/cmap_HighResolution_334195201_334454401_4FGL_J0126.8+2412_daily_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-14 00:54:08.144113', job_id='573850', GAL2='0.97', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1628927648.14', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.53e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='366' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 573850: <4FGL_J0126.8+2412_daily_bin366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin366 21.7036 24.21 334195201 334454401 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            820 sec.

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

