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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin660
RA = 180.055, Dec = 2.0172
tmin = 410400001, tmax = 410659201
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='242504', job_status='RUN', time_executed='2021-09-04 19:47:45.625400', time_epoch_executed='1630810065.63' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242504/ft1_4FGL_J1200.2+0201_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242504/ft1_4FGL_J1200.2+0201_daily_bin660.fits outfile=/scratch/kocevski/242504/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin660.fits ra=180.055 dec=2.0172 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.61
user 6.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.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/242504/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/242504/ltcube_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.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/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits
.....................!
real 11.91
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/242504/ltcube_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits outfile=/scratch/kocevski/242504/expmap_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.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/242504/ltcube_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits
.....................!
real 190.38
user 184.92
sys 5.13

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/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits scfile=/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits outfile=/scratch/kocevski/242504/cmap_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits scfile=/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits outfile=/scratch/kocevski/242504/cmap_HighResolution_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.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.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits', '/scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits', expMap='/scratch/kocevski/242504/expmap_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits', expCube='/scratch/kocevski/242504/ltcube_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242504/Model_4FGL_J1200.2+0201_daily_bin660.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/242504/ft1_filtered_4FGL_J1200.2+0201_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/242504/ft2_4FGL_J1200.2+0201_daily_bin660.fits
Exposure map: /scratch/kocevski/242504/expmap_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits
Exposure cube: /scratch/kocevski/242504/ltcube_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242504/Model_4FGL_J1200.2+0201_daily_bin660.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) = 3847.40859016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9068       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15489E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.355       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12226       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    27.166       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4898       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.498       1.0000         .10000E-03   10000.    
    27 'norm      '    6.8248       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.506       1.0000         .10000E-03   10000.    
    29 'Prefactor '    37.736       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83685       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99866       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=   3847.397     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4292 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9047        6.7963        .25187E-06    .57476E-04
   2  norm          .10000E-03    14.495       -.43677E-07** at limit **
   3  Prefactor     2.9444        2.5731        .61365E-07   -.33858E-04
   4  Prefactor     .10000E-03    15.622       -.75282E-07** at limit **
   5  norm          3.5899        10.318        .39137E-05    .53208E-03
   6  Prefactor     .10001E-03    4.7324       -.30575E-05** at limit **
   7  Prefactor     .10000E-03    7.5060       -.13363E-08** at limit **
   8  Prefactor     11.327        437.00        .18370E-04    .14517E-04
   9  Prefactor     20.344        16.742       -.59991E-06   -.11972E-03
  10  Prefactor     4.5525        296.77        .13216E-04    .24359E-04
  11  Prefactor     .10000E-03    4.7480        .90142E-07** at limit **
  12  Prefactor     20.839        19.093       -.86409E-06   -.11704E-03
  13  Prefactor     .12952        25.039        .27602E-05   -.34625E-03
  14  Prefactor     .10000E-03    36.631       -.65884E-06** at limit **
  15  Prefactor     24.276        70.713       -.41638E-05   -.32648E-05
  16  Prefactor     .10000E-03    25.183        .26807E-06** at limit **
  17  Prefactor     13.404        18.677       -.26804E-06   -.94742E-04
  18  Prefactor     4.1150        107.48       -.79094E-05   -.12135E-03
  19  Prefactor     .10000E-03    5.3157       -.55255E-07** at limit **
  20  norm          .10000E-03    1.1614       -.11538E-06** at limit **
  21  norm          .32123E-01    3.9549        .21299E-05   -.10919E-02
  22  Prefactor     .10000E-03    29.065        .10644E-06** at limit **
  23  norm          27.518        53.845       -.17210E-05   -.22741E-03
  24  Prefactor     .10000E-03    63.331       -.10579E-05** at limit **
  25  norm          1.4919        .85192       -.19956E-06   -.35589E-02
  26  Prefactor     12.494        13.474        .23843E-07   -.69990E-04
  27  norm          6.8257        2.8583       -.91945E-07   -.98371E-03
  28  Prefactor     12.505        13.276       -.17038E-07   -.47618E-04
  29  Prefactor     37.704        53.690        .49549E-06   -.19117E-04
  30  Normalizat    .83769        .28141       -.35628E-05   -.20721E-03
  31  Prefactor     .99830        .21274        .24879E-05   -.28319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90471
  norm       = 0.0001
  Prefactor  = 2.94441
  Prefactor  = 0.0001
  norm       = 3.58987
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 11.327
  Prefactor  = 20.3442
  Prefactor  = 4.55247
  Prefactor  = 0.0001
  Prefactor  = 20.8393
  Prefactor  = 0.129524
  Prefactor  = 0.0001
  Prefactor  = 24.2756
  Prefactor  = 0.0001
  Prefactor  = 13.4041
  Prefactor  = 4.11499
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0321226
  Prefactor  = 0.0001
  norm       = 27.5176
  Prefactor  = 0.0001
  norm       = 1.49188
  Prefactor  = 12.4939
  norm       = 6.82573
  Prefactor  = 12.5054
  Prefactor  = 37.7035
  Normalizat = 0.837695
  Prefactor  = 0.998304
 **********
 **   18 **HESSE 
 **********

 FCN=   3847.397     FROM HESSE     STATUS=OK           642 CALLS     4934 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9047        6.7924        .16523E-03   -1.5222    
   2  norm          .10000E-03    14.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9444        2.5868        .89361E-04   -1.5365    
   4  Prefactor     .10000E-03    15.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5899        10.345        .21324E-03   -1.5329    
   6  Prefactor     .10001E-03    12.480        .22776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5064        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.327        431.99        .11997E-03   -1.5035    
   9  Prefactor     20.344        16.766        .88778E-04   -1.4806    
  10  Prefactor     4.5525        287.84        .18621E-03   -1.5281    
  11  Prefactor     .10000E-03    4.7784        .13199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.839        19.122        .87728E-04   -1.4795    
  13  Prefactor     .12952        39.129        .75553E-01   -1.5636    
  14  Prefactor     .10000E-03    36.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.276        68.946        .81424E-04   -1.4722    
  16  Prefactor     .10000E-03    25.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.404        18.666        .10942E-03   -1.4976    
  18  Prefactor     4.1150        146.99        .20721E-03   -1.5302    
  19  Prefactor     .10000E-03    5.3244        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8194        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .32123E-01    27.572        .29969E-01   -1.5672    
  22  Prefactor     .10000E-03    29.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          27.518        62.641        .76862E-04   -1.4658    
  24  Prefactor     .10000E-03    63.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4919        .86832        .37263E-04   -1.5464    
  26  Prefactor     12.494        13.458        .11331E-03   -1.5001    
  27  norm          6.8257        2.8625        .62610E-04   -1.5185    
  28  Prefactor     12.505        13.264        .11327E-03   -1.5001    
  29  Prefactor     37.704        53.665        .65244E-04   -1.4479    
  30  Normalizat    .83769        .33522        .31125E-03   -.98685    
  31  Prefactor     .99830        .25025        .23325E-03   -.92786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28928e-09
