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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin292
RA = 21.7036, Dec = 24.21
tmin = 315014401, tmax = 315273601
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='573745', job_status='RUN', time_executed='2021-08-14 00:44:06.594279', time_epoch_executed='1628927046.59' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573745/ft1_4FGL_J0126.8+2412_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573745/ft1_4FGL_J0126.8+2412_daily_bin292.fits outfile=/scratch/kocevski/573745/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin292.fits ra=21.7036 dec=24.21 rad=12.0 tmin=315014401.0 tmax=315273601.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.39
user 3.35
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573745/ft1_filtered_4FGL_J0126.8+2412_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/573745/ltcube_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.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/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits
.....................!
real 14.21
user 12.87
sys 1.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573745/ft1_filtered_4FGL_J0126.8+2412_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/573745/ltcube_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.fits outfile=/scratch/kocevski/573745/expmap_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.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/573745/ltcube_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.fits
.....................!
real 193.17
user 186.08
sys 6.58

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/573745/ft1_filtered_4FGL_J0126.8+2412_daily_bin292.fits scfile=/scratch/kocevski/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits outfile=/scratch/kocevski/573745/cmap_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.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.34
user 0.38
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573745/ft1_filtered_4FGL_J0126.8+2412_daily_bin292.fits scfile=/scratch/kocevski/573745/ft2_4FGL_J0126.8+2412_daily_bin292.fits outfile=/scratch/kocevski/573745/cmap_HighResolution_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.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.33
user 0.38
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.326       1.0000         .10000E-03   10000.    
     5 'norm      '    .91732       1.0000         .10000E-03   10000.    
     6 'norm      '    .33275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56657E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0672       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    92.504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95049       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92433       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=   7403.050     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2724 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.216        1.3213        .88210E-08    .15633E-02
   2  Prefactor     6.1736        1.0246       -.28199E-08    .12486E-03
   3  Prefactor     .10000E-03    11.541        .11632E-05** at limit **
   4  Prefactor     11.314        2.7860       -.22971E-06   -.16564E-02
   5  norm          .91701        .70238        .23587E-07    .10752E-04
   6  norm          .33320        1.0437        .58619E-06   -.40131E-04
   7  Prefactor     25.484        1.1578       -.35395E-07    .99218E-04
   8  Prefactor     .10010E-03    6213.8       -.93290E-04** at limit **
   9  Prefactor     3.1904        5.4130       -.34299E-06    .86414E-04
  10  Prefactor     .10000E-03    15.650        .39796E-06** at limit **
  11  Prefactor     .10000E-03    3.5903        .72638E-07** at limit **
  12  Prefactor     .10000E-03    45.027        .28228E-05** at limit **
  13  Prefactor     .10002E-03    172.94       -.10957E-05** at limit **
  14  norm          2.0662        .71838       -.38672E-08   -.11090E-04
  15  Prefactor     .10000E-03    7.4353        .41337E-07** at limit **
  16  Prefactor     .10000E-03    13.046       -.21935E-05** at limit **
  17  norm          92.507        10.463        .53884E-07   -.24037E-03
  18  Prefactor     .10000E-03    53.447        .33838E-05** at limit **
  19  Prefactor     .10000E-03    7.3260        .53010E-06** at limit **
  20  Prefactor     .10000E-03    4.5683        .19308E-06** at limit **
  21  Normalizat    .95064        .21578        .17240E-05   -.87572E-05
  22  Prefactor     .92422        .13889       -.20593E-06   -.11505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2162
  Prefactor  = 6.17358
  Prefactor  = 0.0001
  Prefactor  = 11.3135
  norm       = 0.917008
  norm       = 0.333203
  Prefactor  = 25.484
  Prefactor  = 0.000100102
  Prefactor  = 3.19042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 2.06622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 92.5066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950643
  Prefactor  = 0.924216
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.050     FROM HESSE     STATUS=OK           400 CALLS     3124 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.216        8.8742        .29906E-02   -1.5038    
   2  Prefactor     6.1736        9.4758        .40393E-02   -1.5211    
   3  Prefactor     .10000E-03    11.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.314        45.988        .29760E-02   -1.5035    
   5  norm          .91701        .88198        .12870E-01   -1.5516    
   6  norm          .33320        1.0684        .10568E-01   -1.5593    
   7  Prefactor     25.484        14.325        .19838E-02   -1.4698    
   8  Prefactor     .10010E-03    47.479        .14264       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1904        6.6159        .57111E-02   -1.5351    
  10  Prefactor     .10000E-03    4.4223        .60069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    171.63        .10547E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0662        .71928        .71837E-02   -1.5420    
  15  Prefactor     .10000E-03    7.3054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          92.507        10.518        .10446E-02   -1.3781    
  18  Prefactor     .10000E-03    53.545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95064        .19041        .69903E-01   -.94703    
  22  Prefactor     .92422        .11862        .45314E-01   -.95300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84691e-08
Minuit parameter uncertainties:
  1  8.87521
  2  9.47815
  3  5.42291e-06
  4  45.6805
  5  0.881991
  6  1.06845
  7  14.3273
  8  0.00440838
  9  6.61737
  10  1.14903e-05
  11  3.79373e-07
  12  3.3204e-05
  13  0.00398732
  14  0.719278
  15  4.8925e-06
  16  3.22489e-05
  17  10.5179
  18  9.22284e-05
  19  3.9894e-06
  20  2.34692e-07
  21  0.190542
  22  0.118651
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.794e-07  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.242e-01  1.187e-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:  9.506e-01  1.905e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573745/likelihoodResults_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.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) = 7403.05108278
delta logL = -0.00132569250673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7403.04975697
delta logL = 1.1489555618e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7456       1.0000          .0000       10.000    
     3 'Normalizat'    .95064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7403.050     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      262 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.409        .16037E-01** at limit **
   2  Index         2.2323        8.8578        .50000       -.10334E-06
   3  Normalizat    .95064        .14128E-01    .30926E-03    .28125E-03
   4  Prefactor     .92422        .92134E-02    .20292E-03    .48574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2323
  Normalizat = 0.950644
  Prefactor  = 0.924217
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    320.87        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2323        8.6718        .50000       -.58661    
   3  Normalizat    .95064        .45764E-01    .12371E-04   -.94703    
   4  Prefactor     .92422        .29845E-01    .40583E-04   -.95300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20301e-10
Minuit parameter uncertainties:
  1  4.19551e-05
  2  986.972
  3  0.0457655
  4  0.029845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573745': 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) = 7403.04975483
delta logL = 2.25580060942e-06

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.196e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.232e+00  9.870e+02  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.242e-01  2.985e-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:  9.506e-01  4.577e-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/573745/cmap_HighResolution_315014401_315273601_4FGL_J0126.8+2412_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-08-14 00:56:56.172038', job_id='573745', GAL2='0.92', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1628927816.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='292' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 573745: <4FGL_J0126.8+2412_daily_bin292> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin292 21.7036 24.21 315014401 315273601 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 :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            994 sec.

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

