/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 9 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 = 7431
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin352
RA = 180.055, Dec = 2.0172
tmin = 330566401, tmax = 330825601
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='241047', job_status='RUN', time_executed='2021-09-04 19:40:48.634229', time_epoch_executed='1630809648.63' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241047/ft1_4FGL_J1200.2+0201_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241047/ft1_4FGL_J1200.2+0201_daily_bin352.fits outfile=/scratch/kocevski/241047/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin352.fits ra=180.055 dec=2.0172 rad=12.0 tmin=330566401.0 tmax=330825601.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.97
user 3.76
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.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/241047/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/241047/ltcube_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.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/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits
.....................!
real 11.72
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/241047/ltcube_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits outfile=/scratch/kocevski/241047/expmap_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.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/241047/ltcube_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits
.....................!
real 190.40
user 185.45
sys 4.52

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits outfile=/scratch/kocevski/241047/cmap_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.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.055 yref=2.0172 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits outfile=/scratch/kocevski/241047/cmap_HighResolution_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.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.055 yref=2.0172 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241047/Model_4FGL_J1200.2+0201_daily_bin352.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/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits.....................!
real 62.13
user 60.77
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits', '/scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits', expMap='/scratch/kocevski/241047/expmap_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits', expCube='/scratch/kocevski/241047/ltcube_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241047/Model_4FGL_J1200.2+0201_daily_bin352.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241047/ft1_filtered_4FGL_J1200.2+0201_daily_bin352.fits
Spacecraft file(s): /scratch/kocevski/241047/ft2_4FGL_J1200.2+0201_daily_bin352.fits
Exposure map: /scratch/kocevski/241047/expmap_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits
Exposure cube: /scratch/kocevski/241047/ltcube_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241047/Model_4FGL_J1200.2+0201_daily_bin352.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) = 6872.09220328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3675       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.647       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.558       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50801E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65750       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1421       1.0000         .10000E-03   10000.    
    21 'norm      '    .43157E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8532       1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2745       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9082       1.0000         .10000E-03   10000.    
    27 'norm      '    14.510       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    47.657       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3284       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6872.070     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     3551 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7723       -.10140E-07** at limit **
   2  norm          .10000E-03    16.401       -.39771E-06** at limit **
   3  Prefactor     3.3679        1.8182       -.17582E-07    .17231E-04
   4  Prefactor     33.655        22.519        .81677E-06    .13524E-04
   5  norm          .10000E-03    2.8493        .37221E-08** at limit **
   6  Prefactor     5.8665        3.5439        .11952E-07    .76420E-04
   7  Prefactor     .10000E-03    11.311        .68439E-07** at limit **
   8  Prefactor     .10000E-03    91.236       -.40200E-04** at limit **
   9  Prefactor     12.594        15.630       -.37323E-05   -.39659E-04
  10  Prefactor     14.556        30.474        .36621E-06    .55327E-04
  11  Prefactor     .10000E-03    2.1225       -.35171E-07** at limit **
  12  Prefactor     5.6014        19.369       -.13542E-05   -.70388E-04
  13  Prefactor     16.790        12.503       -.42776E-06    .11805E-03
  14  Prefactor     .10000E-03    113.23        .51422E-04** at limit **
  15  Prefactor     .10000E-03    26.787       -.19363E-04** at limit **
  16  Prefactor     .10000E-03    28.148        .16718E-04** at limit **
  17  Prefactor     .10224E-03    12.101       -.89462E-06** at limit **
  18  Prefactor     42.159        34.079        .82757E-05    .14683E-03
  19  Prefactor     .65626        .94791        .10155E-06   -.11084E-02
  20  norm          1.1422        1.4262       -.15631E-07    .86579E-04
  21  norm          .10000E-03    1.6564       -.88287E-06** at limit **
  22  Prefactor     3.8478        50.488        .23270E-05    .78094E-05
  23  norm          .10000E-03    22.567        .40058E-05** at limit **
  24  Prefactor     .10000E-03    65.644        .33076E-05** at limit **
  25  norm          1.2730        .59620       -.35829E-07    .14912E-02
  26  Prefactor     3.9087        6.0046        .35376E-06   -.13049E-03
  27  norm          14.508        2.7862       -.19478E-08    .45763E-03
  28  Prefactor     .10000E-03    2.7039        .45514E-07** at limit **
  29  Prefactor     47.664        36.192       -.12040E-05    .12033E-04
  30  Normalizat    1.3281        .20829        .33053E-06    .18266E-03
  31  Prefactor     .79530        .15749       -.71020E-06    .19877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.36786
  Prefactor  = 33.6547
  norm       = 0.0001
  Prefactor  = 5.86648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5938
  Prefactor  = 14.5558
  Prefactor  = 0.0001
  Prefactor  = 5.60144
  Prefactor  = 16.7902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102244
  Prefactor  = 42.1591
  Prefactor  = 0.656258
  norm       = 1.14218
  norm       = 0.000100001
  Prefactor  = 3.84775
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27297
  Prefactor  = 3.90866
  norm       = 14.5084
  Prefactor  = 0.0001
  Prefactor  = 47.6636
  Normalizat = 1.3281
  Prefactor  = 0.795298
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.070     FROM HESSE     STATUS=OK           628 CALLS     4179 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7925        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3679        1.8200        .79525E-04   -1.5341    
   4  Prefactor     33.655        22.521        .69082E-04   -1.4547    
   5  norm          .10000E-03    2.8744        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8665        3.5393        .11560E-03   -1.5224    
   7  Prefactor     .10000E-03    11.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    91.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.594        15.698        .11290E-03   -1.4998    
  10  Prefactor     14.556        30.467        .10497E-03   -1.4945    
  11  Prefactor     .10000E-03    2.1258        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6014        19.348        .16982E-03   -1.5235    
  13  Prefactor     16.790        12.519        .97753E-04   -1.4888    
  14  Prefactor     .10000E-03    113.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10224E-03    12.472        .90567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.159        33.596        .61697E-04   -1.4408    
  19  Prefactor     .65626        11.171        .23796E-02   -1.5546    
  20  norm          1.1422        1.4893        .10702E-03   -1.5494    
  21  norm          .10000E-03    8.3777        .19537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8478        50.436        .20558E-03   -1.5316    
  23  norm          .10000E-03    22.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    65.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2730        .57623        .40273E-04   -1.5482    
  26  Prefactor     3.9087        6.0070        .10204E-02   -1.5313    
  27  norm          14.508        2.7824        .57890E-04   -1.4946    
  28  Prefactor     .10000E-03    2.7070        .13312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     47.664        36.187        .58084E-04   -1.4326    
  30  Normalizat    1.3281        .24321        .27282E-03   -.82731    
  31  Prefactor     .79530        .18272        .27002E-03   -.99902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69664e-09
