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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1014
RA = 183.001, Dec = -23.4494
tmin = 502156801, tmax = 502416001
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='408716', job_status='RUN', time_executed='2021-09-05 03:57:25.674779', time_epoch_executed='1630839445.67' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408716/ft1_4FGL_J1212.0-2326_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408716/ft1_4FGL_J1212.0-2326_daily_bin1014.fits outfile=/scratch/kocevski/408716/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1014.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=502156801.0 tmax=502416001.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 4.07
user 3.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.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/408716/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/408716/ltcube_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.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/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits
.....................!
real 12.28
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/408716/ltcube_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.fits outfile=/scratch/kocevski/408716/expmap_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.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/408716/ltcube_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.fits
.....................!
real 193.40
user 187.29
sys 5.69

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/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits outfile=/scratch/kocevski/408716/cmap_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits outfile=/scratch/kocevski/408716/cmap_HighResolution_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.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.82
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/408716/ft2_4FGL_J1212.0-2326_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408716/Model_4FGL_J1212.0-2326_daily_bin1014.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/408716/ft1_filtered_4FGL_J1212.0-2326_daily_bin1014.fits.....................!
real 63.47
user 61.54
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .72423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.438       1.0000         .10000E-03   10000.    
     9 'norm      '    .14839E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2007       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7913       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5818       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92495       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=   7463.425     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2324 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4156       -.97808E-08** at limit **
   2  Prefactor     .10000E-03    24.965        .45216E-05** at limit **
   3  norm          .72477        1.3711        .12854E-07   -.28510E-03
   4  Prefactor     .10000E-03    15.129       -.34181E-05** at limit **
   5  Prefactor     6.0062        6.5453       -.61541E-06   -.48261E-04
   6  Prefactor     .10000E-03    20.014       -.28007E-05** at limit **
   7  norm          .10000E-03    50.415        .42456E-05** at limit **
   8  Prefactor     67.434        22.547        .11263E-06    .33985E-04
   9  norm          .10000E-03    3.9691       -.31938E-07** at limit **
  10  Prefactor     1.4826        3.2073        .35356E-07   -.10300E-03
  11  Prefactor     .10000E-03    30.210       -.81934E-05** at limit **
  12  Prefactor     .10000E-03    11.224       -.30732E-05** at limit **
  13  Prefactor     .10000E-03    11.910        .18468E-05** at limit **
  14  Prefactor     .10000E-03    23.165        .45916E-05** at limit **
  15  Prefactor     .10000E-03    13.895        .31789E-05** at limit **
  16  Prefactor     .10000E-03    3.2360        .34768E-07** at limit **
  17  Prefactor     9.2079        2.6923        .11474E-07    .16179E-04
  18  Prefactor     .10000E-03    10.390        .96793E-06** at limit **
  19  norm          1.2003        1.2922       -.19598E-07   -.19879E-03
  20  Prefactor     .10000E-03    126.28       -.29690E-05** at limit **
  21  norm          6.2751        6.1891       -.10667E-06   -.29457E-03
  22  Prefactor     3.7900        3.6550        .50468E-06   -.13809E-02
  23  Normalizat    1.5813        .25813        .82808E-07   -.15840E-04
  24  Prefactor     .92521        .12310        .33152E-08   -.25218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.724767
  Prefactor  = 0.0001
  Prefactor  = 6.00622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.4342
  norm       = 0.0001
  Prefactor  = 1.48262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20789
  Prefactor  = 0.0001
  norm       = 1.20027
  Prefactor  = 0.0001
  norm       = 6.27511
  Prefactor  = 3.79003
  Normalizat = 1.5813
  Prefactor  = 0.92521
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.425     FROM HESSE     STATUS=OK           393 CALLS     2717 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .72477        1.3514        .13374E-03   -1.5538    
   4  Prefactor     .10000E-03    15.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0062        6.5497        .16387E-03   -1.5218    
   6  Prefactor     .10000E-03    20.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    50.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.434        22.595        .48875E-04   -1.4064    
   9  norm          .10000E-03    3.9874        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4826        3.1687        .22061E-03   -1.5464    
  11  Prefactor     .10000E-03    30.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3372        .30334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2079        2.6913        .74663E-04   -1.5101    
  18  Prefactor     .10000E-03    10.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2003        1.2682        .95516E-04   -1.5489    
  20  Prefactor     .10000E-03    126.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2751        6.5067        .80121E-03   -1.5207    
  22  Prefactor     3.7900        8.2039        .10366E-02   -1.5319    
  23  Normalizat    1.5813        .31058        .33596E-03   -.75519    
  24  Prefactor     .92521        .14833        .20677E-03   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01342e-09
Minuit parameter uncertainties:
  1  3.00182e-07
  2  7.59027e-05
  3  1.35141
  4  4.52932e-05
  5  6.55044
  6  2.43001e-05
  7  6.78593e-05
  8  22.5981
  9  1.86406e-06
  10  3.16906
  11  0.000155083
  12  3.43117e-05
  13  1.96574e-05
  14  7.2167e-05
  15  3.71367e-05
  16  7.24438e-07
  17  2.69133
  18  6.69291e-06
  19  1.26819
  20  0.00011511
  21  6.50744
  22  8.20631
  23  0.310962
  24  0.148399
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.966e-05  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.252e-01  1.484e-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.581e+00  3.110e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408716/likelihoodResults_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.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) = 7463.42516789
delta logL = -0.00039912502325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7463.424769
delta logL = -2.34022991208e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8875       1.0000          .0000       10.000    
     3 'Normalizat'    1.5811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92531       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=   7463.425     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.113        .90712E-02** at limit **
   2  Index         1.8777        6.6267        .50000        .61852E-05
   3  Normalizat    1.5813        .16226E-01    .75922E-01    .10751E-04
   4  Prefactor     .92521        .79602E-02    .45327E-01    .12826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87768
  Normalizat = 1.5813
  Prefactor  = 0.92521
 **********
 **   18 **HESSE 
 **********

 FCN=   7463.425     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8777        5.6812        .50000       -.67445    
   3  Normalizat    1.5813        .29674        .33596E-03   -.75519    
   4  Prefactor     .92521        .14579        .20677E-03   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64886e-10
Minuit parameter uncertainties:
  1  5.32525e-06
  2  8.23022
  3  0.297068
  4  0.14585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408716': 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) = 7463.42476873
delta logL = 3.22679625242e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.325e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.878e+00  8.230e+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.252e-01  1.459e-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.581e+00  2.971e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/408716/cmap_HighResolution_502156801_502416001_4FGL_J1212.0-2326_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-05 04:09:36.808471', job_id='408716', GAL2='0.93', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630840176.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1014' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:09:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 408716: <4FGL_J1212.0-2326_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1014> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:48 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:50 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:50 2021
Terminated at Sun Sep  5 04:09:37 2021
Results reported at Sun Sep  5 04:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1014 183.001 -23.4494 502156801 502416001 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 :                                   725.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

