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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin45
RA = 21.7036, Dec = 24.21
tmin = 250992001, tmax = 251251201
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='572341', job_status='RUN', time_executed='2021-08-14 00:40:15.042276', time_epoch_executed='1628926815.04' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572341/ft1_4FGL_J0126.8+2412_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572341/ft1_4FGL_J0126.8+2412_daily_bin45.fits outfile=/scratch/kocevski/572341/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin45.fits ra=21.7036 dec=24.21 rad=12.0 tmin=250992001.0 tmax=251251201.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.81
user 1.24
sys 3.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.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/572341/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/572341/ft1_filtered_4FGL_J0126.8+2412_daily_bin45.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 3.94
user 0.32
sys 3.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572341/ft1_filtered_4FGL_J0126.8+2412_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/572341/ltcube_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.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/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits
.....................!
real 17.08
user 13.00
sys 4.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572341/ft1_filtered_4FGL_J0126.8+2412_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/572341/ltcube_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.fits outfile=/scratch/kocevski/572341/expmap_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.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/572341/ltcube_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.fits
.....................!
real 197.22
user 187.14
sys 9.70

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/572341/ft1_filtered_4FGL_J0126.8+2412_daily_bin45.fits scfile=/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits outfile=/scratch/kocevski/572341/cmap_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.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 3.54
user 0.37
sys 3.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572341/ft1_filtered_4FGL_J0126.8+2412_daily_bin45.fits scfile=/scratch/kocevski/572341/ft2_4FGL_J0126.8+2412_daily_bin45.fits outfile=/scratch/kocevski/572341/cmap_HighResolution_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.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 3.78
user 0.38
sys 3.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.555       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .96009       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6711       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1738       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46991E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.460       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    151.96       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74085       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0551       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=   6092.595     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2360 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5767       -.29553E-06** at limit **
   2  Prefactor     13.568        11.900       -.23132E-07   -.70416E-05
   3  Prefactor     26.087        14.085        .37739E-07    .44085E-04
   4  Prefactor     .10000E-03    11.845        .57415E-06** at limit **
   5  norm          .95998        .55417        .45156E-07    .14065E-02
   6  norm          1.9352        1.3450        .48811E-07    .31603E-03
   7  Prefactor     1.6677        6.9458       -.20853E-06   -.74422E-04
   8  Prefactor     31.694        67.944       -.10191E-04    .21269E-03
   9  Prefactor     1.1663        13.748        .92378E-05    .31186E-03
  10  Prefactor     6.2582        7.3992        .11999E-06    .73082E-04
  11  Prefactor     4.3894        9.8453        .27040E-06    .10485E-03
  12  Prefactor     .10000E-03    8.3312       -.87526E-07** at limit **
  13  Prefactor     .10000E-03    36.025       -.23168E-06** at limit **
  14  norm          .26631        .53622       -.19275E-07   -.64653E-03
  15  Prefactor     .10007E-03    7.9004        .36792E-05** at limit **
  16  Prefactor     34.454        27.013       -.29004E-07   -.49424E-04
  17  norm          .10000E-03    2.3191       -.38321E-06** at limit **
  18  Prefactor     152.05        177.42        .17112E-05    .70802E-04
  19  Prefactor     3.2099        5.8041       -.65137E-07   -.62016E-04
  20  Prefactor     .10000E-03    3.8748        .43155E-06** at limit **
  21  Normalizat    .74098        .19800        .11646E-05   -.29465E-04
  22  Prefactor     1.0551        .12680       -.56763E-06   -.75075E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.5683
  Prefactor  = 26.0865
  Prefactor  = 0.0001
  norm       = 0.959976
  norm       = 1.93515
  Prefactor  = 1.66773
  Prefactor  = 31.6935
  Prefactor  = 1.16632
  Prefactor  = 6.25823
  Prefactor  = 4.38941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.266311
  Prefactor  = 0.000100069
  Prefactor  = 34.4543
  norm       = 0.0001
  Prefactor  = 152.05
  Prefactor  = 3.20986
  Prefactor  = 0.0001
  Normalizat = 0.740985
  Prefactor  = 1.05512
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.595     FROM HESSE     STATUS=OK           346 CALLS     2706 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5891        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.568        11.900        .10879E-03   -1.4971    
   3  Prefactor     26.087        14.076        .78434E-04   -1.4686    
   4  Prefactor     .10000E-03    11.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95998        .55012        .42519E-04   -1.5512    
   6  norm          1.9352        1.3301        .70680E-04   -1.5430    
   7  Prefactor     1.6677        6.9131        .32609E-03   -1.5450    
   8  Prefactor     31.694        72.106        .71266E-04   -1.4581    
   9  Prefactor     1.1663        15.672        .18444E-02   -1.5492    
  10  Prefactor     6.2582        7.3813        .16044E-03   -1.5208    
  11  Prefactor     4.3894        9.8306        .19230E-03   -1.5289    
  12  Prefactor     .10000E-03    8.3340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .26631        .53694        .20553E-03   -1.5605    
  15  Prefactor     .10007E-03    39.136        .34879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.454        26.986        .68265E-04   -1.4533    
  17  norm          .10000E-03    2.4199        .23264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     152.05        177.99        .16349E-03   -1.3235    
  19  Prefactor     3.2099        5.7803        .22612E-03   -1.5350    
  20  Prefactor     .10000E-03    3.9226        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74098        .22291        .31694E-03   -1.0230    
  22  Prefactor     1.0551        .14580        .17943E-03   -.90914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50553e-09
