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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin249
RA = 187.268, Dec = 2.0454
tmin = 303868801, tmax = 304128001
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='705260', job_status='RUN', time_executed='2021-09-05 18:48:28.333625', time_epoch_executed='1630892908.33' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705260/ft1_4FGL_J1229.0+0202_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705260/ft1_4FGL_J1229.0+0202_daily_bin249.fits outfile=/scratch/kocevski/705260/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin249.fits ra=187.268 dec=2.0454 rad=12.0 tmin=303868801.0 tmax=304128001.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.40
user 3.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.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/705260/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/705260/ltcube_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.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/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits
.....................!
real 12.55
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/705260/ltcube_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits outfile=/scratch/kocevski/705260/expmap_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.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/705260/ltcube_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits
.....................!
real 189.88
user 185.01
sys 4.51

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/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits scfile=/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits outfile=/scratch/kocevski/705260/cmap_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits scfile=/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits outfile=/scratch/kocevski/705260/cmap_HighResolution_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.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.53
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits', '/scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits', expMap='/scratch/kocevski/705260/expmap_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits', expCube='/scratch/kocevski/705260/ltcube_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/705260/Model_4FGL_J1229.0+0202_daily_bin249.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/705260/ft1_filtered_4FGL_J1229.0+0202_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/705260/ft2_4FGL_J1229.0+0202_daily_bin249.fits
Exposure map: /scratch/kocevski/705260/expmap_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits
Exposure cube: /scratch/kocevski/705260/ltcube_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/705260/Model_4FGL_J1229.0+0202_daily_bin249.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) = 6274.46640027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.170       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1402       1.0000         .10000E-03   10000.    
    14 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16884       1.0000         .10000E-03   10000.    
    16 'norm      '    17.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.1014       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.753       1.0000         .10000E-03   10000.    
    25 'Prefactor '    76.025       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11616E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.026       1.0000         .10000E-03   10000.    
    29 'norm      '    .30016       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99651       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=   6274.453     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4430 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2595        .17163E-07** at limit **
   2  Prefactor     .10000E-03    64.563       -.13823E-05** at limit **
   3  Prefactor     8.8601        8.6372       -.88488E-08    .22552E-04
   4  Prefactor     47.179        45.891       -.33647E-05    .19536E-05
   5  Prefactor     12.742        10.026       -.64816E-06   -.96817E-05
   6  Prefactor     .10000E-03    21.986        .29924E-07** at limit **
   7  Prefactor     .10000E-03    93.981        .41908E-05** at limit **
   8  Prefactor     .10000E-03    13.197        .55454E-08** at limit **
   9  Prefactor     16.491        47.812       -.56982E-05   -.16042E-05
  10  Prefactor     .10000E-03    9.9370        .34230E-07** at limit **
  11  Prefactor     7.2038        26.999        .96784E-05   -.30317E-05
  12  Prefactor     11.226        21.707        .77245E-06   -.29792E-04
  13  norm          5.1412        4.0366       -.21754E-06   -.15821E-03
  14  norm          .10000E-03    1.9792       -.92487E-07** at limit **
  15  Prefactor     .10007E-03    26.337       -.10712E-05** at limit **
  16  norm          17.084        32.353        .17110E-05   -.12719E-05
  17  Prefactor     .10000E-03    51.449       -.64656E-06** at limit **
  18  norm          3.9615        .91473        .27225E-08    .11335E-03
  19  Prefactor     .10000E-03    3.7846       -.40015E-08** at limit **
  20  Prefactor     16.948        24.906       -.92796E-06    .29491E-06
  21  Prefactor     .10000E-03    9.8741       -.45986E-07** at limit **
  22  norm          9.1013        2.5694        .56665E-07    .14705E-04
  23  Prefactor     .10000E-03    6.7615        .92958E-07** at limit **
  24  Prefactor     47.741        50.929       -.95920E-05    .14517E-05
  25  Prefactor     75.994        50.183       -.48636E-05   -.32178E-06
  26  Prefactor     .10000E-03    63.070        .32503E-05** at limit **
  27  norm          .10000E-03    15.274        .99252E-07** at limit **
  28  Prefactor     25.023        17.253       -.18612E-06   -.22507E-04
  29  norm          .30029        .21355        .79814E-07    .54513E-04
  30  Prefactor     .10000E-03    90.648       -.72955E-05** at limit **
  31  Normalizat    1.0643        .23616        .13858E-05    .93328E-05
  32  Prefactor     .99673        .17671        .43463E-06    .58080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.86007
  Prefactor  = 47.1789
  Prefactor  = 12.7417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4915
  Prefactor  = 0.0001
  Prefactor  = 7.20375
  Prefactor  = 11.2255
  norm       = 5.14116
  norm       = 0.0001
  Prefactor  = 0.000100072
  norm       = 17.0839
  Prefactor  = 0.0001
  norm       = 3.9615
  Prefactor  = 0.0001
  Prefactor  = 16.9481
  Prefactor  = 0.0001
  norm       = 9.10127
  Prefactor  = 0.0001
  Prefactor  = 47.7405
  Prefactor  = 75.9939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.0233
  norm       = 0.300287
  Prefactor  = 0.0001
  Normalizat = 1.06426
  Prefactor  = 0.996726
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.453     FROM HESSE     STATUS=OK           665 CALLS     5095 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8601        8.6493        .13466E-03   -1.5113    
   4  Prefactor     47.179        45.877        .58382E-04   -1.4333    
   5  Prefactor     12.742        10.019        .11224E-03   -1.4994    
   6  Prefactor     .10000E-03    22.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    94.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.491        47.944        .98326E-04   -1.4896    
  10  Prefactor     .10000E-03    9.9464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2038        26.934        .14936E-03   -1.5171    
  12  Prefactor     11.226        21.845        .11953E-03   -1.5038    
  13  norm          5.1412        4.0615        .10901E-03   -1.5254    
  14  norm          .10000E-03    1.9950        .10854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    28.720        .12973       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.084        32.359        .96888E-04   -1.4881    
  17  Prefactor     .10000E-03    51.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9615        .92117        .32458E-04   -1.5310    
  19  Prefactor     .10000E-03    3.7869        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.948        24.922        .97292E-04   -1.4884    
  21  Prefactor     .10000E-03    9.9743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1013        2.5713        .63382E-04   -1.5105    
  23  Prefactor     .10000E-03    6.8201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.741        50.993        .58026E-04   -1.4325    
  25  Prefactor     75.994        50.005        .46052E-04   -1.3962    
  26  Prefactor     .10000E-03    63.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    15.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.023        17.283        .80075E-04   -1.4707    
  29  norm          .30029        .21084        .28487E-04   -1.5598    
  30  Prefactor     .10000E-03    91.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0643        .27738        .31726E-03   -.90908    
  32  Prefactor     .99673        .20682        .25906E-03   -.92839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43901e-11
