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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1171
RA = 183.001, Dec = -23.4494
tmin = 542851201, tmax = 543110401
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='410123', job_status='RUN', time_executed='2021-09-05 04:02:01.789965', time_epoch_executed='1630839721.79' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410123

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410123/ft1_4FGL_J1212.0-2326_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410123/ft1_4FGL_J1212.0-2326_daily_bin1171.fits outfile=/scratch/kocevski/410123/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1171.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.77
user 0.57
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.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/410123/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.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.49
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/410123/ltcube_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.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/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits
.....................!
real 1.86
user 1.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/410123/ltcube_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits outfile=/scratch/kocevski/410123/expmap_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.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/410123/ltcube_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits
.....................!
real 192.15
user 184.98
sys 5.17

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits outfile=/scratch/kocevski/410123/cmap_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.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=183.001 yref=-23.4494 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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits outfile=/scratch/kocevski/410123/cmap_HighResolution_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.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=183.001 yref=-23.4494 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.52
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410123/Model_4FGL_J1212.0-2326_daily_bin1171.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/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits.......!
real 13.83
user 12.55
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits', '/scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits', expMap='/scratch/kocevski/410123/expmap_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits', expCube='/scratch/kocevski/410123/ltcube_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410123/Model_4FGL_J1212.0-2326_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410123/ft1_filtered_4FGL_J1212.0-2326_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/410123/ft2_4FGL_J1212.0-2326_daily_bin1171.fits
Exposure map: /scratch/kocevski/410123/expmap_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits
Exposure cube: /scratch/kocevski/410123/ltcube_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410123/Model_4FGL_J1212.0-2326_daily_bin1171.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) = 69.7595712877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    246.06       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1287.2       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    35.417       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2293.4       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87803E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   69.64134     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     3158 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    559.20        .11437E-03** at limit **
   2  Prefactor     .10000E-03    1960.1       -.10004E-02** at limit **
   3  norm          .10000E-03    45.750       -.75092E-06** at limit **
   4  Prefactor     .10000E-03    1195.5       -.54874E-03** at limit **
   5  Prefactor     .10000E-03    117.94        .47373E-04** at limit **
   6  Prefactor     .10000E-03    731.86       -.81999E-04** at limit **
   7  norm          .10000E-03    569.89        .10324E-03** at limit **
   8  Prefactor     .10000E-03    212.52       -.47098E-04** at limit **
   9  norm          .10000E-03    69.514       -.15406E-04** at limit **
  10  Prefactor     .10000E-03    120.89        .28937E-04** at limit **
  11  Prefactor     .10000E-03    754.88       -.10884E-03** at limit **
  12  Prefactor     245.48        1272.3       -.37392E-03   -.14188E-05
  13  Prefactor     .10000E-03    355.24        .20905E-03** at limit **
  14  Prefactor     .10000E-03    640.06        .25293E-04** at limit **
  15  Prefactor     1287.4        1212.7        .45941E-04   -.12399E-05
  16  Prefactor     .10000E-03    63.703        .13310E-04** at limit **
  17  Prefactor     .10000E-03    22.943        .11414E-06** at limit **
  18  Prefactor     .10000E-03    148.02       -.98312E-04** at limit **
  19  norm          35.431        29.981        .82530E-06    .26844E-04
  20  Prefactor     2293.6        1825.4        .56313E-04    .34515E-05
  21  norm          .10000E-03    72.313        .52235E-05** at limit **
  22  Prefactor     .10000E-03    70.291       -.11137E-04** at limit **
  23  Normalizat    .10000E-01    6.8187       -.64697E-06** at limit **
  24  Prefactor     .16683E-10    1.0561       -.31951E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 245.476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1287.36
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.4309
  Prefactor  = 2293.6
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.66828e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   69.64134     FROM HESSE     STATUS=OK           377 CALLS     3535 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    559.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1959.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    45.749        .55362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1195.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    117.94        .88997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    731.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    569.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    212.51        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    69.513        .68269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    120.98        .90125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    754.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     245.48        1263.1        .12910E-03   -1.2561    
  13  Prefactor     .10000E-03    355.30        .15509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    640.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1287.4        1161.2        .59721E-04   -.83684    
  16  Prefactor     .10000E-03    63.702        .65347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.943        .39190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    148.02        .99753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          35.431        29.316        .39243E-04   -1.4517    
  20  Prefactor     2293.6        1820.0        .47573E-04   -.57196    
  21  norm          .10000E-03    72.308        .69631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    70.291        .68651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    6.9482        .98531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .16683E-10    1.0739        .53049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44752e-11
Minuit parameter uncertainties:
  1  2.32096e-05
  2  9.25648e-06
  3  2.2251e-06
  4  7.98762e-06
  5  8.69211e-05
  6  0.000355703
  7  9.33164e-05
  8  0.000102667
  9  4.07765e-05
  10  0.00130658
  11  0.000284082
  12  1154.55
  13  0.00035525
  14  0.000562024
  15  1185.78
  16  4.38888e-07
  17  8.02395e-09
  18  8.33912e-05
  19  29.3279
  20  1882.21
  21  0.000139441
  22  9.97658e-05
  23  4.45753e-05
  24  8.62474e-06
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.553e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.668e-11  8.625e-06  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  4.458e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 2.88e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410123/likelihoodResults_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.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) = 69.6413556317
delta logL = -1.37760785748e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 69.6413552988
delta logL = -1.34431753054e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95385E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8972       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10147E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   69.64134     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      210 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    256.25        .90808E-02** at limit **
   2  Index         1.8491        9.0402        .50000        .94122E-06
   3  Normalizat    .10000E-01    .47432E-02    .24949    ** at limit **
   4  Prefactor     .11047E-12    .13764E-02    .12332    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.84912
  Normalizat = 0.01
  Prefactor  = 1.10467e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   69.64134     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1369.8        .16253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8491        5.5757        .50000       -.68178    
   3  Normalizat    .10000E-01    .33335E-01    .98529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11047E-12    .81591E-02    .53048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20522e-08
Minuit parameter uncertainties:
  1  0.00283619
  2  438.024
  3  5.09675e-07
  4  6.00541e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410123': 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) = 69.6413418432
delta logL = 1.24468755303e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.836e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.849e+00  4.380e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.105e-13  6.005e-08  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  5.097e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/410123/cmap_HighResolution_542851201_543110401_4FGL_J1212.0-2326_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-01', job_status='DONE', photon_flux_upper_limit='2.88e-06', time_completed='2021-09-05 04:06:58.484065', job_id='410123', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630840018.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1171' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:06:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 410123: <4FGL_J1212.0-2326_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1171> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:00:36 2021
Terminated at Sun Sep  5 04:06:59 2021
Results reported at Sun Sep  5 04:06:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1171 183.001 -23.4494 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   298.73 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   382 sec.
    Turnaround time :                            384 sec.

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

