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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1307
RA = 180.173, Dec = 12.4922
tmin = 578102401, tmax = 578361601
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='255391', job_status='RUN', time_executed='2021-09-04 20:26:31.929879', time_epoch_executed='1630812391.93' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255391/ft1_4FGL_J1200.6+1229_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255391/ft1_4FGL_J1200.6+1229_daily_bin1307.fits outfile=/scratch/kocevski/255391/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1307.fits ra=180.173 dec=12.4922 rad=12.0 tmin=578102401.0 tmax=578361601.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.12
user 4.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255391/ft1_filtered_4FGL_J1200.6+1229_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/255391/ltcube_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.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/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits
.....................!
real 11.60
user 11.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255391/ft1_filtered_4FGL_J1200.6+1229_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/255391/ltcube_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.fits outfile=/scratch/kocevski/255391/expmap_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.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/255391/ltcube_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.fits
.....................!
real 189.79
user 184.93
sys 4.46

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/255391/ft1_filtered_4FGL_J1200.6+1229_daily_bin1307.fits scfile=/scratch/kocevski/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits outfile=/scratch/kocevski/255391/cmap_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255391/ft1_filtered_4FGL_J1200.6+1229_daily_bin1307.fits scfile=/scratch/kocevski/255391/ft2_4FGL_J1200.6+1229_daily_bin1307.fits outfile=/scratch/kocevski/255391/cmap_HighResolution_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12068E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9816       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18435E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13331E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7964       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.429       1.0000         .10000E-03   10000.    
    17 'norm      '    .39724       1.0000         .10000E-03   10000.    
    18 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18955E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93442       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0138       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=   4980.616     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2998 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2489        .18142E-02** at limit **
   2  Prefactor     .10066E-03    114.04        .46840E-02** at limit **
   3  Prefactor     .10000E-03    13.930        .18142E-02** at limit **
   4  Prefactor     3.7240        10.527        .20926E-03   -.84533E-04
   5  Prefactor     .10000E-03    66.038        .18142E-02** at limit **
   6  Prefactor     4.9816        6.4401        .18018E-03    .10013E-03
   7  Prefactor     14.304        9.2807        .10590E-03    .80513E-05
   8  Prefactor     11.779        14.411        .11673E-03    .81034E-04
   9  Prefactor     .10000E-03    16.624        .22504E-02** at limit **
  10  Prefactor     .10000E-03    62.248        .18142E-02** at limit **
  11  Prefactor     7.4855        43.947        .14657E-03   -.23270E-06
  12  Prefactor     .10000E-03    8.9833        .18783E-02** at limit **
  13  Prefactor     5.6747        4.4052        .12225E-03   -.24969E-03
  14  Prefactor     2.7956        41.023        .12165E-02   -.33448E-04
  15  norm          .10000E-03    1.6992        .88866E-03** at limit **
  16  Prefactor     47.431        40.508        .58223E-04    .23431E-05
  17  norm          .39726        .31488        .34663E-03    .37951E-02
  18  norm          .10000E-03    90.146        .18142E-02** at limit **
  19  Prefactor     .10000E-03    44.192        .18142E-02** at limit **
  20  Prefactor     .10346E-03    11.015        .61864E-01** at limit **
  21  Prefactor     .10000E-03    11.123        .18142E-02** at limit **
  22  Normalizat    .93431        .23747        .26400E-03   -.11911E-03
  23  Prefactor     1.0138        .21768        .23603E-03   -.19240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.00010066
  Prefactor  = 0.0001
  Prefactor  = 3.72403
  Prefactor  = 0.0001
  Prefactor  = 4.98163
  Prefactor  = 14.3045
  Prefactor  = 11.7791
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.48553
  Prefactor  = 0.0001
  Prefactor  = 5.67474
  Prefactor  = 2.79564
  norm       = 0.0001
  Prefactor  = 47.431
  norm       = 0.397264
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103462
  Prefactor  = 0.0001
  Normalizat = 0.934311
  Prefactor  = 1.01384
 **********
 **   18 **HESSE 
 **********

 FCN=   4980.616     FROM HESSE     STATUS=OK           360 CALLS     3358 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10066E-03    118.36        .18736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7240        10.525        .83705E-05   -1.5322    
   5  Prefactor     .10000E-03    66.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9816        6.4400        .72073E-05   -1.5262    
   7  Prefactor     14.304        9.2804        .42361E-05   -1.4951    
   8  Prefactor     11.779        14.411        .46690E-05   -1.5021    
   9  Prefactor     .10000E-03    16.750        .45008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4855        43.947        .58628E-05   -1.5161    
  12  Prefactor     .10000E-03    9.0256        .37566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6747        4.4014        .48901E-05   -1.5231    
  14  Prefactor     2.7956        40.987        .48659E-04   -1.5374    
  15  norm          .10000E-03    1.6996        .17773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.431        40.501        .23289E-05   -1.4329    
  17  norm          .39726        .31481        .69327E-04   -1.5582    
  18  norm          .10000E-03    90.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10346E-03    9.8789        .66998E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93431        .23757        .10560E-04   -.95265    
  23  Prefactor     1.0138        .21778        .47206E-04   -.92270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10279e-09