Minuit parameter uncertainties:
  1  3.88937e-05
  2  11.9022
  3  14.0779
  4  0.000130964
  5  0.550127
  6  1.33009
  7  6.7921
  8  72.3049
  9  8.55318
  10  7.38242
  11  9.83424
  12  1.93382e-05
  13  0.000143837
  14  0.536953
  15  0.00328621
  16  26.9954
  17  4.05367e-05
  18  178.622
  19  5.78131
  20  5.51602e-05
  21  0.223183
  22  0.145854
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.389e+00  9.834e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.055e+00  1.459e-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.410e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/572341/likelihoodResults_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.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) = 6092.27076494
delta logL = 0.324106467534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.19627708
delta logL = 0.39859433375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3201       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9115       1.0000          .0000       10.000    
     3 'Normalizat'    .75480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       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=   6092.196     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3294        12.236        .34746E-02    .71226E-04
   2  Index         1.9130        .58154        .26324       -.50953E-04
   3  Normalizat    .75416        .18579        .71033E-01    .11929E-03
   4  Prefactor     1.0447        .12459        .40260E-01    .20642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32942
  Index      = 1.91297
  Normalizat = 0.754163
  Prefactor  = 1.04474
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.196     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3294        11.502        .13899E-03   -1.5131    
   2  Index         1.9130        .73916        .99717E-02   -.66544    
   3  Normalizat    .75416        .21298        .31436E-03   -1.0179    
   4  Prefactor     1.0447        .14296        .18011E-03   -.91253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27971e-11
Minuit parameter uncertainties:
  1  11.5052
  2  0.743586
  3  0.213218
  4  0.143008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572341': 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) = 6092.19626875
delta logL = 0.398602659803

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  8.329e+00  1.151e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  1.913e+00  7.436e-01  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.045e+00  1.430e-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.542e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 21.704 24.210
Photon Index (Free Index): 1.91 +/- 0.74
Photon Flux (Free Index): 1.78e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.54e-05 +/- 2.73e-05

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/572341/cmap_HighResolution_250992001_251251201_4FGL_J0126.8+2412_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='3.99e-01', photon_flux2='1.78e-08', job_status='DONE', time_completed='2021-08-14 00:51:23.120231', photon_index_error2='0.74', photon_index2='1.91', ts='0.24', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.73e-05', EG='0.74', time_epoch_completed='1628927483.12', return_code='0', job_id='572341', GAL2='1.04', EG2='0.75', return_code2='0', photon_flux_error2='2.74e-08', ts2='1.04', photon_index='2.76' WHERE bin_id='45' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 572341: <4FGL_J0126.8+2412_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin45 21.7036 24.21 250992001 251251201 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 :                                   716.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            935 sec.

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

