Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02615/0.02615, allocations: 5.401 MB / 21.71 MB, free: 1.363 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.001111/0.001111, allocations: 107.5 kB / 23.71 MB, free: 0.9609 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.001267/0.001267, allocations: 186.4 kB / 25.83 MB, free: 4.652 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.317/1.317, allocations: 222.9 MB / 250.7 MB, free: 8.441 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01114/0.01114, allocations: 2.327 MB / 304.4 MB, free: 6.508 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 95.86 kB / 420.3 MB, free: 22.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07591/0.07765, allocations: 51.2 MB / 471.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.007388/0.08506, allocations: 6.78 MB / 478.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004918/0.09001, allocations: 3.135 MB / 481.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005266/0.09056, allocations: 19.94 kB / 481.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002408/0.09298, allocations: 1.104 MB / 482.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0017/0.09469, allocations: 0.8468 MB / 483.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.09611, allocations: 0.5288 MB / 483.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.09753, allocations: 1.386 MB / 485.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.09892, allocations: 1.024 MB / 486.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006356/0.09957, allocations: 0.5566 MB / 486.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007874/0.1004, allocations: 0.7159 MB / 487.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.1006, allocations: 144 kB / 487.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007937/0.1014, allocations: 435.7 kB / 488.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.1016, allocations: 287 kB / 488.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000546/0.1021, allocations: 0.6298 MB / 489.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001746/0.1039, allocations: 1.752 MB / 490.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1039, allocations: 0 / 490.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1039, allocations: 0 / 490.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.1039, allocations: 3.938 kB / 490.8 MB, free: 15.88 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.004149/0.1081, allocations: 1.779 MB / 492.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1081, allocations: 8.031 kB / 492.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002119/0.1103, allocations: 371.2 kB / 493 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.112, allocations: 0.7601 MB / 493.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.451e-05/0.1121, allocations: 82.06 kB / 493.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.1122, allocations: 108 kB / 493.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.1143, allocations: 1.175 MB / 495.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.1144, allocations: 11.91 kB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.1145, allocations: 44 kB / 495.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.1145, allocations: 24 kB / 495.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.1167, allocations: 1.045 MB / 496.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006105/0.1228, allocations: 4.357 MB / 0.4889 GB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.1257, allocations: 1.766 MB / 0.4906 GB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/0.1265, allocations: 366.5 kB / 0.4909 GB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000167/0.1267, allocations: 182.6 kB / 0.4911 GB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009697/0.1276, allocations: 0.5475 MB / 0.4916 GB, free: 2.605 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.725e-06/0.1277, allocations: 0 / 0.4916 GB, free: 2.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006341/0.134, allocations: 1.706 MB / 0.4933 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.1341, allocations: 277.7 kB / 0.4936 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006724/0.1348, allocations: 0.5614 MB / 0.4941 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.1349, allocations: 37.7 kB / 0.4942 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.1352, allocations: 494.5 kB / 0.4946 GB, free: 15.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.1354, allocations: 256.5 kB / 0.4949 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.1357, allocations: 218.7 kB / 0.4951 GB, free: 14.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1359, allocations: 382.8 kB / 0.4955 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007481/0.1367, allocations: 322.4 kB / 0.4958 GB, free: 14.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008931/0.1376, allocations: 0.5682 MB / 0.4963 GB, free: 13.58 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.01871/0.1563, allocations: 3.623 MB / 0.4999 GB, free: 9.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.1563, allocations: 8 kB / 0.4999 GB, free: 9.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0026/0.1589, allocations: 1.201 MB / 0.501 GB, free: 8.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/0.159, allocations: 93.09 kB / 0.5011 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.159, allocations: 12 kB / 0.5011 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004851/0.1595, allocations: 93.02 kB / 0.5012 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.1607, allocations: 255.5 kB / 0.5015 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001562/0.1623, allocations: 1.582 MB / 0.503 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009333/0.1632, allocations: 118.9 kB / 0.5031 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.1633, allocations: 51.95 kB / 0.5032 GB, free: 6.199 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.0005327/0.1638, allocations: 373.2 kB / 0.5035 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.164, allocations: 75.16 kB / 0.5036 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.1666, allocations: 1.261 MB / 0.5048 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.1666, allocations: 7.984 kB / 0.5048 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1666, allocations: 3.984 kB / 0.5048 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.167, allocations: 231.9 kB / 0.5051 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.1671, allocations: 24 kB / 0.5051 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006562/0.1677, allocations: 51.97 kB / 0.5051 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.1679, allocations: 64.91 kB / 0.5052 GB, free: 4.039 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 / (72.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNeg then plant.diode.Ids * (exp(mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt)) - 1.0) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VBv then plant.diode.Ids * mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * 0.025692579332761666) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (72.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) / (72.0 * /*Real*/(plant.diode.nsModule)) - plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt)) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else plant.diode.Ids * mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt) - plant.diode.Ibv * exp(0.6388888888888888 / (plant.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) + plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt) - 0.6388888888888888 / (plant.diode.m * 0.025692579332761666)) + mpTracker.vRef / (7.2e9 * /*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.001299/0.1692, allocations: 0.6454 MB / 0.5058 GB, free: 3.344 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629 could not be translated