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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin121
RA = 21.7036, Dec = 24.21
tmin = 270691201, tmax = 270950401
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='572434', job_status='RUN', time_executed='2021-08-14 00:40:44.133764', time_epoch_executed='1628926844.13' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572434/ft1_4FGL_J0126.8+2412_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572434/ft1_4FGL_J0126.8+2412_daily_bin121.fits outfile=/scratch/kocevski/572434/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin121.fits ra=21.7036 dec=24.21 rad=12.0 tmin=270691201.0 tmax=270950401.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 3.23
user 1.44
sys 1.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.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/572434/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin121.fits evtable="EVENTS" outfile="/scratch/kocevski/572434/ft1_filtered_4FGL_J0126.8+2412_daily_bin121.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.01
user 0.34
sys 1.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572434/ft1_filtered_4FGL_J0126.8+2412_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/572434/ltcube_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.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/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits
.....................!
real 15.29
user 13.19
sys 1.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572434/ft1_filtered_4FGL_J0126.8+2412_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/572434/ltcube_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.fits outfile=/scratch/kocevski/572434/expmap_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.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/572434/ltcube_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.fits
.....................!
real 192.95
user 185.56
sys 6.96

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/572434/ft1_filtered_4FGL_J0126.8+2412_daily_bin121.fits scfile=/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits outfile=/scratch/kocevski/572434/cmap_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.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.99
user 0.38
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572434/ft1_filtered_4FGL_J0126.8+2412_daily_bin121.fits scfile=/scratch/kocevski/572434/ft2_4FGL_J0126.8+2412_daily_bin121.fits outfile=/scratch/kocevski/572434/cmap_HighResolution_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.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.00
user 0.39
sys 1.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10409E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13099E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0886       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1591       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17186E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19948E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.599       1.0000         .10000E-03   10000.    
    14 'norm      '    .73014       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2424       1.0000         .10000E-03   10000.    
    17 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24498E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90179       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91854       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=   7152.571     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2049 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6316       -.11909E-06** at limit **
   2  Prefactor     .10000E-03    5.0200       -.40378E-06** at limit **
   3  Prefactor     .10000E-03    4.3805        .57372E-07** at limit **
   4  Prefactor     .10000E-03    64.724       -.12214E-04** at limit **
   5  norm          2.0883        .73332       -.13332E-06   -.26781E-02
   6  norm          1.1588        1.2144        .23719E-07   -.34841E-03
   7  Prefactor     .10000E-03    12.862       -.10739E-05** at limit **
   8  Prefactor     .10000E-03    51.563        .37405E-04** at limit **
   9  Prefactor     3.4126        3.2639       -.19082E-06   -.96940E-03
  10  Prefactor     5.5000        6.2290       -.27872E-05   -.52719E-03
  11  Prefactor     .10137E-03    6.9529        .68453E-05** at limit **
  12  Prefactor     .10000E-03    20.437        .66914E-05** at limit **
  13  Prefactor     21.498        50.353       -.15938E-03   -.17636E-03
  14  norm          .73001        .45645        .11150E-05    .21231E-02
  15  Prefactor     2.8418        4.5917       -.40333E-06   -.35447E-03
  16  Prefactor     6.2424        18.629       -.14227E-05   -.40481E-04
  17  norm          .10000E-03    1.5764       -.12295E-07** at limit **
  18  Prefactor     .10000E-03    29.862       -.19076E-04** at limit **
  19  Prefactor     .10000E-03    5.4437        .30460E-06** at limit **
  20  Prefactor     .10000E-03    1.8426       -.53883E-07** at limit **
  21  Normalizat    .90196        .17028        .32830E-05   -.93852E-03
  22  Prefactor     .91841        .10800        .23063E-05   -.13640E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08832
  norm       = 1.15881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41255
  Prefactor  = 5.49999
  Prefactor  = 0.000101367
  Prefactor  = 0.0001
  Prefactor  = 21.4982
  norm       = 0.730008
  Prefactor  = 2.84181
  Prefactor  = 6.2424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.901965
  Prefactor  = 0.918414
 **********
 **   18 **HESSE 
 **********

 FCN=   7152.571     FROM HESSE     STATUS=OK           340 CALLS     2389 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6473        .15740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4223        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0883        .73150        .40873E-04   -1.5419    
   6  norm          1.1588        1.2114        .42825E-04   -1.5493    
   7  Prefactor     .10000E-03    12.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4126        3.2636        .14462E-03   -1.5338    
  10  Prefactor     5.5000        6.2257        .17129E-03   -1.5239    
  11  Prefactor     .10137E-03    9.4061        .64120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.498        50.678        .86185E-04   -1.4780    
  14  norm          .73001        .45535        .43352E-04   -1.5537    
  15  Prefactor     2.8418        4.5758        .22346E-03   -1.5371    
  16  Prefactor     6.2424        18.610        .16067E-03   -1.5208    
  17  norm          .10000E-03    1.5968        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8630        .11210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90196        .19648        .28182E-03   -.96391    
  22  Prefactor     .91841        .12507        .18156E-03   -.95501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02511e-09
Minuit parameter uncertainties:
  1  1.07162e-05
  2  2.47324e-05
  3  1.18495e-05
  4  0.000110731
  5  0.731501
  6  1.21141
  7  9.69294e-05
  8  0.000238314
  9  3.26377
  10  6.22647
  11  0.00717347
  12  0.000155609
  13  50.7794
  14  0.455355
  15  4.57632
  16  18.6268
  17  5.40685e-06
  18  6.90266e-07
  19  8.2747e-06
  20  6.83173e-06
  21  0.196636
  22  0.125107
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.014e-04  7.173e-03  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.184e-01  1.251e-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.020e-01  1.966e-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: 9.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572434/likelihoodResults_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.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) = 7152.57103691
delta logL = -4.80855778733e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7152.50849455
delta logL = 0.0624942774884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64885       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2080       1.0000          .0000       10.000    
     3 'Normalizat'    .88759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92287       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=   7152.508     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      407 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64885        23.957        .11864E-01    .17901E-02
   2  Index         4.2080        2.5105        .50000        .11841E-03
   3  Normalizat    .88759        .18783E-01    .64219E-01    .41384E-03
   4  Prefactor     .92288        .12262E-01    .45296E-01    .55488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.648849
  Index      = 4.20799
  Normalizat = 0.887593
  Prefactor  = 0.922876
 **********
 **   18 **HESSE 
 **********

 FCN=   7152.508     FROM HESSE     STATUS=OK            29 CALLS      436 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64885        69.620        .19085E-03   -1.5547    
   2  Index         4.2080        5.1581        .10396E-01   -.15907    
   3  Normalizat    .88759        .19438        .28405E-03   -.96897    
   4  Prefactor     .92288        .12491        .18115E-03   -.95346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9974e-08
Minuit parameter uncertainties:
  1  13.4572
  2  14.2537
  3  0.194533
  4  0.124948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572434': 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) = 7152.50849455
delta logL = 0.0624942779987

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  6.488e-01  1.346e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  4.208e+00  1.425e+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:  9.229e-01  1.249e-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.876e-01  1.945e-01  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/572434/cmap_HighResolution_270691201_270950401_4FGL_J0126.8+2412_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-08-14 00:52:15.826407', job_id='572434', GAL2='0.92', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1628927535.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.25e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='121' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 572434: <4FGL_J0126.8+2412_daily_bin121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin121 21.7036 24.21 270691201 270950401 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 :                                   712.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            980 sec.

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

