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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1049
RA = 183.001, Dec = -23.4494
tmin = 511228801, tmax = 511488001
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='408774', job_status='RUN', time_executed='2021-09-05 03:58:35.877905', time_epoch_executed='1630839515.88' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408774/ft1_4FGL_J1212.0-2326_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408774/ft1_4FGL_J1212.0-2326_daily_bin1049.fits outfile=/scratch/kocevski/408774/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1049.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=511228801.0 tmax=511488001.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.52
user 3.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/408774/ltcube_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.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/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits
.....................!
real 16.19
user 15.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/408774/ltcube_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits outfile=/scratch/kocevski/408774/expmap_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.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/408774/ltcube_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits
.....................!
real 192.78
user 187.10
sys 5.22

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/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits scfile=/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits outfile=/scratch/kocevski/408774/cmap_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.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.64
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits scfile=/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits outfile=/scratch/kocevski/408774/cmap_HighResolution_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.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.69
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits', '/scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits', expMap='/scratch/kocevski/408774/expmap_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits', expCube='/scratch/kocevski/408774/ltcube_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408774/Model_4FGL_J1212.0-2326_daily_bin1049.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/408774/ft1_filtered_4FGL_J1212.0-2326_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/408774/ft2_4FGL_J1212.0-2326_daily_bin1049.fits
Exposure map: /scratch/kocevski/408774/expmap_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits
Exposure cube: /scratch/kocevski/408774/ltcube_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408774/Model_4FGL_J1212.0-2326_daily_bin1049.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) = 6107.78863174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.458       1.0000         .10000E-03   10000.    
     3 'norm      '    .49911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68619E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2801       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.965       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5850       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95339       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6107.748     FROM MIGRAD    STATUS=CONVERGED    975 CALLS     3518 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9273        .18142E-02** at limit **
   2  Prefactor     69.401        85.529        .48164E-04   -.73125E-04
   3  norm          .49854        1.3953        .14520E-03    .13647E-03
   4  Prefactor     26.442        33.668        .38966E-03   -.28563E-04
   5  Prefactor     .10017E-03    21.855        .34462E-02** at limit **
   6  Prefactor     .10000E-03    14.753        .18142E-02** at limit **
   7  norm          .10000E-03    15.862        .18142E-02** at limit **
   8  Prefactor     .10000E-03    31.467        .18142E-02** at limit **
   9  norm          3.2353        5.3287        .22027E-03   -.48640E-03
  10  Prefactor     .10000E-03    3.2588        .13738E-02** at limit **
  11  Prefactor     .10000E-03    37.319        .18142E-02** at limit **
  12  Prefactor     .10079E-03    42.170        .13536    ** at limit **
  13  Prefactor     .10000E-03    33.224        .18142E-02** at limit **
  14  Prefactor     13.462        125.78        .11003E-03   -.17978E-04
  15  Prefactor     .10000E-03    22.634        .18142E-02** at limit **
  16  Prefactor     .10000E-03    9.6631        .18142E-02** at limit **
  17  Prefactor     6.8571        3.0543        .88377E-04   -.19193E-03
  18  Prefactor     .10000E-03    8.0511        .18142E-02** at limit **
  19  norm          1.2801        1.3393        .88798E-04   -.19511E-03
  20  Prefactor     .10000E-03    39.114        .18142E-02** at limit **
  21  norm          11.964        6.7270        .11581E-03   -.81184E-04
  22  Prefactor     .10000E-03    2.2386        .11404E-02** at limit **
  23  Normalizat    1.5849        .33428        .33731E-03   -.65508E-03
  24  Prefactor     .95339        .16019        .20357E-03   -.83603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 69.4005
  norm       = 0.498543
  Prefactor  = 26.4421
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100789
  Prefactor  = 0.000100005
  Prefactor  = 13.4617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85708
  Prefactor  = 0.0001
  norm       = 1.28014
  Prefactor  = 0.0001
  norm       = 11.9645
  Prefactor  = 0.0001
  Normalizat = 1.5849
  Prefactor  = 0.953391
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.748     FROM HESSE     STATUS=OK           383 CALLS     3901 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.401        85.502        .96328E-05   -1.4040    
   3  norm          .49854        1.3948        .58080E-05   -1.5567    
   4  Prefactor     26.442        33.668        .15586E-04   -1.4679    
   5  Prefactor     .10017E-03    22.115        .68923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2353        5.3276        .88107E-05   -1.5348    
  10  Prefactor     .10000E-03    3.2591        .27476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10079E-03    42.380        .13490       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.462        126.02        .44013E-05   -1.4974    
  15  Prefactor     .10000E-03    22.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8571        3.0541        .35351E-05   -1.5184    
  18  Prefactor     .10000E-03    8.0521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2801        1.3393        .35519E-05   -1.5482    
  20  Prefactor     .10000E-03    39.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.964        6.7270        .46324E-05   -1.5016    
  22  Prefactor     .10000E-03    2.2387        .22807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5849        .33452        .67463E-04   -.75420    
  24  Prefactor     .95339        .16033        .40715E-04   -.94300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81659e-09
Minuit parameter uncertainties:
  1  3.00155e-05
  2  85.6535
  3  1.39491
  4  33.6917
  5  0.00386139
  6  6.00204e-06
  7  4.5479e-05
  8  2.59854e-06
  9  5.32842
  10  2.42333e-05
  11  0.000210642
  12  0.0115716
  13  0.000813005
  14  82.6055
  15  7.43971e-05
  16  7.92001e-05
  17  3.05412
  18  2.76159e-05
  19  1.33929
  20  4.09699e-05
  21  6.72745
  22  6.02967e-06
  23  0.334992
  24  0.160409
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.130e-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:  9.534e-01  1.604e-01  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.585e+00  3.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408774/likelihoodResults_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.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) = 6107.74856123
delta logL = -0.000143369418765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6107.74841851
delta logL = -6.50102265354e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16494E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9713       1.0000          .0000       10.000    
     3 'Normalizat'    1.5849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95338       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=   6107.748     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      240 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    302.36        .90712E-02** at limit **
   2  Index         2.0381        6.5488        .50000       -.19997E-04
   3  Normalizat    1.5849        .18326E-01    .76228E-01    .33056E-05
   4  Prefactor     .95339        .89278E-02    .45682E-01    .11200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.03814
  Normalizat = 1.58491
  Prefactor  = 0.95339
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.748     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    238.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0381        5.8145        .50000       -.63400    
   3  Normalizat    1.5849        .16131E-01    .33732E-03   -.75420    
   4  Prefactor     .95339        .78649E-02    .20357E-03   -.94300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.14913e-09
Minuit parameter uncertainties:
  1  0.00499838
  2  9.01446
  3  0.0161307
  4  0.00786494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408774': 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) = 6107.74841738
delta logL = 4.84524207423e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.998e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.038e+00  9.014e+00  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:  9.534e-01  7.865e-03  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.585e+00  1.613e-02  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/408774/cmap_HighResolution_511228801_511488001_4FGL_J1212.0-2326_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-05 04:10:55.545221', job_id='408774', GAL2='0.95', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630840255.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1049' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 408774: <4FGL_J1212.0-2326_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1049> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:53 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:55 2021
Terminated at Sun Sep  5 04:10:56 2021
Results reported at Sun Sep  5 04:10:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1049 183.001 -23.4494 511228801 511488001 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 :                                   735.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