Minuit parameter uncertainties:
  1  3.54364e-07
  2  5.95523e-06
  3  8.65052
  4  45.9116
  5  10.0199
  6  1.88316e-05
  7  6.0104e-05
  8  1.11536e-06
  9  48.056
  10  3.63736e-06
  11  26.9792
  12  21.8605
  13  4.06168
  14  1.38948e-05
  15  0.00286816
  16  32.3927
  17  1.60805e-05
  18  0.921173
  19  8.1117e-07
  20  24.9369
  21  1.51792e-05
  22  2.57138
  23  3.12383e-05
  24  51.0401
  25  50.0327
  26  3.39288e-05
  27  2.50761e-05
  28  17.2861
  29  0.210844
  30  6.13813e-06
  31  0.277761
  32  0.206987
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.961e+00  9.212e-01  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:  9.967e-01  2.070e-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.064e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.05
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.35e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 1.03e-04 +/- 2.41e-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) = 6270.41830411
delta logL = 4.03479182038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6270.41593307
delta logL = 4.03716286274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1104       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5591       1.0000          .0000       5.0000    
     3 'Normalizat'    .87449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1102       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=   6270.416     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1105        8.1987        .57149E-02    .58512E-03
   2  alpha         3.5592        4.1532        .19126        .12262E-04
   3  Normalizat    .87443        .16640        .77655E-01    .25899E-04
   4  Prefactor     1.1103        .15095        .55901E-01    .11063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11048
  alpha      = 3.55922
  Normalizat = 0.874427
  Prefactor  = 1.11026
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.416     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1105        .86128        .25296E-04   -1.5355    
   2  alpha         3.5592        .36957        .84791E-03    .43751    
   3  Normalizat    .87443        .26901        .34373E-03   -.97365    
   4  Prefactor     1.1103        .21031        .24717E-03   -.89139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36884e-12
Minuit parameter uncertainties:
  1  0.861285
  2  0.37123
  3  0.269421
  4  0.210468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705260': 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) = 6270.41593289
delta logL = 4.03716304011

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.110e+00  8.613e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.559e+00  3.712e-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:  1.110e+00  2.105e-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:  8.744e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.41
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.56 +/- 0.37
Photon Flux (Free Index): 6.19e-07 +/- 1.29e-07
Energy Flux (Free Index): 1.02e-04 +/- 2.01e-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/705260/cmap_HighResolution_303868801_304128001_4FGL_J1229.0+0202_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-07', energy_flux2='1.02e-04', photon_flux_error='1.01e-07', dlogl='4.04e+00', energy_flux='1.03e-04', photon_flux2='6.19e-07', job_status='DONE', time_completed='2021-09-05 19:02:32.148034', photon_index_error2='0.37', photon_index2='3.56', ts='45.05', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.06', time_epoch_completed='1630893752.15', return_code='0', job_id='705260', GAL2='1.11', EG2='0.87', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='1.29e-07', ts2='56.41', photon_index='2.61' WHERE bin_id='249' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 705260: <4FGL_J1229.0+0202_daily_bin249> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin249> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:06 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:46:08 2021
Terminated at Sun Sep  5 19:02:32 2021
Results reported at Sun Sep  5 19:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin249 187.268 2.0454 303868801 304128001 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 :                                   826.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

