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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin444
RA = 21.7036, Dec = 24.21
tmin = 354412801, tmax = 354672001
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='573961', job_status='RUN', time_executed='2021-08-14 00:43:30.615242', time_epoch_executed='1628927010.62' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573961

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573961/ft1_4FGL_J0126.8+2412_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573961/ft1_4FGL_J0126.8+2412_daily_bin444.fits outfile=/scratch/kocevski/573961/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin444.fits ra=21.7036 dec=24.21 rad=12.0 tmin=354412801.0 tmax=354672001.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 7.34
user 3.26
sys 4.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573961/ft1_filtered_4FGL_J0126.8+2412_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/573961/ltcube_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.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/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits
.....................!
real 17.07
user 12.33
sys 4.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573961/ft1_filtered_4FGL_J0126.8+2412_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/573961/ltcube_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.fits outfile=/scratch/kocevski/573961/expmap_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.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/573961/ltcube_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.fits
.....................!
real 195.93
user 185.79
sys 9.71

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/573961/ft1_filtered_4FGL_J0126.8+2412_daily_bin444.fits scfile=/scratch/kocevski/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits outfile=/scratch/kocevski/573961/cmap_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.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 4.35
user 0.40
sys 3.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573961/ft1_filtered_4FGL_J0126.8+2412_daily_bin444.fits scfile=/scratch/kocevski/573961/ft2_4FGL_J0126.8+2412_daily_bin444.fits outfile=/scratch/kocevski/573961/cmap_HighResolution_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.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 4.31
user 0.39
sys 3.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37237E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8815       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6008       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19078E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1287       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .98383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.601       1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16530E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90447       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1687       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=   7569.580     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2063 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.413        .63469E-07** at limit **
   2  Prefactor     14.536        15.247        .74976E-07   -.22970E-04
   3  Prefactor     2.3530        15.219        .81559E-05    .99267E-05
   4  Prefactor     .10001E-03    95.040       -.19740E-05** at limit **
   5  norm          1.8807        .75123       -.81259E-08   -.34395E-03
   6  norm          1.6005        1.4105       -.16469E-06   -.21494E-03
   7  Prefactor     .10000E-03    5.0914        .20387E-06** at limit **
   8  Prefactor     5.1049        47.268        .10938E-05   -.13587E-03
   9  Prefactor     .10000E-03    4.0089       -.16411E-05** at limit **
  10  Prefactor     .10000E-03    4.0523       -.63657E-07** at limit **
  11  Prefactor     5.2667        13.711       -.24373E-07   -.57241E-04
  12  Prefactor     .10000E-03    24.128        .51984E-07** at limit **
  13  Prefactor     .10000E-03    53.692       -.10177E-07** at limit **
  14  norm          .98372        .56894        .12354E-07   -.71793E-04
  15  Prefactor     .10000E-03    11.963        .16527E-06** at limit **
  16  Prefactor     16.596        22.731        .54781E-07   -.43534E-04
  17  norm          .10000E-03    1.8686        .97156E-08** at limit **
  18  Prefactor     .10000E-03    48.147        .24934E-07** at limit **
  19  Prefactor     16.175        11.620        .79626E-07   -.21509E-04
  20  Prefactor     .10003E-03    5.8558        .28945E-05** at limit **
  21  Normalizat    .90429        .20959       -.54124E-06   -.10192E-03
  22  Prefactor     1.1689        .12656       -.15365E-06   -.26011E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 14.5364
  Prefactor  = 2.35296
  Prefactor  = 0.000100006
  norm       = 1.88073
  norm       = 1.60055
  Prefactor  = 0.000100001
  Prefactor  = 5.10489
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.2667
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.983716
  Prefactor  = 0.0001
  Prefactor  = 16.5961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1752
  Prefactor  = 0.000100026
  Normalizat = 0.904286
  Prefactor  = 1.16886
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.580     FROM HESSE     STATUS=OK           352 CALLS     2415 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.536        15.280        .10506E-03   -1.4945    
   3  Prefactor     2.3530        16.460        .13364E-02   -1.5401    
   4  Prefactor     .10001E-03    99.273        .42592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8807        .74816        .45343E-04   -1.5434    
   6  norm          1.6005        1.3954        .91207E-04   -1.5455    
   7  Prefactor     .10000E-03    5.9168        .75861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1049        49.295        .17753E-03   -1.5256    
   9  Prefactor     .10000E-03    4.4027        .34886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0883        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2667        13.682        .17505E-03   -1.5249    
  12  Prefactor     .10000E-03    24.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .98372        .56212        .48187E-04   -1.5510    
  15  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.596        22.725        .98300E-04   -1.4893    
  17  norm          .10000E-03    1.8807        .11603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.175        11.622        .99582E-04   -1.4903    
  20  Prefactor     .10003E-03    22.981        .33890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90429        .23980        .33921E-03   -.96310    
  22  Prefactor     1.1689        .14491        .19178E-03   -.87295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07598e-09
Minuit parameter uncertainties:
  1  4.10032e-08
  2  15.2837
  3  12.4513
  4  0.00156548
  5  0.748168
  6  1.3954
  7  0.000115107
  8  31.7608
  9  0.000195337
  10  7.73332e-06
  11  13.6902
  12  0.000312982
  13  0.000361727
  14  0.562128
  15  4.24671e-05
  16  22.7366
  17  1.20477e-06
  18  0.000181425
  19  11.6238
  20  0.00154978
  21  0.240081
  22  0.144959
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  5.267e+00  1.369e+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.169e+00  1.450e-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.043e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/573961/likelihoodResults_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.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) = 7569.53660928
delta logL = 0.0434020643661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7569.51954338
delta logL = 0.060467962272

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7569.520     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      282 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6954        419.90        .12383E-02   -.29381E-03
   2  Index         3.8833        8.0244        .99174E-02   -.28699E-04
   3  Normalizat    .87994        .19816        .34345E-03   -.48560E-04
   4  Prefactor     1.1800        .13347        .19100E-03   -.12227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6954
  Index      = 3.88334
  Normalizat = 0.879938
  Prefactor  = 1.17997
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.520     FROM HESSE     STATUS=OK            27 CALLS      309 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6954        19.007        .49533E-04   -1.5380    
   2  Index         3.8833        3.8736        .39670E-03   -.22523    
   3  Normalizat    .87994        .24063        .13738E-04   -.97169    
   4  Prefactor     1.1800        .14841        .38199E-04   -.86950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30006e-10
Minuit parameter uncertainties:
  1  14.3215
  2  4.47735
  3  0.240924
  4  0.148458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573961': 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) = 7569.51954232
delta logL = 0.0604690231039

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.695e+00  1.432e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.883e+00  4.477e+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.180e+00  1.485e-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.799e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/573961/cmap_HighResolution_354412801_354672001_4FGL_J0126.8+2412_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-08-14 00:56:01.633850', job_id='573961', GAL2='1.18', fit_tolerance='1e-08', EG2='0.88', EG='0.90', time_epoch_completed='1628927761.63', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.05e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='444' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 573961: <4FGL_J0126.8+2412_daily_bin444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin444 21.7036 24.21 354412801 354672001 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 :                                   801.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            927 sec.

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

