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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin394
RA = 21.7036, Dec = 24.21
tmin = 341452801, tmax = 341712001
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='573890', job_status='RUN', time_executed='2021-08-14 00:43:32.219466', time_epoch_executed='1628927012.22' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573890/ft1_4FGL_J0126.8+2412_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573890/ft1_4FGL_J0126.8+2412_daily_bin394.fits outfile=/scratch/kocevski/573890/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin394.fits ra=21.7036 dec=24.21 rad=12.0 tmin=341452801.0 tmax=341712001.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.32
user 3.20
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.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/573890/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin394.fits evtable="EVENTS" outfile="/scratch/kocevski/573890/ft1_filtered_4FGL_J0126.8+2412_daily_bin394.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 2.36
user 0.33
sys 2.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573890/ft1_filtered_4FGL_J0126.8+2412_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/573890/ltcube_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.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/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits
.....................!
real 18.46
user 15.91
sys 2.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573890/ft1_filtered_4FGL_J0126.8+2412_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/573890/ltcube_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.fits outfile=/scratch/kocevski/573890/expmap_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.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/573890/ltcube_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.fits
.....................!
real 193.60
user 184.92
sys 8.07

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/573890/ft1_filtered_4FGL_J0126.8+2412_daily_bin394.fits scfile=/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits outfile=/scratch/kocevski/573890/cmap_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.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 2.36
user 0.38
sys 1.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573890/ft1_filtered_4FGL_J0126.8+2412_daily_bin394.fits scfile=/scratch/kocevski/573890/ft2_4FGL_J0126.8+2412_daily_bin394.fits outfile=/scratch/kocevski/573890/cmap_HighResolution_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.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 2.37
user 0.39
sys 1.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2942       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9408       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0767       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1993       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .97153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1011       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93895       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1401       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=   8038.288     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2431 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0036        7.1531       -.29270E-05    .33275E-04
   2  Prefactor     4.2854        16.103        .13111E-05   -.33307E-04
   3  Prefactor     21.647        17.339        .36427E-07    .26274E-04
   4  Prefactor     6.8457        55.244       -.38059E-04    .65787E-05
   5  norm          2.0773        .89269        .61853E-06    .17069E-04
   6  norm          1.1980        1.3800       -.13575E-05   -.23504E-02
   7  Prefactor     12.368        10.744       -.19801E-06   -.16540E-05
   8  Prefactor     .10000E-03    40.523       -.27186E-04** at limit **
   9  Prefactor     2.7396        2.9525        .35465E-06    .40671E-03
  10  Prefactor     5.6665        8.9074        .14315E-04   -.13161E-04
  11  Prefactor     14.576        14.127        .24329E-06    .20031E-04
  12  Prefactor     29.727        25.744       -.84879E-08    .46053E-06
  13  Prefactor     .10000E-03    31.821        .88060E-05** at limit **
  14  norm          .97129        .61143       -.64565E-07   -.66752E-03
  15  Prefactor     .10000E-03    3.1437        .23005E-07** at limit **
  16  Prefactor     .10000E-03    44.317       -.11016E-04** at limit **
  17  norm          3.3127        4.6768       -.51881E-06   -.60198E-03
  18  Prefactor     .10000E-03    49.315        .34311E-04** at limit **
  19  Prefactor     15.592        12.541        .26353E-06    .51898E-04
  20  Prefactor     5.0993        6.4539       -.83941E-06   -.27692E-03
  21  Normalizat    .93890        .22069       -.36874E-05    .18150E-03
  22  Prefactor     1.1401        .13000        .11677E-05    .65320E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.00356
  Prefactor  = 4.28544
  Prefactor  = 21.6472
  Prefactor  = 6.84572
  norm       = 2.07731
  norm       = 1.19799
  Prefactor  = 12.3676
  Prefactor  = 0.0001
  Prefactor  = 2.73963
  Prefactor  = 5.66646
  Prefactor  = 14.5757
  Prefactor  = 29.7274
  Prefactor  = 0.0001
  norm       = 0.971289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3127
  Prefactor  = 0.0001
  Prefactor  = 15.5923
  Prefactor  = 5.09926
  Normalizat = 0.938899
  Prefactor  = 1.14015
 **********
 **   18 **HESSE 
 **********

 FCN=   8038.288     FROM HESSE     STATUS=OK           352 CALLS     2783 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0036        7.1370        .14174E-03   -1.5142    
   2  Prefactor     4.2854        16.116        .19441E-03   -1.5294    
   3  Prefactor     21.647        17.292        .86092E-04   -1.4777    
   4  Prefactor     6.8457        55.225        .15228E-03   -1.5185    
   5  norm          2.0773        .88920        .49320E-04   -1.5420    
   6  norm          1.1980        1.3501        .10508E-03   -1.5489    
   7  Prefactor     12.368        10.756        .11390E-03   -1.5004    
   8  Prefactor     .10000E-03    40.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7396        2.9548        .15511E-03   -1.5377    
  10  Prefactor     5.6665        8.8612        .16876E-03   -1.5232    
  11  Prefactor     14.576        14.145        .10491E-03   -1.4944    
  12  Prefactor     29.727        25.741        .73482E-04   -1.4617    
  13  Prefactor     .10000E-03    31.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .97129        .60794        .53452E-04   -1.5511    
  15  Prefactor     .10000E-03    3.1494        .15523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3127        4.6589        .20953E-03   -1.5344    
  18  Prefactor     .10000E-03    49.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.592        12.509        .10142E-03   -1.4918    
  20  Prefactor     5.0993        6.4680        .17802E-03   -1.5256    
  21  Normalizat    .93890        .25366        .34977E-03   -.95106    
  22  Prefactor     1.1401        .15031        .20104E-03   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51787e-09
