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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin975
RA = 187.268, Dec = 2.0454
tmin = 492048001, tmax = 492307201
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='710957', job_status='RUN', time_executed='2021-09-05 19:09:03.923833', time_epoch_executed='1630894143.92' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710957/ft1_4FGL_J1229.0+0202_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710957/ft1_4FGL_J1229.0+0202_daily_bin975.fits outfile=/scratch/kocevski/710957/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin975.fits ra=187.268 dec=2.0454 rad=12.0 tmin=492048001.0 tmax=492307201.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.68
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.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/710957/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin975.fits evtable="EVENTS" outfile="/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/710957/ltcube_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.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/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits
.....................!
real 11.64
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/710957/ltcube_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits outfile=/scratch/kocevski/710957/expmap_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.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/710957/ltcube_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits
.....................!
real 193.10
user 188.10
sys 4.63

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits outfile=/scratch/kocevski/710957/cmap_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.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=187.268 yref=2.0454 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits outfile=/scratch/kocevski/710957/cmap_HighResolution_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.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=187.268 yref=2.0454 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710957/Model_4FGL_J1229.0+0202_daily_bin975.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/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits.....................!
real 35.53
user 34.03
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits', '/scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits', expMap='/scratch/kocevski/710957/expmap_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits', expCube='/scratch/kocevski/710957/ltcube_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/710957/Model_4FGL_J1229.0+0202_daily_bin975.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/710957/ft1_filtered_4FGL_J1229.0+0202_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/710957/ft2_4FGL_J1229.0+0202_daily_bin975.fits
Exposure map: /scratch/kocevski/710957/expmap_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits
Exposure cube: /scratch/kocevski/710957/ltcube_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/710957/Model_4FGL_J1229.0+0202_daily_bin975.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) = 3093.46749599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .85923E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.048       1.0000         .10000E-03   10000.    
    13 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17729E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10569E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46741E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.605       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53456E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12602E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    142.57       1.0000         .10000E-03   10000.    
    27 'norm      '    .11139E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.5099       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.7493       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .55832       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3093.437     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4326 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.875       -.17396E-09** at limit **
   2  Prefactor     .10000E-03    65.013        .39483E-04** at limit **
   3  Prefactor     17.501        20.142        .36287E-06   -.22738E-04
   4  Prefactor     .10000E-03    32.680        .13859E-04** at limit **
   5  Prefactor     13.437        12.063       -.47365E-06   -.61335E-04
   6  Prefactor     .10004E-03    14.048        .44502E-05** at limit **
   7  Prefactor     .10000E-03    133.55        .76183E-05** at limit **
   8  Prefactor     20.533        45.233       -.22447E-04   -.15177E-03
   9  Prefactor     .10000E-03    29.572       -.82524E-05** at limit **
  10  Prefactor     59.481        41.566        .10083E-04   -.16554E-03
  11  Prefactor     .10000E-03    29.851       -.44165E-05** at limit **
  12  Prefactor     13.046        15.501       -.12765E-05   -.10014E-03
  13  norm          .10000E-03    1.7578       -.69096E-07** at limit **
  14  norm          .10000E-03    5.2885       -.28382E-07** at limit **
  15  Prefactor     .10000E-03    62.461        .38824E-04** at limit **
  16  norm          .10000E-03    52.423       -.11872E-04** at limit **
  17  Prefactor     .10000E-03    168.42       -.59359E-05** at limit **
  18  norm          1.8894        1.0891       -.20680E-07   -.73170E-03
  19  Prefactor     .10000E-03    27.338        .35027E-05** at limit **
  20  Prefactor     .10000E-03    113.17       -.58646E-04** at limit **
  21  Prefactor     31.641        20.276       -.53397E-06   -.10829E-03
  22  norm          .10000E-03    1.9587       -.11576E-06** at limit **
  23  Prefactor     .11247E-03    17.400        .20008E-06** at limit **
  24  Prefactor     .10000E-03    150.96        .85975E-04** at limit **
  25  Prefactor     .10000E-03    81.557       -.19032E-04** at limit **
  26  Prefactor     142.87        176.22        .21523E-03    .20266E-06
  27  norm          .10000E-03    84.341       -.29943E-04** at limit **
  28  Prefactor     .10000E-03    53.539       -.39636E-05** at limit **
  29  norm          1.5101        .46304        .74599E-07    .32095E-03
  30  Prefactor     .10000E-03    51.009       -.24407E-04** at limit **
  31  Normalizat    1.7504        .37194       -.37052E-05   -.34856E-03
  32  Prefactor     .55773        .25077       -.18181E-05   -.39738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5006
  Prefactor  = 0.0001
  Prefactor  = 13.437
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 20.5334
  Prefactor  = 0.0001
  Prefactor  = 59.481
  Prefactor  = 0.0001
  Prefactor  = 13.0455
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6413
  norm       = 0.0001
  Prefactor  = 0.000112471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.872
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.51006
  Prefactor  = 0.0001
  Normalizat = 1.75041
  Prefactor  = 0.55773
 **********
 **   18 **HESSE 
 **********

 FCN=   3093.437     FROM HESSE     STATUS=OK           649 CALLS     4975 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.501        20.141        .95741E-04   -1.4871    
   4  Prefactor     .10000E-03    32.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.437        12.082        .10925E-03   -1.4975    
   6  Prefactor     .10004E-03    91.357        .38463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    133.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.533        44.921        .88548E-04   -1.4801    
   9  Prefactor     .10000E-03    29.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.481        41.688        .51999E-04   -1.4164    
  11  Prefactor     .10000E-03    29.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.046        15.476        .11089E-03   -1.4985    
  13  norm          .10000E-03    1.7657        .71921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.230        .23694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    62.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    52.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    168.42        .21190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8894        1.0577        .40087E-04   -1.5433    
  19  Prefactor     .10000E-03    27.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    113.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.641        20.329        .71272E-04   -1.4582    
  22  norm          .10000E-03    1.9881        .75953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11247E-03    35.815        .60084E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    151.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    81.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     142.87        176.23        .16871E-03   -1.3312    
  27  norm          .10000E-03    84.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    53.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.5101        .46293        .19817E-04   -1.5462    
  30  Prefactor     .10000E-03    51.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.7504        .43509        .28040E-03   -.70965    
  32  Prefactor     .55773        .29448        .32523E-03   -1.0940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55881e-09
