/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 227 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin92
RA = 180.173, Dec = 12.4922
tmin = 263174401, tmax = 263433601
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='248911', job_status='RUN', time_executed='2021-09-04 20:09:21.205699', time_epoch_executed='1630811361.21' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248911

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248911/ft1_4FGL_J1200.6+1229_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248911/ft1_4FGL_J1200.6+1229_daily_bin92.fits outfile=/scratch/kocevski/248911/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin92.fits ra=180.173 dec=12.4922 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.35
user 1.19
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.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/248911/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/248911/ltcube_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.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/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits
.....................!
real 12.17
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/248911/ltcube_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits outfile=/scratch/kocevski/248911/expmap_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.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/248911/ltcube_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits
.....................!
real 191.92
user 185.17
sys 5.78

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/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits scfile=/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits outfile=/scratch/kocevski/248911/cmap_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.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/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits scfile=/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits outfile=/scratch/kocevski/248911/cmap_HighResolution_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits', '/scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits', expMap='/scratch/kocevski/248911/expmap_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits', expCube='/scratch/kocevski/248911/ltcube_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248911/Model_4FGL_J1200.6+1229_daily_bin92.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/248911/ft1_filtered_4FGL_J1200.6+1229_daily_bin92.fits
Spacecraft file(s): /scratch/kocevski/248911/ft2_4FGL_J1200.6+1229_daily_bin92.fits
Exposure map: /scratch/kocevski/248911/expmap_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits
Exposure cube: /scratch/kocevski/248911/ltcube_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248911/Model_4FGL_J1200.6+1229_daily_bin92.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) = 4868.82817098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11670E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0561       1.0000         .10000E-03   10000.    
    15 'norm      '    11.164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .69052       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    216.88       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1540       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82124       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.

 FCN=   4868.817     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2560 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4384        .19059E-06** at limit **
   2  Prefactor     .10000E-03    3.6635        .14967E-06** at limit **
   3  Prefactor     .10000E-03    10.864        .21018E-06** at limit **
   4  Prefactor     .10000E-03    6.1858        .45077E-06** at limit **
   5  Prefactor     62.866        108.57       -.18823E-05   -.29226E-04
   6  Prefactor     .10000E-03    10.410       -.35055E-05** at limit **
   7  Prefactor     .10000E-03    8.0624       -.21327E-06** at limit **
   8  Prefactor     .10000E-03    11.754       -.11423E-06** at limit **
   9  Prefactor     4.5457        4.5663       -.16613E-06   -.16602E-03
  10  Prefactor     .10000E-03    83.506       -.68527E-06** at limit **
  11  Prefactor     50.505        44.965       -.47551E-06   -.25197E-04
  12  Prefactor     .10000E-03    2.5285        .50499E-06** at limit **
  13  Prefactor     .10000E-03    2.4562        .90855E-06** at limit **
  14  Prefactor     2.0320        76.391        .17075E-05    .96353E-05
  15  norm          11.163        5.0411       -.41503E-07    .58413E-04
  16  Prefactor     .10000E-03    151.93        .15226E-05** at limit **
  17  norm          .69042        .30530       -.57496E-07   -.11626E-02
  18  norm          .10000E-03    29.256        .62717E-07** at limit **
  19  Prefactor     216.84        174.79        .15473E-05    .13005E-04
  20  Prefactor     .10000E-03    2.7024        .11199E-06** at limit **
  21  Prefactor     .10000E-03    8.2711        .24870E-06** at limit **
  22  Normalizat    1.1545        .22993        .46129E-05   -.25409E-03
  23  Prefactor     .82080        .20900       -.53245E-05   -.12574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8662
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54574
  Prefactor  = 0.0001
  Prefactor  = 50.5054
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.032
  norm       = 11.1628
  Prefactor  = 0.0001
  norm       = 0.690423
  norm       = 0.0001
  Prefactor  = 216.84
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15447
  Prefactor  = 0.820804
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.817     FROM HESSE     STATUS=OK           364 CALLS     2924 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4471        .12641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6672        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2369        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.866        108.77        .25245E-03   -1.4121    
   6  Prefactor     .10000E-03    11.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5457        4.5591        .14175E-03   -1.5282    
  10  Prefactor     .10000E-03    83.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.505        44.907        .56424E-04   -1.4285    
  12  Prefactor     .10000E-03    2.6373        .21606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1375        .19943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0320        76.109        .28824E-03   -1.5423    
  15  norm          11.163        5.0238        .97621E-04   -1.5040    
  16  Prefactor     .10000E-03    155.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69042        .30372        .24651E-04   -1.5542    
  18  norm          .10000E-03    29.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     216.84        174.73        .13731E-03   -1.2752    
  20  Prefactor     .10000E-03    2.7042        .11204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1545        .23737        .24066E-03   -.88022    
  23  Prefactor     .82080        .21698        .26210E-03   -.98966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99653e-10
Minuit parameter uncertainties:
  1  8.94475e-06
  2  5.02703e-06
  3  1.32526e-05
  4  2.33523e-05
  5  109.113
  6  0.000268113
  7  7.86263e-06
  8  1.53198e-05
  9  4.55949
  10  0.000165846
  11  44.9368
  12  8.07684e-06
  13  0.000208143
  14  24.9055
  15  5.02401
  16  0.000545003
  17  0.303717
  18  1.099e-05
  19  175.155
  20  3.50085e-06
  21  1.5492e-05
  22  0.237592
  23  0.217207
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.532e-05  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:  8.208e-01  2.172e-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:  1.154e+00  2.376e-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: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248911/likelihoodResults_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.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) = 4868.81777547
delta logL = -0.00040360620369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4868.81737216
delta logL = -2.88448063657e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3904       1.0000          .0000       10.000    
     3 'Normalizat'    1.1544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82091       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=   4868.817     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2050.2        .90712E-02** at limit **
   2  Index         2.3933        6.1710        .50000       -.22728E-05
   3  Normalizat    1.1545        .10146        .54426E-01    .63302E-05
   4  Prefactor     .82080        .94511E-01    .43989E-01    .13162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39334
  Normalizat = 1.15447
  Prefactor  = 0.820803
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.817     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6290.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3933        7.2303        .50000       -.54841    
   3  Normalizat    1.1545        .18480        .24066E-03   -.88022    
   4  Prefactor     .82080        .17345        .26210E-03   -.98966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.43701e-10
Minuit parameter uncertainties:
  1  0.000190754
  2  66.303
  3  0.184899
  4  0.173566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248911': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4868.81737186
delta logL = 3.12138581648e-09

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.908e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.393e+00  6.630e+01  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:  8.208e-01  1.736e-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:  1.154e+00  1.849e-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/248911/cmap_HighResolution_263174401_263433601_4FGL_J1200.6+1229_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-04 20:19:33.772874', job_id='248911', GAL2='0.82', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630811973.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='92' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 248911: <4FGL_J1200.6+1229_daily_bin92> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin92> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:05:23 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:05:25 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:05:25 2021
Terminated at Sat Sep  4 20:19:34 2021
Results reported at Sat Sep  4 20:19:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin92 180.173 12.4922 263174401 263433601 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 :                                   610.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             255.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

