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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin965
RA = 187.268, Dec = 2.0454
tmin = 489456001, tmax = 489715201
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='710942', job_status='RUN', time_executed='2021-09-05 19:06:01.362659', time_epoch_executed='1630893961.36' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710942/ft1_4FGL_J1229.0+0202_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710942/ft2_4FGL_J1229.0+0202_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710942/ft1_4FGL_J1229.0+0202_daily_bin965.fits outfile=/scratch/kocevski/710942/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin965.fits ra=187.268 dec=2.0454 rad=12.0 tmin=489456001.0 tmax=489715201.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.54
user 4.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710942/ft2_4FGL_J1229.0+0202_daily_bin965.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/710942/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/710942/ft1_filtered_4FGL_J1229.0+0202_daily_bin965.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.84
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710942/ft1_filtered_4FGL_J1229.0+0202_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/710942/ft2_4FGL_J1229.0+0202_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/710942/ltcube_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.fits outfile=/scratch/kocevski/710942/expmap_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.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/710942/ltcube_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.fits
.....................!
real 194.00
user 186.20
sys 4.84

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/710942/ft1_filtered_4FGL_J1229.0+0202_daily_bin965.fits scfile=/scratch/kocevski/710942/ft2_4FGL_J1229.0+0202_daily_bin965.fits outfile=/scratch/kocevski/710942/cmap_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710942/ft1_filtered_4FGL_J1229.0+0202_daily_bin965.fits scfile=/scratch/kocevski/710942/ft2_4FGL_J1229.0+0202_daily_bin965.fits outfile=/scratch/kocevski/710942/cmap_HighResolution_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.464       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.506       1.0000         .10000E-03   10000.    
    13 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    182.31       1.0000         .10000E-03   10000.    
    18 'norm      '    .14508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8502       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5185       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.208       1.0000         .10000E-03   10000.    
    27 'norm      '    1.6442       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.657       1.0000         .10000E-03   10000.    
    29 'norm      '    .86343       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5438       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58926       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=   4998.394     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     5514 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.657        .11264E-07** at limit **
   2  Prefactor     .10000E-03    68.606        .20784E-05** at limit **
   3  Prefactor     2.3675        26.988        .22998E-04   -.30848E-03
   4  Prefactor     46.713        92.834        .10066E-04    .11882E-03
   5  Prefactor     .10139E-03    7.4369        .16877E-05** at limit **
   6  Prefactor     .10000E-03    7.7034        .13082E-06** at limit **
   7  Prefactor     .10000E-03    143.37        .51258E-05** at limit **
   8  Prefactor     47.110        70.996       -.37276E-05   -.20251E-04
   9  Prefactor     56.333        64.820        .21578E-06   -.83011E-04
  10  Prefactor     62.128        38.548        .14345E-05   -.11212E-05
  11  Prefactor     24.474        34.399        .49163E-06   -.12521E-04
  12  Prefactor     33.502        21.412       -.26648E-06   -.18980E-03
  13  norm          .10000E-03    3.0548       -.44859E-07** at limit **
  14  norm          3.0372        6.2175        .29839E-06   -.28094E-03
  15  Prefactor     .10001E-03    38.758       -.75941E-05** at limit **
  16  norm          .10000E-03    19.200       -.60037E-06** at limit **
  17  Prefactor     182.26        171.04       -.66358E-05   -.10541E-03
  18  norm          .14507        .54510        .27419E-06   -.50335E-03
  19  Prefactor     .10000E-03    3.7534        .31830E-07** at limit **
  20  Prefactor     .10000E-03    19.293        .21022E-06** at limit **
  21  Prefactor     3.8500        6.4009        .68940E-06    .88337E-04
  22  norm          2.9083        2.2240        .19238E-06   -.24808E-03
  23  Prefactor     13.260        15.533        .36274E-06    .26176E-03
  24  Prefactor     .10000E-03    13.960        .15233E-06** at limit **
  25  Prefactor     8.5424        69.655        .82550E-05    .63604E-04
  26  Prefactor     18.261        43.019        .86926E-05    .18635E-03
  27  norm          1.5436        242.20       -.18050E-04   -.85083E-04
  28  Prefactor     14.655        15.561       -.15778E-06   -.35781E-04
  29  norm          .86352        .32972       -.32964E-07    .66080E-03
  30  Prefactor     .10001E-03    33.454        .53068E-05** at limit **
  31  Normalizat    1.5437        .26548       -.28821E-05   -.17602E-03
  32  Prefactor     .58920        .18877       -.17031E-05   -.21571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.36752
  Prefactor  = 46.7127
  Prefactor  = 0.000101387
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 47.1102
  Prefactor  = 56.3329
  Prefactor  = 62.1278
  Prefactor  = 24.4736
  Prefactor  = 33.5022
  norm       = 0.0001
  norm       = 3.0372
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 182.256
  norm       = 0.14507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85
  norm       = 2.90826
  Prefactor  = 13.2604
  Prefactor  = 0.0001
  Prefactor  = 8.54236
  Prefactor  = 18.2606
  norm       = 1.54362
  Prefactor  = 14.6546
  norm       = 0.863517
  Prefactor  = 0.000100005
  Normalizat = 1.54371
  Prefactor  = 0.589203
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.394     FROM HESSE     STATUS=OK           663 CALLS     6177 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3675        29.310        .13345E-02   -1.5400    
   4  Prefactor     46.713        93.661        .58695E-04   -1.4340    
   5  Prefactor     .10139E-03    7.8432        .63167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    143.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.110        71.305        .58408E-04   -1.4334    
   9  Prefactor     56.333        65.056        .53449E-04   -1.4205    
  10  Prefactor     62.128        38.592        .50914E-04   -1.4130    
  11  Prefactor     24.474        34.266        .80987E-04   -1.4718    
  12  Prefactor     33.502        20.880        .69227E-04   -1.4550    
  13  norm          .10000E-03    3.1097        .23835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0372        5.9563        .19270E-03   -1.5359    
  15  Prefactor     .10001E-03    39.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     182.26        171.56        .14949E-03   -1.3000    
  18  norm          .14507        .83082        .77393E-03   -1.5632    
  19  Prefactor     .10000E-03    3.7552        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8500        6.3797        .20567E-03   -1.5316    
  22  norm          2.9083        2.1985        .85087E-04   -1.5367    
  23  Prefactor     13.260        15.118        .11009E-03   -1.4980    
  24  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.5424        71.192        .13735E-03   -1.5123    
  26  Prefactor     18.261        43.445        .93862E-04   -1.4853    
  27  norm          1.5436        248.30        .32943E-03   -1.5459    
  28  Prefactor     14.655        15.596        .10462E-03   -1.4942    
  29  norm          .86352        .33303        .22409E-04   -1.5522    
  30  Prefactor     .10001E-03    33.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5437        .31516        .26676E-03   -.76557    
  32  Prefactor     .58920        .22005        .30864E-03   -1.0804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2353e-09
