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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1117
RA = 202.819, Dec = -13.4282
tmin = 528854401, tmax = 529113601
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='732883', job_status='RUN', time_executed='2021-09-08 01:21:18.767715', time_epoch_executed='1631089278.77' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732883/ft1_4FGL_J1331.2-1325_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732883/ft1_4FGL_J1331.2-1325_daily_bin1117.fits outfile=/scratch/kocevski/732883/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1117.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=528854401.0 tmax=529113601.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.49
user 3.21
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.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/732883/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1117.fits evtable="EVENTS" outfile="/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.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.61
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/732883/ltcube_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.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/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits
.....................!
real 15.90
user 15.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/732883/ltcube_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits outfile=/scratch/kocevski/732883/expmap_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.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/732883/ltcube_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits
.....................!
real 192.70
user 185.89
sys 5.63

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

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits outfile=/scratch/kocevski/732883/cmap_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.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=202.819 yref=-13.4282 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.73
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits outfile=/scratch/kocevski/732883/cmap_HighResolution_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.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=202.819 yref=-13.4282 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.65
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732883/Model_4FGL_J1331.2-1325_daily_bin1117.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/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits.....................!
real 59.63
user 57.50
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits', '/scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits', expMap='/scratch/kocevski/732883/expmap_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits', expCube='/scratch/kocevski/732883/ltcube_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/732883/Model_4FGL_J1331.2-1325_daily_bin1117.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/732883/ft1_filtered_4FGL_J1331.2-1325_daily_bin1117.fits
Spacecraft file(s): /scratch/kocevski/732883/ft2_4FGL_J1331.2-1325_daily_bin1117.fits
Exposure map: /scratch/kocevski/732883/expmap_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits
Exposure cube: /scratch/kocevski/732883/ltcube_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/732883/Model_4FGL_J1331.2-1325_daily_bin1117.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) = 6928.95626641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1642       1.0000         .10000E-03   10000.    
     2 'norm      '    17.100       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.6560       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4500       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8869       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    90.184       1.0000         .10000E-03   10000.    
    16 'norm      '    24.610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6776       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6523       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6928.951     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2730 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1643        .54331        .23662E-08    .22636E-03
   2  norm          17.100        12.362       -.24112E-06    .12502E-04
   3  norm          .10000E-03    4.0022       -.13402E-06** at limit **
   4  Prefactor     .10000E-03    40.274        .27205E-05** at limit **
   5  norm          .10000E-03    1.6805       -.12696E-07** at limit **
   6  norm          9.6566        10.276       -.46570E-07   -.99825E-06
   7  norm          .10000E-03    10.864        .19321E-06** at limit **
   8  Prefactor     .10000E-03    11.953        .45961E-05** at limit **
   9  Prefactor     3.6287        7.1966        .17932E-06    .15080E-04
  10  Prefactor     6.5003        49.053       -.14233E-05   -.32620E-04
  11  norm          .10000E-03    .29934       -.10130E-07** at limit **
  12  norm          2.8829        7.5932       -.14521E-06    .17202E-04
  13  norm          9.0090        10.787       -.16720E-06    .56079E-04
  14  Prefactor     .10000E-03    4.0009        .15977E-06** at limit **
  15  Prefactor     90.180        49.779        .35734E-06    .29666E-04
  16  norm          24.609        33.203        .15366E-06    .51107E-05
  17  Prefactor     7.6770        8.6645       -.43305E-06   -.31813E-05
  18  norm          .10000E-03    3.4349       -.29320E-07** at limit **
  19  Prefactor     19.568        8.6918        .10011E-06    .11924E-03
  20  Prefactor     .10000E-03    36.745       -.28332E-05** at limit **
  21  norm          .10000E-03    2.5160       -.80043E-08** at limit **
  22  norm          .10000E-03    1.2057       -.20830E-06** at limit **
  23  Normalizat    1.6519        .27664       -.15731E-06   -.31745E-04
  24  Prefactor     .88165        .13310        .79914E-06    .21320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16427
  norm       = 17.1
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.65662
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62875
  Prefactor  = 6.50027
  norm       = 0.0001
  norm       = 2.88285
  norm       = 9.009
  Prefactor  = 0.0001
  Prefactor  = 90.1795
  norm       = 24.6088
  Prefactor  = 7.67699
  norm       = 0.0001
  Prefactor  = 19.5675
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.65194
  Prefactor  = 0.881652
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.951     FROM HESSE     STATUS=OK           397 CALLS     3127 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1643        .54571        .24302E-04   -1.5352    
   2  norm          17.100        12.375        .48428E-03   -1.4881    
   3  norm          .10000E-03    4.0220        .16266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7162        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.6566        10.280        .12896E-03   -1.5086    
   7  norm          .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.209        .35858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6287        7.1839        .21214E-03   -1.5327    
  10  Prefactor     6.5003        50.246        .15803E-03   -1.5198    
  11  norm          .10000E-03    .30022        .44466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8829        7.4370        .20897E-03   -1.5368    
  13  norm          9.0090        10.620        .66761E-03   -1.5108    
  14  Prefactor     .10000E-03    4.0042        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     90.180        49.814        .42313E-04   -1.3806    
  16  norm          24.609        33.203        .80748E-04   -1.4715    
  17  Prefactor     7.6770        8.6815        .72362E-03   -1.5154    
  18  norm          .10000E-03    3.4671        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.568        8.7361        .90546E-04   -1.4823    
  20  Prefactor     .10000E-03    37.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5181        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9607        .17772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6519        .31216        .34473E-03   -.73594    
  24  Prefactor     .88165        .15172        .23088E-03   -.96785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60556e-10
