/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 202 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 = 7146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1598
RA = 21.7036, Dec = 24.21
tmin = 653529601, tmax = 653788801
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='717816', job_status='RUN', time_executed='2021-09-20 00:04:04.005797', time_epoch_executed='1632121444.01' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717816

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717816/ft1_4FGL_J0126.8+2412_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717816/ft1_4FGL_J0126.8+2412_daily_bin1598.fits outfile=/scratch/kocevski/717816/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1598.fits ra=21.7036 dec=24.21 rad=12.0 tmin=653529601.0 tmax=653788801.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.03
user 4.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717816/ft1_filtered_4FGL_J0126.8+2412_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/717816/ltcube_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.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/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits
.....................!
real 11.30
user 10.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717816/ft1_filtered_4FGL_J0126.8+2412_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/717816/ltcube_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.fits outfile=/scratch/kocevski/717816/expmap_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.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/717816/ltcube_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.fits
.....................!
real 189.86
user 185.28
sys 4.25

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/717816/ft1_filtered_4FGL_J0126.8+2412_daily_bin1598.fits scfile=/scratch/kocevski/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits outfile=/scratch/kocevski/717816/cmap_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.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 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717816/ft1_filtered_4FGL_J0126.8+2412_daily_bin1598.fits scfile=/scratch/kocevski/717816/ft2_4FGL_J0126.8+2412_daily_bin1598.fits outfile=/scratch/kocevski/717816/cmap_HighResolution_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.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 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5712       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6355       1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.374       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.559       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6968       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2533       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90705       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0720       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=   6243.640     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2342 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.150        11.901       -.52968E-08   -.25679E-04
   2  Prefactor     5.5700        13.508       -.26754E-07   -.75649E-04
   3  Prefactor     10.247        17.299       -.12715E-06   -.45159E-04
   4  Prefactor     .10000E-03    21.953        .14543E-04** at limit **
   5  norm          1.6355        .77380        .28061E-09   -.35059E-03
   6  norm          .10000E-03    1.0811        .60123E-07** at limit **
   7  Prefactor     .10000E-03    5.4766       -.72610E-07** at limit **
   8  Prefactor     2.6278        156.78       -.73430E-06   -.25829E-04
   9  Prefactor     15.307        8.5420       -.41151E-07   -.15613E-03
  10  Prefactor     11.376        8.7154        .26922E-06   -.97943E-04
  11  Prefactor     .10000E-03    11.247        .25779E-05** at limit **
  12  Prefactor     74.561        47.764        .26143E-05   -.47799E-06
  13  Prefactor     .10000E-03    56.714       -.22766E-04** at limit **
  14  norm          1.4336        .70038        .14692E-07    .12584E-03
  15  Prefactor     .10000E-03    9.4926       -.12806E-05** at limit **
  16  Prefactor     .10000E-03    19.524       -.14180E-04** at limit **
  17  norm          1.9432        2.6593       -.75954E-09   -.91207E-04
  18  Prefactor     .10000E-03    52.751        .17601E-04** at limit **
  19  Prefactor     8.6963        9.5552       -.28307E-07    .16560E-04
  20  Prefactor     3.2533        5.2606        .35445E-05   -.36172E-03
  21  Normalizat    .90722        .22655       -.70052E-06   -.38864E-04
  22  Prefactor     1.0719        .13710       -.38370E-06   -.20644E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1502
  Prefactor  = 5.57
  Prefactor  = 10.2466
  Prefactor  = 0.0001
  norm       = 1.63547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62777
  Prefactor  = 15.3069
  Prefactor  = 11.3762
  Prefactor  = 0.0001
  Prefactor  = 74.5614
  Prefactor  = 0.0001
  norm       = 1.43355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94316
  Prefactor  = 0.0001
  Prefactor  = 8.69632
  Prefactor  = 3.25332
  Normalizat = 0.907223
  Prefactor  = 1.07192
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.640     FROM HESSE     STATUS=OK           348 CALLS     2690 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.150        11.885        .11046E-03   -1.4983    
   2  Prefactor     5.5700        13.488        .17021E-03   -1.5236    
   3  Prefactor     10.247        17.201        .12517E-03   -1.5068    
   4  Prefactor     .10000E-03    22.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6355        .77660        .45708E-04   -1.5452    
   6  norm          .10000E-03    2.5055        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4848        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6278        152.24        .25156E-03   -1.5384    
   9  Prefactor     15.307        8.4089        .10237E-03   -1.4925    
  10  Prefactor     11.376        8.6199        .11879E-03   -1.5033    
  11  Prefactor     .10000E-03    11.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     74.561        47.762        .46499E-04   -1.3979    
  13  Prefactor     .10000E-03    56.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4336        .69915        .44601E-04   -1.5469    
  15  Prefactor     .10000E-03    9.5617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9432        2.6401        .14522E-03   -1.5429    
  18  Prefactor     .10000E-03    52.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6963        9.5351        .13592E-03   -1.5118    
  20  Prefactor     3.2533        5.1882        .22060E-03   -1.5347    
  21  Normalizat    .90722        .25999        .33929E-03   -.96207    
  22  Prefactor     1.0719        .15802        .19676E-03   -.90369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88717e-10
Minuit parameter uncertainties:
  1  11.8872
  2  13.4951
  3  17.2092
  4  2.83314e-06
  5  0.776602
  6  6.70574e-06
  7  2.12694e-06
  8  40.1097
  9  8.40951
  10  8.62088
  11  1.11107e-05
  12  47.7869
  13  3.56669e-06
  14  0.699157
  15  1.16382e-05
  16  3.03946e-05
  17  2.64027
  18  1.30001e-05
  19  9.53672
  20  5.18893
  21  0.260353
  22  0.158092
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.111e-05  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.072e+00  1.581e-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.072e-01  2.604e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/717816/likelihoodResults_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.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) = 6243.64060401
delta logL = -0.000420687987571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6243.64018348
delta logL = -1.5248224372e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6243.538     FROM MIGRAD    STATUS=CONVERGED    196 CALLS      350 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21282E-02    .90314E-01    .18142E-02** at limit **
   2  Index         9.0295        8.9464        .20000        .74775E-04
   3  Normalizat    .87313        .36336E-01    .33929E-03    .34647E-04
   4  Prefactor     1.0860        .22845E-01    .19676E-03    .33893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00212825
  Index      = 9.0295
  Normalizat = 0.873131
  Prefactor  = 1.08597
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.538     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      379 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21282E-02    .57613        .74746E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.0295        7.4316        .39746E-02    .93719    
   3  Normalizat    .87313        .17120        .13572E-04   -.97411    
   4  Prefactor     1.0860        .10490        .39352E-04   -.89916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40854e-09
Minuit parameter uncertainties:
  1  0.0683685
  2  21.8702
  3  0.171306
  4  0.104916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717816': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6243.5375282
delta logL = 0.102655129733

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.128e-03  6.837e-02  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  9.029e+00  2.187e+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.086e+00  1.049e-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.731e-01  1.713e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/717816/cmap_HighResolution_653529601_653788801_4FGL_J0126.8+2412_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-20 00:14:36.036761', job_id='717816', GAL2='1.09', fit_tolerance='1e-08', EG2='0.87', EG='0.91', time_epoch_completed='1632122076.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.03e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1598' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 717816: <4FGL_J0126.8+2412_daily_bin1598> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1598> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 20 00:00:30 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:00:33 2021
Terminated at Mon Sep 20 00:14:36 2021
Results reported at Mon Sep 20 00:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1598 21.7036 24.21 653529601 653788801 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