Minuit parameter uncertainties:
  1  6.79331
  2  9.38971e-06
  3  2.5869
  4  1.60912e-05
  5  10.3505
  6  0.000539082
  7  6.75631e-07
  8  141.012
  9  16.77
  10  72.7666
  11  2.39621e-06
  12  19.1274
  13  4.50373
  14  3.86991e-05
  15  69.1738
  16  2.17668e-05
  17  18.6743
  18  49.3183
  19  2.70946e-06
  20  1.08684e-05
  21  1.88014
  22  2.21712e-05
  23  62.7915
  24  0.000155598
  25  0.868326
  26  13.4609
  27  2.86257
  28  13.2673
  29  53.7341
  30  0.336056
  31  0.250539
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.396e-06  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:  9.983e-01  2.505e-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:  8.377e-01  3.361e-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: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242504/likelihoodResults_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.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) = 3847.39749561
delta logL = -0.000991702183455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3847.39650388
delta logL = 3.47276909451e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0850       1.0000          .0000       10.000    
     3 'Normalizat'    .83765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99835       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=   3847.397     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    63.042        .13510E-02** at limit **
   2  Index         2.0167        8.1216        .50000        .32919E-04
   3  Normalizat    .83770        .22263E-01    .31125E-03    .71225E-05
   4  Prefactor     .99830        .18186E-01    .23325E-03   -.17547E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3847.397     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      366 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10170E-03    63.042        .27217E-03** at limit **
   2  Index         2.0158        8.1216        .28383E-03    .32919E-04
   3  Normalizat    .83768        .22263E-01    .61699E-05    .71225E-05
   4  Prefactor     .99830        .18186E-01    .31920E-05   -.17547E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3847.397     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      418 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.620        .27020E-02** at limit **
   2  Index         1.6446        8.1468        .50000        .86345E-07
   3  Normalizat    .83770        .21083E-01    .12450E-04   -.77252E-04
   4  Prefactor     .99830        .17222E-01    .93298E-05   -.11588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64457
  Normalizat = 0.837696
  Prefactor  = 0.998304
 **********
 **   18 **HESSE 
 **********

 FCN=   3847.397     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    309.43        .54039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6446        8.3742        .50000       -.73567    
   3  Normalizat    .83770        .47847E-01    .24900E-05   -.98685    
   4  Prefactor     .99830        .39083E-01    .18660E-05   -.92786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42083e-10
Minuit parameter uncertainties:
  1  2.46647e-06
  2  780.29
  3  0.047849
  4  0.0390841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242504': 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) = 3847.39650162
delta logL = 2.28892349696e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.466e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.645e+00  7.803e+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:  9.983e-01  3.908e-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:  8.377e-01  4.785e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/242504/cmap_HighResolution_410400001_410659201_4FGL_J1200.2+0201_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-04 19:59:40.226142', job_id='242504', GAL2='1.00', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630810780.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='660' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:59:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 242504: <4FGL_J1200.2+0201_daily_bin660> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin660> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:29 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45: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:45:31 2021
Terminated at Sat Sep  4 19:59:43 2021
Results reported at Sat Sep  4 19:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin660 180.055 2.0172 410400001 410659201 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            854 sec.

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