Minuit parameter uncertainties:
  1  0.545707
  2  12.3766
  3  5.16408e-06
  4  0.000164712
  5  2.23189e-06
  6  10.2816
  7  8.11757e-06
  8  0.000132211
  9  7.18556
  10  36.1867
  11  6.69366e-07
  12  7.43941
  13  10.6225
  14  3.81931e-06
  15  49.8376
  16  33.2279
  17  8.68288
  18  1.4438e-06
  19  8.73662
  20  0.00016901
  21  2.24282e-06
  22  1.0346e-05
  23  0.312529
  24  0.151788
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  6.500e+00  3.619e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.817e-01  1.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.652e+00  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/732883/likelihoodResults_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.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) = 6927.97455135
delta logL = 0.976467540419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6927.76549866
delta logL = 1.18552022529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8402       1.0000          .0000       10.000    
     3 'Normalizat'    1.5064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6927.765     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      407 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68504E-03    .72520E-02    .37145E-03** at limit **
   2  Index         7.8458        2.0933        .13402        .16477E-03
   3  Normalizat    1.5066        .65062E-01    .80708E-01    .10281E-04
   4  Prefactor     .93084        .33426E-01    .45398E-01    .87580E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000685042
  Index      = 7.84577
  Normalizat = 1.50661
  Prefactor  = 0.930835
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.765     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      442 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68504E-03    .19560E-01    .16325E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8458        7.5089        .51203E-02    .60548    
   3  Normalizat    1.5066        .23571        .35722E-03   -.77593    
   4  Prefactor     .93084        .11835        .22545E-03   -.95072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37589e-11
Minuit parameter uncertainties:
  1  0.00676555
  2  4.33676
  3  0.235884
  4  0.118385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732883': 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) = 6927.76549683
delta logL = 1.18552205346

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  6.850e-04  6.766e-03  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  7.846e+00  4.337e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.308e-01  1.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.507e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 7.85 +/- 4.34
Photon Flux (Free Index): 1.70e-07 +/- 1.13e-07
Energy Flux (Free Index): 1.98e-05 +/- 1.35e-05

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/732883/cmap_HighResolution_528854401_529113601_4FGL_J1331.2-1325_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', energy_flux2='1.98e-05', dlogl='1.19e+00', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-08 01:33:35.191604', photon_index_error2='4.34', photon_index2='7.85', ts='0.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.35e-05', EG='1.65', time_epoch_completed='1631090015.19', return_code='0', job_id='732883', GAL2='0.93', EG2='1.51', return_code2='102', photon_flux_error2='1.13e-07', ts2='2.69', photon_index='2.60' WHERE bin_id='1117' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:33:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 732883: <4FGL_J1331.2-1325_daily_bin1117> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1117> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:30 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:20:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:20:31 2021
Terminated at Wed Sep  8 01:33:35 2021
Results reported at Wed Sep  8 01:33:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1117 202.819 -13.4282 528854401 529113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

