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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin178
RA = 180.833, Dec = 11.3231
tmin = 285465601, tmax = 285724801
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='285747', job_status='RUN', time_executed='2021-09-04 21:56:16.782718', time_epoch_executed='1630817776.78' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285747/ft1_4FGL_J1203.3+1119_daily_bin178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285747/ft1_4FGL_J1203.3+1119_daily_bin178.fits outfile=/scratch/kocevski/285747/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin178.fits ra=180.833 dec=11.3231 rad=12.0 tmin=285465601.0 tmax=285724801.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.45
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.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/285747/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin178.fits evtable="EVENTS" outfile="/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/285747/ltcube_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.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/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits
.....................!
real 11.94
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/285747/ltcube_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits outfile=/scratch/kocevski/285747/expmap_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.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/285747/ltcube_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits
.....................!
real 190.78
user 185.40
sys 5.01

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits outfile=/scratch/kocevski/285747/cmap_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.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.833 yref=11.3231 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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits outfile=/scratch/kocevski/285747/cmap_HighResolution_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.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.833 yref=11.3231 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285747/Model_4FGL_J1203.3+1119_daily_bin178.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/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits.....................!
real 58.72
user 57.35
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits', '/scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits', expMap='/scratch/kocevski/285747/expmap_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits', expCube='/scratch/kocevski/285747/ltcube_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/285747/Model_4FGL_J1203.3+1119_daily_bin178.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/285747/ft1_filtered_4FGL_J1203.3+1119_daily_bin178.fits
Spacecraft file(s): /scratch/kocevski/285747/ft2_4FGL_J1203.3+1119_daily_bin178.fits
Exposure map: /scratch/kocevski/285747/expmap_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits
Exposure cube: /scratch/kocevski/285747/ltcube_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/285747/Model_4FGL_J1203.3+1119_daily_bin178.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) = 6367.97072744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    124.10       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22602E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0265       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5052       1.0000         .10000E-03   10000.    
    18 'norm      '    .37985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5565       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92165       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.318       1.0000         .10000E-03   10000.    
    23 'norm      '    3.5800       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74240       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2390       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6367.957     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3199 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7919        9.9778        .88622E-07    .52444E-04
   2  Prefactor     .10000E-03    11.889       -.25402E-06** at limit **
   3  Prefactor     .10000E-03    2.6135       -.18671E-06** at limit **
   4  Prefactor     29.922        33.672       -.45595E-06    .19294E-04
   5  Prefactor     41.934        120.96        .23447E-05    .41793E-04
   6  Prefactor     .10000E-03    8.4263        .20888E-05** at limit **
   7  Prefactor     3.0720        8.5938        .11249E-05    .13322E-03
   8  Prefactor     10.603        16.762        .36930E-06    .10044E-03
   9  Prefactor     3.8983        2.8811        .24821E-06    .53785E-03
  10  Prefactor     124.12        109.58        .61087E-06    .37624E-04
  11  Prefactor     .10003E-03    125.24        .12344E-04** at limit **
  12  Prefactor     .10000E-03    1.2994       -.67639E-06** at limit **
  13  Prefactor     .10000E-03    2.0956       -.95410E-06** at limit **
  14  Prefactor     .10000E-03    10.553        .14815E-06** at limit **
  15  norm          16.304        6.2836        .51060E-07   -.66672E-03
  16  Prefactor     8.0249        30.379        .61477E-08    .14862E-04
  17  norm          2.5052        .44219        .65192E-07    .37292E-02
  18  norm          .12756        46.856        .51427E-05   -.29506E-03
  19  Prefactor     .10000E-03    45.016       -.34646E-07** at limit **
  20  norm          4.5569        1.1699        .21461E-08   -.11986E-02
  21  Prefactor     .87082        14.232        .10042E-05   -.21363E-03
  22  Prefactor     37.351        30.252        .18124E-05    .24656E-03
  23  norm          3.5798        2.1653        .27242E-07   -.22097E-04
  24  Prefactor     .10000E-03    147.81       -.27021E-05** at limit **
  25  Normalizat    .74187        .22984       -.49821E-05    .37459E-03
  26  Prefactor     1.2395        .19947        .43451E-05    .42177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.79188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9219
  Prefactor  = 41.9343
  Prefactor  = 0.000100001
  Prefactor  = 3.072
  Prefactor  = 10.6034
  Prefactor  = 3.89832
  Prefactor  = 124.124
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.3043
  Prefactor  = 8.02488
  norm       = 2.50522
  norm       = 0.127556
  Prefactor  = 0.0001
  norm       = 4.55688
  Prefactor  = 0.870824
  Prefactor  = 37.3515
  norm       = 3.57981
  Prefactor  = 0.000100003
  Normalizat = 0.741871
  Prefactor  = 1.23948
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.957     FROM HESSE     STATUS=OK           470 CALLS     3669 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7919        9.9704        .13518E-03   -1.5115    
   2  Prefactor     .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6175        .12601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.922        33.673        .73211E-04   -1.4613    
   5  Prefactor     41.934        120.73        .31060E-03   -1.4412    
   6  Prefactor     .10000E-03    8.5079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0720        8.5420        .23150E-03   -1.5357    
   8  Prefactor     10.603        16.718        .12303E-03   -1.5057    
   9  Prefactor     3.8983        2.8775        .11217E-03   -1.5313    
  10  Prefactor     124.12        109.30        .36131E-04   -1.3475    
  11  Prefactor     .10003E-03    127.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9836        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0746        .21198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.304        6.3191        .99218E-04   -1.4900    
  16  Prefactor     8.0249        30.370        .14152E-03   -1.5141    
  17  norm          2.5052        .44319        .21367E-04   -1.5391    
  18  norm          .12756        39.875        .15230       -1.5637    
  19  Prefactor     .10000E-03    45.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5569        1.1763        .38008E-04   -1.5281    
  21  Prefactor     .87082        55.758        .48232E-02   -1.5521    
  22  Prefactor     37.351        31.018        .65607E-04   -1.4485    
  23  norm          3.5798        2.1605        .86930E-04   -1.5330    
  24  Prefactor     .10000E-03    149.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74187        .24524        .33218E-03   -1.0226    
  26  Prefactor     1.2395        .21886        .24799E-03   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72773e-09
