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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1049
RA = 180.173, Dec = 12.4922
tmin = 511228801, tmax = 511488001
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='253683', job_status='RUN', time_executed='2021-09-04 20:23:40.083813', time_epoch_executed='1630812220.08' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253683/ft1_4FGL_J1200.6+1229_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253683/ft1_4FGL_J1200.6+1229_daily_bin1049.fits outfile=/scratch/kocevski/253683/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1049.fits ra=180.173 dec=12.4922 rad=12.0 tmin=511228801.0 tmax=511488001.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.47
user 3.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.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/253683/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/253683/ltcube_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.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/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits
.....................!
real 12.01
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/253683/ltcube_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits outfile=/scratch/kocevski/253683/expmap_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.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/253683/ltcube_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits
.....................!
real 192.14
user 186.57
sys 5.19

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits outfile=/scratch/kocevski/253683/cmap_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.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=180.173 yref=12.4922 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits outfile=/scratch/kocevski/253683/cmap_HighResolution_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.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=180.173 yref=12.4922 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253683/Model_4FGL_J1200.6+1229_daily_bin1049.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/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits.....................!
real 51.73
user 50.27
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits', '/scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits', expMap='/scratch/kocevski/253683/expmap_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits', expCube='/scratch/kocevski/253683/ltcube_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253683/Model_4FGL_J1200.6+1229_daily_bin1049.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253683/ft1_filtered_4FGL_J1200.6+1229_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/253683/ft2_4FGL_J1200.6+1229_daily_bin1049.fits
Exposure map: /scratch/kocevski/253683/expmap_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits
Exposure cube: /scratch/kocevski/253683/ltcube_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253683/Model_4FGL_J1200.6+1229_daily_bin1049.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) = 5303.49555606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30631E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15167E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12604E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.237       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94615       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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=   5303.477     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     2589 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7681        10.100        .18434E-03   -.16158E-04
   2  Prefactor     14.706        12.577        .10449E-03   -.59838E-05
   3  Prefactor     .10000E-03    27.783        .11227    ** at limit **
   4  Prefactor     .10000E-03    2.8853        .12073E-02** at limit **
   5  Prefactor     .10000E-03    749.96        .18197E-02** at limit **
   6  Prefactor     .10000E-03    2.9040        .12115E-02** at limit **
   7  Prefactor     4.5030        4.6300        .15494E-03    .19811E-04
   8  Prefactor     .10000E-03    8.0703        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.4360        .21870E-03** at limit **
  10  Prefactor     .10000E-03    33.409        .18142E-02** at limit **
  11  Prefactor     .10000E-03    13.549        .18142E-02** at limit **
  12  Prefactor     5.3220        2.8458        .86190E-04   -.23611E-03
  13  Prefactor     .10000E-03    2.4377        .21716E-03** at limit **
  14  Prefactor     .10000E-03    7.2265        .18142E-02** at limit **
  15  norm          .10000E-03    .83041        .64627E-03** at limit **
  16  Prefactor     .10000E-03    34.116        .18142E-02** at limit **
  17  norm          .10000E-03    .57755E-01    .32812E-03** at limit **
  18  norm          14.194        21.095        .10628E-03   -.13585E-04
  19  Prefactor     .10000E-03    42.209        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.3994        .14904E-02** at limit **
  21  Prefactor     19.243        29.272        .91317E-04   -.10084E-04
  22  Normalizat    .94592        .21872        .26307E-03   -.13898E-03
  23  Prefactor     1.2378        .21270        .23037E-03   -.10067E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.76815
  Prefactor  = 14.7057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 4.50301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.1936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2435
  Normalizat = 0.945916
  Prefactor  = 1.23778
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.477     FROM HESSE     STATUS=OK           356 CALLS     2945 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7681        10.100        .73735E-05   -1.5271    
   2  Prefactor     14.706        12.577        .41798E-05   -1.4941    
   3  Prefactor     .10000E-03    26.952        .11502       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8853        .24146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    750.28        .36395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9040        .24230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5030        4.6300        .61977E-05   -1.5284    
   8  Prefactor     .10000E-03    8.0716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4360        .43740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3220        2.8458        .34476E-05   -1.5247    
  13  Prefactor     .10000E-03    2.4378        .43432E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .83043        .12925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .57765E-01    .65623E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.194        21.098        .42511E-05   -1.4954    
  19  Prefactor     .10000E-03    42.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3995        .29809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.243        29.275        .36527E-05   -1.4830    
  22  Normalizat    .94592        .21892        .10523E-04   -.94865    
  23  Prefactor     1.2378        .21290        .92149E-05   -.85177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10286e-10
Minuit parameter uncertainties:
  1  10.1035
  2  12.5791
  3  1.70536e-05
  4  2.7079e-07
  5  0.00385588
  6  7.07735e-07
  7  4.63035
  8  1.214e-06
  9  1.00507e-06
  10  1.14752e-05
  11  3.00488e-06
  12  2.84586
  13  8.44633e-07
  14  2.53432e-07
  15  3.56108e-07
  16  2.04568e-05
  17  1.70099e-07
  18  21.1087
  19  2.29585e-06
  20  5.18933e-06
  21  29.2968
  22  0.219122
  23  0.213047
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.214e-06  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.238e+00  2.130e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.459e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253683/likelihoodResults_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.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) = 5303.47780346
delta logL = -0.000589928333284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5303.47721353
delta logL = -5.22959453519e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5303.477     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4828        .90712E-02** at limit **
   2  Index         2.3557        6.1778        .50000        .16222E-04
   3  Normalizat    .94592        .18389        .45486E-01    .75558E-05
   4  Prefactor     1.2378        .18224        .52107E-01   -.41493E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3557
  Normalizat = 0.945918
  Prefactor  = 1.23778
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.477     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3557        5.9914        .50000       -.55726    
   3  Normalizat    .94592        .21301        .26307E-03   -.94865    
   4  Prefactor     1.2378        .21114        .23037E-03   -.85177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09739e-10
Minuit parameter uncertainties:
  1  6.32758e-05
  2  5.95031
  3  0.213205
  4  0.211286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253683': 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) = 5303.47721341
delta logL = 1.24991856865e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.328e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.356e+00  5.950e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.238e+00  2.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.459e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

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/253683/cmap_HighResolution_511228801_511488001_4FGL_J1200.6+1229_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-04 20:34:29.827013', job_id='253683', GAL2='1.24', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630812869.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1049' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 253683: <4FGL_J1200.6+1229_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1049> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:47 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:20:49 2021
Terminated at Sat Sep  4 20:34:32 2021
Results reported at Sat Sep  4 20:34:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1049 180.173 12.4922 511228801 511488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            825 sec.

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