Minuit parameter uncertainties:
  1  7.13776
  2  16.1323
  3  17.2958
  4  38.9362
  5  0.889203
  6  1.35012
  7  10.7573
  8  0.000211645
  9  2.95498
  10  8.86323
  11  14.1478
  12  25.7511
  13  1.56216e-05
  14  0.60794
  15  3.49624e-06
  16  3.06597e-06
  17  4.65943
  18  8.78237e-06
  19  12.5111
  20  6.46892
  21  0.253982
  22  0.150363
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.458e+01  1.415e+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:  1.140e+00  1.504e-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.389e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 21.704 24.210
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 5.86e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/573890/likelihoodResults_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.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) = 8037.64675255
delta logL = 0.641716724916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8037.63832649
delta logL = 0.650142791532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2638       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0020       1.0000          .0000       10.000    
     3 'Normalizat'    .86482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1718       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=   8037.638     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      250 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2524        80.818        .37206E-02    .41819E-03
   2  Index         4.0034        3.7286        .20574        .11724E-03
   3  Normalizat    .86488        .65954E-01    .81923E-01    .42562E-04
   4  Prefactor     1.1718        .40728E-01    .35334E-01    .51978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.25241
  Index      = 4.00342
  Normalizat = 0.864883
  Prefactor  = 1.17179
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.638     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2524        19.273        .14882E-03   -1.5169    
   2  Index         4.0034        2.1250        .72161E-02   -.20066    
   3  Normalizat    .86488        .24654        .36270E-03   -.97705    
   4  Prefactor     1.1718        .15173        .19862E-03   -.87204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25212e-11
Minuit parameter uncertainties:
  1  19.2895
  2  2.19804
  3  0.246864
  4  0.151785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573890': 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) = 8037.6383258
delta logL = 0.650143479769

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  7.252e+00  1.929e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  4.003e+00  2.198e+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:  1.172e+00  1.518e-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.649e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 21.704 24.210
Photon Index (Free Index): 4.00 +/- 2.20
Photon Flux (Free Index): 1.22e-07 +/- 8.40e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/573890/cmap_HighResolution_341452801_341712001_4FGL_J0126.8+2412_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='1.83e-05', photon_flux_error='5.86e-08', dlogl='6.50e-01', energy_flux='1.39e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-14 00:56:12.934332', photon_index_error2='2.20', photon_index2='4.00', ts='1.48', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.32e-05', EG='0.94', time_epoch_completed='1628927772.93', return_code='0', job_id='573890', GAL2='1.17', EG2='0.86', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='8.40e-08', ts2='2.97', photon_index='2.76' WHERE bin_id='394' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 573890: <4FGL_J0126.8+2412_daily_bin394> in cluster <slac> Done

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

Your job looked like:

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

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