Minuit parameter uncertainties:
  1  2.70634e-07
  2  0.000372974
  3  16.6702
  4  93.9579
  5  0.00659718
  6  1.5824e-06
  7  0.00110825
  8  71.4344
  9  65.1382
  10  38.6077
  11  34.2931
  12  20.8846
  13  1.4457e-05
  14  5.95743
  15  0.0010059
  16  6.09986e-05
  17  172.029
  18  0.694115
  19  2.98389e-06
  20  2.97463e-05
  21  6.38084
  22  2.19851
  23  15.1228
  24  3.61421e-05
  25  49.4009
  26  43.5203
  27  39.321
  28  15.5999
  29  0.333027
  30  0.000840672
  31  0.31556
  32  0.220371
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.451e-01  6.941e-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:  5.892e-01  2.204e-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.544e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/710942/likelihoodResults_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.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) = 4998.13015329
delta logL = 0.264168298064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4998.09887848
delta logL = 0.295443108975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25698       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1401       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61825       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4998.099     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      262 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25703        20.454        .45233E-04    .51121E-03
   2  alpha         4.1401        2.7635        .28815        .93936E-05
   3  Normalizat    1.4823        .18107        .27085E-03    .13893E-04
   4  Prefactor     .61830        .14057        .30176E-03    .17896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.257031
  alpha      = 4.14007
  Normalizat = 1.48232
  Prefactor  = 0.618296
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.099     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25703        .59095        .18093E-05   -1.5607    
   2  alpha         4.1401        4.1123        .55300E-02    .71554    
   3  Normalizat    1.4823        .29828        .10834E-04   -.78276    
   4  Prefactor     .61830        .21868        .12070E-04   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33326e-11
Minuit parameter uncertainties:
  1  0.590963
  2  2.64539
  3  0.298638
  4  0.218984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710942': 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) = 4998.09887836
delta logL = 0.295443232607

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.570e-01  5.910e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  4.140e+00  2.645e+00  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:  6.183e-01  2.190e-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.482e+00  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 187.268 2.045

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/710942/cmap_HighResolution_489456001_489715201_4FGL_J1229.0+0202_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-05 19:20:50.136959', job_id='710942', GAL2='0.62', fit_tolerance='1e-08', EG2='1.48', EG='1.54', time_epoch_completed='1630894850.14', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.95e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='965' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:20:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 710942: <4FGL_J1229.0+0202_daily_bin965> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin965> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 19:05:23 2021
Job was executed on host(s) <bullet0070>, 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:20:50 2021
Results reported at Sun Sep  5 19:20:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin965 187.268 2.0454 489456001 489715201 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 :                                   877.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