Minuit parameter uncertainties:
  1  9.97223
  2  2.49505e-05
  3  8.45169e-06
  4  33.6947
  5  121.448
  6  0.000164331
  7  8.5454
  8  16.7257
  9  2.87756
  10  109.482
  11  0.00369076
  12  2.77764e-05
  13  0.000120938
  14  9.25081e-06
  15  6.31939
  16  30.4282
  17  0.443191
  18  4.5118
  19  1.16451e-05
  20  1.17626
  21  13.9492
  22  31.0316
  23  2.16051
  24  0.00123227
  25  0.245605
  26  0.219017
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.241e+02  1.095e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.239e+00  2.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  7.419e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.61e-05

TS (Fixed Index): 2.18
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285747/likelihoodResults_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.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) = 6367.44930379
delta logL = 0.507925098036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.44422757
delta logL = 0.513001318526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.000       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0572       1.0000          .0000       10.000    
     3 'Normalizat'    .69785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   6367.444     FROM MIGRAD    STATUS=FAILED        93 CALLS      319 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.128        113.81        .59767E-04   -.25489E-04
   2  Index         3.0567        1.1963        .41440E-02    .61745E-03
   3  Normalizat    .69722        .23547        .34172E-03   -.22037E-03
   4  Prefactor     1.2665        .21818        .24569E-03    .38943E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6367.444     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      397 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.128        113.81        .43114E-03   -1.4363    
   2  Index         3.0567        1.1963        .71123E-03   -.39918    
   3  Normalizat    .69722        .23547        .31694E-03   -1.0400    
   4  Prefactor     1.2665        .21818        .16647E-03   -.84310    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6367.444     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      425 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.129        78.502        .23907E-05    .27581E-04
   2  Index         3.0567        .82716        .82880E-03   -.13799E-04
   3  Normalizat    .69723        .23411        .13669E-04    .18298E-05
   4  Prefactor     1.2665        .21703        .49137E-04    .26839E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1289
  Index      = 3.05666
  Normalizat = 0.697233
  Prefactor  = 1.26646
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.444     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.129        77.262        .47814E-06   -1.4363    
   2  Index         3.0567        .80821        .33152E-04   -.39918    
   3  Normalizat    .69723        .23384        .27338E-05   -1.0400    
   4  Prefactor     1.2665        .21678        .98274E-05   -.84310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09175e-11
Minuit parameter uncertainties:
  1  77.4344
  2  0.812414
  3  0.234177
  4  0.216937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285747': 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) = 6367.44422096
delta logL = 0.513007926758

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  4.513e+01  7.743e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.057e+00  8.124e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.266e+00  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  6.972e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 180.833 11.323
Photon Index (Free Index): 3.06 +/- 0.81
Photon Flux (Free Index): 8.42e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.12e-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/285747/cmap_HighResolution_285465601_285724801_4FGL_J1203.3+1119_daily_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.64e-05', photon_flux_error='4.51e-08', dlogl='5.13e-01', energy_flux='1.83e-05', photon_flux2='8.42e-08', job_status='DONE', time_completed='2021-09-04 22:10:14.136948', photon_index_error2='0.81', photon_index2='3.06', ts='2.18', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.12e-05', EG='0.74', time_epoch_completed='1630818614.14', return_code='0', job_id='285747', GAL2='1.27', EG2='0.70', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='5.90e-08', ts2='3.29', photon_index='2.34' WHERE bin_id='178' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 285747: <4FGL_J1203.3+1119_daily_bin178> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin178> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:57 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:55:58 2021
Terminated at Sat Sep  4 22:10:14 2021
Results reported at Sat Sep  4 22:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin178 180.833 11.3231 285465601 285724801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   834.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

