Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0263/0.0263, allocations: 5.399 MB / 21.03 MB, free: 2.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000894/0.0008941, allocations: 108.1 kB / 23.03 MB, free: 36 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009997/0.0009998, allocations: 193 kB / 25.14 MB, free: 368 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 222.9 MB / 250 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008824/0.008824, allocations: 2.325 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 95.83 kB / 419.6 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09731, allocations: 51.21 MB / 470.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.007415/0.1048, allocations: 6.78 MB / 477.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004698/0.1095, allocations: 3.131 MB / 480.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004611/0.11, allocations: 19.94 kB / 480.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.1124, allocations: 1.096 MB / 481.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.114, allocations: 0.8467 MB / 482.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1154, allocations: 0.532 MB / 483.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.1166, allocations: 1.382 MB / 484.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.1178, allocations: 1.032 MB / 485.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000494/0.1183, allocations: 0.5605 MB / 486.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007379/0.1191, allocations: 0.712 MB / 486.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.1192, allocations: 144 kB / 487.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006064/0.1199, allocations: 431.6 kB / 487.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.1201, allocations: 291.1 kB / 487.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004825/0.1206, allocations: 0.6337 MB / 488.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.1221, allocations: 1.76 MB / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1221, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1221, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1221, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003833/0.1259, allocations: 1.763 MB / 491.9 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.126, allocations: 16.02 kB / 492 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001965/0.128, allocations: 371.3 kB / 492.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.1295, allocations: 0.7561 MB / 493.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.796e-05/0.1296, allocations: 86.06 kB / 493.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.1297, allocations: 104 kB / 493.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.1318, allocations: 1.176 MB / 494.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.1318, allocations: 7.906 kB / 494.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.1319, allocations: 52 kB / 494.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.132, allocations: 24 kB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/0.134, allocations: 1.034 MB / 495.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005699/0.1397, allocations: 4.361 MB / 499.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002753/0.1425, allocations: 1.768 MB / 0.4899 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007264/0.1432, allocations: 359.4 kB / 0.4903 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/0.1434, allocations: 182.8 kB / 0.4904 GB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000948/0.1443, allocations: 0.5474 MB / 0.491 GB, free: 2.578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.455e-06/0.1444, allocations: 0 / 0.491 GB, free: 2.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005698/0.1501, allocations: 1.706 MB / 0.4926 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.1502, allocations: 277.7 kB / 0.4929 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006289/0.1508, allocations: 0.5574 MB / 0.4934 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.1509, allocations: 45.7 kB / 0.4935 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003502/0.1513, allocations: 0.4906 MB / 0.494 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.1515, allocations: 256.4 kB / 0.4942 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/0.1518, allocations: 214.7 kB / 0.4944 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.152, allocations: 382.8 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007225/0.1527, allocations: 326.4 kB / 0.4951 GB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.1536, allocations: 0.5643 MB / 0.4956 GB, free: 13.55 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0165/0.1701, allocations: 3.623 MB / 0.4992 GB, free: 9.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.1702, allocations: 4 kB / 0.4992 GB, free: 9.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002717/0.1729, allocations: 1.205 MB / 0.5004 GB, free: 8.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.805e-05/0.173, allocations: 97.34 kB / 0.5005 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/0.173, allocations: 8 kB / 0.5005 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004549/0.1735, allocations: 84.72 kB / 0.5005 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.1746, allocations: 255.6 kB / 0.5008 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.1761, allocations: 1.582 MB / 0.5023 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009809/0.1771, allocations: 122.9 kB / 0.5024 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.1772, allocations: 56.06 kB / 0.5025 GB, free: 6.164 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006029/0.1779, allocations: 365.2 kB / 0.5029 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.1781, allocations: 79.14 kB / 0.5029 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002505/0.1806, allocations: 1.261 MB / 0.5042 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.1806, allocations: 12 kB / 0.5042 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.1806, allocations: 0 / 0.5042 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1806, allocations: 3.984 kB / 0.5042 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00609/0.1867, allocations: 2.543 MB / 0.5067 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1867, allocations: 0 / 0.5067 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005732/0.1873, allocations: 135.8 kB / 0.5068 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007516/0.1881, allocations: 330.3 kB / 0.5071 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.932e-05/0.1882, allocations: 35.97 kB / 0.5071 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.1894, allocations: 0.8818 MB / 0.508 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1894, allocations: 4.031 kB / 0.508 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.222/0.4114, allocations: 1.919 MB / 0.5099 GB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003824/0.4118, allocations: 238.9 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.412, allocations: 25.95 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000601/0.4126, allocations: 60.09 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.4127, allocations: 57.55 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.846e-05/0.4128, allocations: 38.23 kB / 0.5103 GB, free: 46.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000475/0.4133, allocations: 394 kB / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4133, allocations: 0 / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009436/0.4142, allocations: 340.7 kB / 0.511 GB, free: 46.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006018/0.4148, allocations: 359.1 kB / 0.5113 GB, free: 46.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.4168, allocations: 1.162 MB / 0.5125 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4168, allocations: 0 / 0.5125 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009485/0.4178, allocations: 0.6718 MB / 0.5131 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.4185, allocations: 146.2 kB / 0.5132 GB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.4216, allocations: 1.775 MB / 0.515 GB, free: 44.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.422, allocations: 1.011 MB / 0.516 GB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004402/0.4224, allocations: 126.6 kB / 0.5161 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.4227, allocations: 87.28 kB / 0.5162 GB, free: 43.88 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4227, allocations: 0 / 0.5162 GB, free: 43.88 MB / 382.1 MB Notification: Performance of Templates: time 0.02009/0.4428, allocations: 13.28 MB / 0.5291 GB, free: 39.46 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)