Minuit parameter uncertainties:
  1  5.44662e-06
  2  9.67151e-06
  3  20.1493
  4  0.000217431
  5  12.0839
  6  0.00377035
  7  5.5899e-08
  8  44.9946
  9  9.92985e-07
  10  41.7088
  11  1.05588e-05
  12  15.481
  13  4.01872e-06
  14  5.08133e-06
  15  0.000100011
  16  1.06914e-05
  17  7.92523e-05
  18  1.05769
  19  0.000175596
  20  0.000401502
  21  20.3331
  22  1.36801e-05
  23  0.0422942
  24  5.45812e-05
  25  0.000215649
  26  176.879
  27  0.000254906
  28  0.000956926
  29  0.46293
  30  2.55847e-05
  31  0.43605
  32  0.295293
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.889e+00  1.058e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  5.577e-01  2.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.750e+00  4.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.97
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 1.16e-07
Energy Flux (Fixed Index): 4.94e-05 +/- 2.76e-05

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) = 3093.40875852
delta logL = 0.0280132548442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3093.40541811
delta logL = 0.031353661931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8071       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4633       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3093.405     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8066        1.0275        .77714E-02    .79088E-03
   2  alpha         2.4631        .52511        .27231        .43727E-06
   3  Normalizat    1.7719        .35586        .63127E-01    .18394E-03
   4  Prefactor     .54758        .24637        .74082E-01    .17970E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80657
  alpha      = 2.46309
  Normalizat = 1.7719
  Prefactor  = 0.547576
 **********
 **   18 **HESSE 
 **********

 FCN=   3093.405     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8066        1.1022        .40263E-04   -1.5439    
   2  alpha         2.4631        .59526        .11383E-01   -.14764E-01
   3  Normalizat    1.7719        .42513        .27916E-03   -.70399    
   4  Prefactor     .54758        .29050        .32802E-03   -1.0984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24227e-10
Minuit parameter uncertainties:
  1  1.10224
  2  0.601032
  3  0.426015
  4  0.291297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710957': 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) = 3093.40541796
delta logL = 0.0313538154619

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.807e+00  1.102e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.463e+00  6.010e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  5.476e-01  2.913e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.772e+00  4.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.00
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.46 +/- 0.60
Photon Flux (Free Index): 1.85e-07 +/- 1.39e-07
Energy Flux (Free Index): 4.87e-05 +/- 2.77e-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/710957/cmap_HighResolution_492048001_492307201_4FGL_J1229.0+0202_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='4.87e-05', photon_flux_error='1.16e-07', dlogl='3.14e-02', energy_flux='4.94e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-05 19:19:00.415249', photon_index_error2='0.60', photon_index2='2.46', ts='7.97', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='1.75', time_epoch_completed='1630894740.42', return_code='0', job_id='710957', GAL2='0.55', EG2='1.77', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='1.39e-07', ts2='8.00', photon_index='2.61' WHERE bin_id='975' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:19:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 710957: <4FGL_J1229.0+0202_daily_bin975> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin975> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 19:05:24 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 19:05:25 2021
Terminated at Sun Sep  5 19:19:01 2021
Results reported at Sun Sep  5 19:19:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin975 187.268 2.0454 492048001 492307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

