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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin41
RA = 180.173, Dec = 12.4922
tmin = 249955201, tmax = 250214401
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='247712', job_status='RUN', time_executed='2021-09-04 20:04:54.301153', time_epoch_executed='1630811094.3' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247712/ft1_4FGL_J1200.6+1229_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247712/ft2_4FGL_J1200.6+1229_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247712/ft1_4FGL_J1200.6+1229_daily_bin41.fits outfile=/scratch/kocevski/247712/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin41.fits ra=180.173 dec=12.4922 rad=12.0 tmin=249955201.0 tmax=250214401.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.43
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247712/ft2_4FGL_J1200.6+1229_daily_bin41.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/247712/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/247712/ft1_filtered_4FGL_J1200.6+1229_daily_bin41.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.52
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247712/ft1_filtered_4FGL_J1200.6+1229_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/247712/ft2_4FGL_J1200.6+1229_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/247712/ltcube_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.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/247712/ft2_4FGL_J1200.6+1229_daily_bin41.fits
.....................!
real 16.59
user 16.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247712/ft1_filtered_4FGL_J1200.6+1229_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/247712/ft2_4FGL_J1200.6+1229_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/247712/ltcube_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.fits outfile=/scratch/kocevski/247712/expmap_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.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/247712/ltcube_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.fits
.....................!
real 192.52
user 187.71
sys 4.43

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/247712/ft1_filtered_4FGL_J1200.6+1229_daily_bin41.fits scfile=/scratch/kocevski/247712/ft2_4FGL_J1200.6+1229_daily_bin41.fits outfile=/scratch/kocevski/247712/cmap_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0107       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59597E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5498       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13530       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.931       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0919       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=   6685.675     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2201 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7654        .90712E-02** at limit **
   2  Prefactor     4.0105        8.7470        .50343E-02    .33034E-03
   3  Prefactor     .10000E-03    8.9114        .90712E-02** at limit **
   4  Prefactor     .10009E-03    5.8205        .10534    ** at limit **
   5  Prefactor     .10000E-03    45.860        .90712E-02** at limit **
   6  Prefactor     6.8995        9.3836        .38186E-02    .20731E-02
   7  Prefactor     .10000E-03    2.5967        .90712E-02** at limit **
   8  Prefactor     .10000E-03    13.059        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.0811        .90712E-02** at limit **
  10  Prefactor     .10000E-03    33.231        .90712E-02** at limit **
  11  Prefactor     3.5454        70.563        .53632E-02   -.35545E-03
  12  Prefactor     1.2306        2.4833        .10131E-01    .93697E-03
  13  Prefactor     .10000E-03    1.4361        .36456E-01** at limit **
  14  Prefactor     .10000E-03    7.9878        .90712E-02** at limit **
  15  norm          1.3206        2.7762        .95738E-02    .78956E-03
  16  Prefactor     .10000E-03    23.451        .90712E-02** at limit **
  17  norm          .13530        .20029        .91463E-02    .26617E-02
  18  norm          .10000E-03    10.064        .90712E-02** at limit **
  19  Prefactor     .10004E-03    579.89        .90712E-02** at limit **
  20  Prefactor     .10000E-03    5.1367        .90712E-02** at limit **
  21  Prefactor     11.930        15.316        .28994E-02   -.36897E-04
  22  Normalizat    1.1005        .18049        .57184E-01   -.87031E-04
  23  Prefactor     1.0919        .16578        .54726E-01   -.89118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.01049
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  Prefactor  = 0.000100001
  Prefactor  = 6.89954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.54537
  Prefactor  = 1.23061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32057
  Prefactor  = 0.000100001
  norm       = 0.135295
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 11.9297
  Normalizat = 1.10052
  Prefactor  = 1.09186
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.675     FROM HESSE     STATUS=OK           370 CALLS     2571 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0105        8.7352        .20137E-03   -1.5307    
   3  Prefactor     .10000E-03    8.9155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10009E-03    41.317        .37579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8995        9.3816        .76373E-03   -1.5183    
   7  Prefactor     .10000E-03    2.6062        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1044        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5454        70.171        .21453E-03   -1.5331    
  12  Prefactor     1.2306        2.3781        .16768E-03   -1.5486    
  13  Prefactor     .10000E-03    2.2408        .18392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3206        2.7495        .18731E-03   -1.5478    
  16  Prefactor     .10000E-03    23.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .13530        .18957        .42333E-03   -1.5634    
  18  norm          .10000E-03    10.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    583.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1553        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.930        15.315        .11598E-03   -1.5017    
  22  Normalizat    1.1005        .21611        .25288E-03   -.89735    
  23  Prefactor     1.0919        .20056        .24197E-03   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00204e-08
Minuit parameter uncertainties:
  1  3.65644e-05
  2  8.73797
  3  3.27161e-05
  4  0.00381027
  5  0.000330748
  6  9.38356
  7  7.71396e-06
  8  5.17585e-05
  9  2.86736e-05
  10  0.000537891
  11  31.5879
  12  2.37827
  13  2.65953e-05
  14  6.19386e-05
  15  2.74974
  16  0.000249825
  17  0.189567
  18  4.2527e-05
  19  0.0101871
  20  6.1087e-06
  21  15.3198
  22  0.216285
  23  0.200697
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  5.176e-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:  1.092e+00  2.007e-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.101e+00  2.163e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247712/likelihoodResults_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.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) = 6685.67523459
delta logL = -0.000359662774827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6685.67487504
delta logL = -1.10355358629e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3989       1.0000          .0000       10.000    
     3 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   6685.675     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    140.48        .18142E-02** at limit **
   2  Index         2.4423        5.9431        .50000       -.67885E-05
   3  Normalizat    1.1005        .14347E-01    .25288E-03    .20680E-04
   4  Prefactor     1.0919        .13746E-01    .24197E-03    .17478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100693
  Index      = 2.44231
  Normalizat = 1.10052
  Prefactor  = 1.09186
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.675     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10069E-03    710.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4423        7.8694        .50000       -.53697    
   3  Normalizat    1.1005        .34297E-01    .10115E-04   -.89735    
   4  Prefactor     1.0919        .32855E-01    .96789E-05   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46489e-08
Minuit parameter uncertainties:
  1  0.0449239
  2  985.954
  3  0.0342975
  4  0.032856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247712': 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) = 6685.67487486
delta logL = 6.63103492116e-08

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.007e-04  4.492e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.442e+00  9.860e+02  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.092e+00  3.286e-02  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.101e+00  3.430e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/247712/cmap_HighResolution_249955201_250214401_4FGL_J1200.6+1229_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-04 20:16:28.708640', job_id='247712', GAL2='1.09', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630811788.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='41' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:16:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 247712: <4FGL_J1200.6+1229_daily_bin41> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin41> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:01:12 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:01:13 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:01:13 2021
Terminated at Sat Sep  4 20:16:29 2021
Results reported at Sat Sep  4 20:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin41 180.173 12.4922 249955201 250214401 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 :                                   693.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

