Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02541/0.02541, allocations: 5.403 MB / 21.71 MB, free: 1.336 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.0009973/0.0009972, allocations: 106.5 kB / 23.71 MB, free: 0.9727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 191.7 kB / 25.83 MB, free: 4.621 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 250.7 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009488/0.009488, allocations: 2.319 MB / 304.4 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 99.84 kB / 420.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08285, allocations: 51.21 MB / 471.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.007972/0.09086, allocations: 6.784 MB / 478.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.09579, allocations: 3.127 MB / 481.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004648/0.09627, allocations: 16 kB / 481.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.09865, allocations: 1.119 MB / 482.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001569/0.1002, allocations: 0.8624 MB / 483.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.1015, allocations: 0.5211 MB / 484 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.103, allocations: 1.398 MB / 485.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.1043, allocations: 1.024 MB / 486.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005429/0.1048, allocations: 0.5527 MB / 486.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007767/0.1056, allocations: 0.7198 MB / 487.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.1058, allocations: 140 kB / 487.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006939/0.1065, allocations: 443.7 kB / 488.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.1067, allocations: 295 kB / 488.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005257/0.1073, allocations: 0.6337 MB / 489.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.109, allocations: 1.743 MB / 490.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.109, allocations: 4 kB / 490.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.109, allocations: 0 / 490.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.1091, allocations: 3.938 kB / 490.9 MB, free: 15.8 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.003933/0.113, allocations: 1.8 MB / 492.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.113, allocations: 8.031 kB / 492.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.1151, allocations: 383.8 kB / 493.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.1167, allocations: 0.7683 MB / 493.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.471e-05/0.1168, allocations: 82.06 kB / 493.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.117, allocations: 108 kB / 494 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.119, allocations: 1.176 MB / 495.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.119, allocations: 0 / 495.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.1191, allocations: 44 kB / 495.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.1191, allocations: 24 kB / 495.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.1213, allocations: 1.038 MB / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005952/0.1273, allocations: 4.385 MB / 0.489 GB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.1301, allocations: 1.766 MB / 0.4907 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.1309, allocations: 363.4 kB / 0.491 GB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/0.1311, allocations: 182.7 kB / 0.4912 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009586/0.132, allocations: 0.5514 MB / 0.4917 GB, free: 2.477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.787e-06/0.1321, allocations: 0 / 0.4917 GB, free: 2.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006178/0.1382, allocations: 1.706 MB / 0.4934 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.1384, allocations: 281.6 kB / 0.4937 GB, free: 400 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006653/0.1391, allocations: 0.5537 MB / 0.4942 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.1391, allocations: 41.7 kB / 0.4943 GB, free: 15.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/0.1395, allocations: 0.5039 MB / 0.4948 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.1397, allocations: 265.8 kB / 0.495 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.14, allocations: 210.8 kB / 0.4952 GB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1402, allocations: 382.8 kB / 0.4956 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007781/0.141, allocations: 330.4 kB / 0.4959 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.1419, allocations: 0.5643 MB / 0.4964 GB, free: 13.43 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.01869/0.1606, allocations: 3.631 MB / 0.5 GB, free: 9.633 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.1607, allocations: 0 / 0.5 GB, free: 9.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002562/0.1632, allocations: 1.21 MB / 0.5012 GB, free: 8.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.613e-05/0.1633, allocations: 91.44 kB / 0.5013 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.1633, allocations: 8 kB / 0.5013 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004727/0.1638, allocations: 89.03 kB / 0.5013 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.165, allocations: 251.6 kB / 0.5016 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.1665, allocations: 1.597 MB / 0.5031 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009342/0.1675, allocations: 119.4 kB / 0.5033 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.498e-05/0.1676, allocations: 51.97 kB / 0.5033 GB, free: 6.039 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.0005284/0.1681, allocations: 365.2 kB / 0.5037 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.1683, allocations: 87.42 kB / 0.5037 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/0.1709, allocations: 1.261 MB / 0.505 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.171, allocations: 3.984 kB / 0.505 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.171, allocations: 0 / 0.505 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003042/0.1713, allocations: 236.3 kB / 0.5052 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.1714, allocations: 35.89 kB / 0.5052 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.1721, allocations: 47.97 kB / 0.5053 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.1722, allocations: 68.89 kB / 0.5053 GB, free: 3.867 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): mpTracker.power = mpTracker.vRef * converter.iDC 2/2 (6): algorithm mpTracker.signv := pre(mpTracker.signv); mpTracker.vRef := pre(mpTracker.vRef); mpTracker.firstTrigger := pre(mpTracker.firstTrigger); mpTracker.counter := pre(mpTracker.counter); $whenCondition1 := pre($whenCondition1); mpTracker.sampleTrigger := pre(mpTracker.sampleTrigger); mpTracker.sampleTrigger := sample(1, mpTracker.startTime, mpTracker.samplePeriod); $whenCondition1 := mpTracker.sampleTrigger; when $whenCondition1 then mpTracker.counter := pre(mpTracker.counter) + 1; mpTracker.firstTrigger := time <= mpTracker.startTime + 0.5 * mpTracker.samplePeriod; mpTracker.vRef := pre(mpTracker.vRef) + mpTracker.signv * mpTracker.dv; if not mpTracker.firstTrigger and mpTracker.power < pre(mpTracker.power) then mpTracker.signv := -pre(mpTracker.signv); end if; if mpTracker.vRef <= 3.0 * mpTracker.dv then mpTracker.signv := 1.0; end if; end when; 3/8 (1): plant.diode.iModule = smooth(1, if mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNeg then plant.diode.Ids * (exp(mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt)) - 1.0) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VBv then plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * 0.025692579332761666) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNegLin then plant.diode.Ids * plant.diode.VBv / (plant.diode.m * 0.025692579332761666) - plant.diode.Ibv * exp(((-mpTracker.vRef) / (60.0 * /*Real*/(plant.diode.nsModule)) - plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt)) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt) - plant.diode.Ibv * exp(0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) + plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt) - 0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule))) 4/9 (1): plant.diode.iModule = plant.diode.i / /*Real*/(plant.diode.npModule) 5/10 (1): plant.diode.i + converter.iDC - plant.signalCurrent.i = 0.0 Variables: 1: converter.iDC:VARIABLE(unit = "A" ) "DC current" type: Real 2: plant.diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 3: plant.diode.iModule:VARIABLE(unit = "A" ) "Module current" type: Real 4: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 5: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 6: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 7: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 8: mpTracker.vRef:DISCRETE(flow=false start = mpTracker.VmpRef unit = "V" fixed = true ) "Reference DC voltage" type: Real 9: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 10: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001333/0.1736, allocations: 0.6374 MB / 0.506 GB, free: 3.18 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704 could not be translated