Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04015/0.04015, allocations: 5.398 MB / 21.71 MB, free: 1.387 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.0009862/0.0009863, allocations: 109.5 kB / 23.7 MB, free: 0.9336 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.001148/0.001148, allocations: 197.2 kB / 25.83 MB, free: 4.676 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.31/1.31, allocations: 222.9 MB / 250.7 MB, free: 8.445 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009938/0.009938, allocations: 2.323 MB / 304.4 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 91.86 kB / 423.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08857, allocations: 51.21 MB / 475 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.008807/0.09742, allocations: 6.777 MB / 481.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.1031, allocations: 3.123 MB / 484.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009938/0.1041, allocations: 20 kB / 485 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.1072, allocations: 1.104 MB / 486.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002239/0.1094, allocations: 0.8544 MB / 486.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1111, allocations: 0.5238 MB / 487.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.1127, allocations: 1.394 MB / 488.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.1141, allocations: 1.021 MB / 489.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005574/0.1146, allocations: 0.5605 MB / 490.4 MB, free: 300 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000804/0.1155, allocations: 0.7122 MB / 491.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.1157, allocations: 144 kB / 491.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007054/0.1164, allocations: 439.5 kB / 491.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.1166, allocations: 291 kB / 492 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005311/0.1171, allocations: 0.6259 MB / 492.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001651/0.1188, allocations: 1.752 MB / 494.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1188, allocations: 0 / 494.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1188, allocations: 0 / 494.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.1188, allocations: 0 / 494.4 MB, free: 12.34 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.004042/0.1229, allocations: 1.775 MB / 496.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1229, allocations: 15.97 kB / 496.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002119/0.1251, allocations: 371.2 kB / 496.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.1268, allocations: 0.7639 MB / 497.3 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.1268, allocations: 78.06 kB / 497.4 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.127, allocations: 104 kB / 497.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.129, allocations: 1.176 MB / 498.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.1291, allocations: 11.91 kB / 498.6 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.1292, allocations: 44 kB / 498.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.1292, allocations: 24 kB / 498.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.1313, allocations: 1.046 MB / 499.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005962/0.1373, allocations: 4.357 MB / 0.4923 GB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/0.1402, allocations: 1.776 MB / 0.494 GB, free: 224 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.141, allocations: 363.4 kB / 0.4944 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000161/0.1412, allocations: 174.8 kB / 0.4945 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009671/0.1422, allocations: 0.5552 MB / 0.4951 GB, free: 15.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.475e-06/0.1422, allocations: 0 / 0.4951 GB, free: 15.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=79): time 0.006279/0.1484, allocations: 1.705 MB / 0.4968 GB, free: 13.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.1486, allocations: 281.7 kB / 0.497 GB, free: 12.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006146/0.1492, allocations: 0.5498 MB / 0.4976 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/0.1493, allocations: 41.7 kB / 0.4976 GB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.1496, allocations: 494.5 kB / 0.4981 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.1498, allocations: 252.5 kB / 0.4983 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002976/0.1501, allocations: 214.7 kB / 0.4985 GB, free: 11.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1503, allocations: 382.8 kB / 0.4989 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007434/0.151, allocations: 326.4 kB / 0.4992 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009055/0.1519, allocations: 0.5643 MB / 0.4997 GB, free: 10.04 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.01875/0.1707, allocations: 3.627 MB / 0.5033 GB, free: 6.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.1707, allocations: 8 kB / 0.5033 GB, free: 6.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002518/0.1732, allocations: 1.205 MB / 0.5045 GB, free: 5.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.915e-05/0.1733, allocations: 97.09 kB / 0.5046 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1733, allocations: 8 kB / 0.5046 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004815/0.1738, allocations: 80.78 kB / 0.5046 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.175, allocations: 259.8 kB / 0.5049 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001562/0.1765, allocations: 1.578 MB / 0.5064 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008542/0.1774, allocations: 123 kB / 0.5066 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.127e-05/0.1775, allocations: 51.95 kB / 0.5066 GB, free: 2.656 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.0004549/0.178, allocations: 369.3 kB / 0.507 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.1781, allocations: 83.05 kB / 0.507 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/0.1807, allocations: 1.253 MB / 0.5083 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.1807, allocations: 7.984 kB / 0.5083 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.1807, allocations: 3.984 kB / 0.5083 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.181, allocations: 239.9 kB / 0.5085 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.1812, allocations: 24 kB / 0.5085 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.1818, allocations: 51.91 kB / 0.5086 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.182, allocations: 56.92 kB / 0.5086 GB, free: 0.5 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.1894/0.3714, allocations: 0.697 MB / 0.5093 GB, free: 46.8 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 could not be translated