Minuit parameter uncertainties:
  1  1.89279e-05
  2  0.0177153
  3  2.07998e-05
  4  10.5304
  5  9.51409e-05
  6  6.44094
  7  9.28131
  8  14.4154
  9  0.000368351
  10  0.00018894
  11  36.3149
  12  0.00010152
  13  4.40166
  14  21.4261
  15  1.20508e-05
  16  40.5242
  17  0.314814
  18  0.00027694
  19  9.4961e-05
  20  0.0116987
  21  1.44783e-05
  22  0.237835
  23  0.217974
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.178e+01  1.442e+01  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.014e+00  2.180e-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.343e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 8.45e-06 +/- 1.03e-05

TS (Fixed Index): 1.18
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255391/likelihoodResults_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.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): 0
logL (Free Index) = 4980.60501819
delta logL = 0.0109344057964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4980.60226645
delta logL = 0.0136861487081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.955       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2495       1.0000          .0000       10.000    
     3 'Normalizat'    .93722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   4980.602     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.956        17.177        .11129E-03   -.11442E-03
   2  Index         2.2491        .84258        .87020E-02   -.55039E-04
   3  Normalizat    .93722        .23185        .26363E-03    .74301E-04
   4  Prefactor     1.0124        .21532        .23617E-03    .87417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.956
  Index      = 2.2491
  Normalizat = 0.937223
  Prefactor  = 1.01241
 **********
 **   18 **HESSE 
 **********

 FCN=   4980.602     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.956        16.891        .44514E-05   -1.4988    
   2  Index         2.2491        .82868        .34808E-03   -.58258    
   3  Normalizat    .93722        .23206        .10545E-04   -.95164    
   4  Prefactor     1.0124        .21553        .94470E-05   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5241e-10
Minuit parameter uncertainties:
  1  16.897
  2  0.834224
  3  0.232313
  4  0.215714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255391': 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) = 4980.60226634
delta logL = 0.0136862606996

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.296e+01  1.690e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.249e+00  8.342e-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:  1.012e+00  2.157e-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.372e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 180.173 12.492
Photon Index (Free Index): 2.25 +/- 0.83
Photon Flux (Free Index): 2.23e-08 +/- 3.39e-08
Energy Flux (Free Index): 9.16e-06 +/- 1.23e-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/255391/cmap_HighResolution_578102401_578361601_4FGL_J1200.6+1229_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='9.16e-06', photon_flux_error='3.10e-08', dlogl='1.37e-02', energy_flux='8.45e-06', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-04 20:37:16.777654', photon_index_error2='0.83', photon_index2='2.25', ts='1.18', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.23e-05', EG='0.93', time_epoch_completed='1630813036.78', return_code='0', job_id='255391', GAL2='1.01', EG2='0.94', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.39e-08', ts2='1.20', photon_index='2.39' WHERE bin_id='1307' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:37:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 255391: <4FGL_J1200.6+1229_daily_bin1307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1307 180.173 12.4922 578102401 578361601 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            703 sec.

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