Minuit parameter uncertainties:
  1  2.01492e-06
  2  9.84817e-06
  3  1.82002
  4  22.5269
  5  6.8481e-07
  6  3.53944
  7  2.64284e-06
  8  9.21652e-05
  9  15.7032
  10  30.4995
  11  4.93297e-07
  12  19.3698
  13  12.5209
  14  0.000406044
  15  1.86058e-05
  16  6.25186e-05
  17  0.0105837
  18  33.6112
  19  5.41585
  20  1.48935
  21  0.000204183
  22  27.8899
  23  1.04318e-05
  24  3.9089e-05
  25  0.576228
  26  6.00793
  27  2.78245
  28  5.55037e-07
  29  36.2039
  30  0.243416
  31  0.182863
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.933e-07  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.953e-01  1.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.328e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 4.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241047/likelihoodResults_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.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) = 6872.07187842
delta logL = -0.0021820859929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6872.06969579
delta logL = 5.42569068784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0841       1.0000          .0000       10.000    
     3 'Normalizat'    1.3282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6872.070     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    27.105        .12098E-02** at limit **
   2  Index         2.0217        5.2321        .50000        .80332E-04
   3  Normalizat    1.3281        .17616E-01    .27282E-03   -.28794E-04
   4  Prefactor     .79530        .13957E-01    .27002E-03    .53681E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6872.070     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      357 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    27.105        .25886E-03** at limit **
   2  Index         2.0217        5.2321        .40890E-03    .80332E-04
   3  Normalizat    1.3281        .17616E-01    .32509E-05   -.28794E-04
   4  Prefactor     .79530        .13957E-01    .35464E-05    .53681E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6872.070     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      404 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.891        .24197E-02** at limit **
   2  Index         1.5889        5.8075        .50000        .34916E-06
   3  Normalizat    1.3281        .17766E-01    .10913E-04   -.18502E-03
   4  Prefactor     .79530        .14076E-01    .10801E-04   -.24293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58893
  Normalizat = 1.3281
  Prefactor  = 0.795296
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.070     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      433 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.88        .48393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5889        7.4977        .50000       -.75079    
   3  Normalizat    1.3281        .40053E-01    .21826E-05   -.82731    
   4  Prefactor     .79530        .31731E-01    .21602E-05   -.99902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57743e-11
Minuit parameter uncertainties:
  1  0.000268437
  2  538.226
  3  0.0400543
  4  0.0317317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241047': 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) = 6872.06969036
delta logL = 5.97165580984e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.684e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.589e+00  5.382e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.953e-01  3.173e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.328e+00  4.005e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/241047/cmap_HighResolution_330566401_330825601_4FGL_J1200.2+0201_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2021-09-04 19:56:33.635924', job_id='241047', GAL2='0.80', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630810593.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='352' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 241047: <4FGL_J1200.2+0201_daily_bin352> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin352> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:29 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:31 2021
Terminated at Sat Sep  4 19:56:36 2021
Results reported at Sat Sep  4 19:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin352 180.055 2.0172 330566401 330825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   940.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            967 sec.

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

