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.02532/0.02532, allocations: 5.399 MB / 21.71 MB, free: 1.328 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.001013/0.001013, allocations: 103 kB / 23.71 MB, free: 0.9844 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.001105/0.001105, allocations: 192.5 kB / 25.84 MB, free: 4.613 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.299/1.299, allocations: 222.9 MB / 250.7 MB, free: 8.418 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01105/0.01105, allocations: 2.32 MB / 304.4 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 99.84 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07695/0.07879, allocations: 51.21 MB / 471.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.008065/0.08689, allocations: 6.776 MB / 478.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005236/0.09215, allocations: 3.131 MB / 481.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008085/0.09299, allocations: 20 kB / 481.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.09574, allocations: 1.116 MB / 482.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002153/0.09791, allocations: 0.8585 MB / 483.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001698/0.09962, allocations: 0.5251 MB / 484 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.1014, allocations: 1.386 MB / 485.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.1029, allocations: 1.028 MB / 486.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008084/0.1037, allocations: 0.5605 MB / 486.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.1048, allocations: 0.7159 MB / 487.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002999/0.1051, allocations: 144 kB / 487.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008993/0.106, allocations: 439.7 kB / 488.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.1063, allocations: 283 kB / 488.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007742/0.1071, allocations: 0.6337 MB / 489.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.1092, allocations: 1.759 MB / 490.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1092, allocations: 3.938 kB / 490.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1092, allocations: 0 / 490.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.668e-05/0.1093, allocations: 4 kB / 490.9 MB, free: 15.79 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.004533/0.1138, allocations: 1.796 MB / 492.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1139, allocations: 12.03 kB / 492.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002222/0.1161, allocations: 379.9 kB / 493.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.1178, allocations: 0.7683 MB / 493.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.807e-05/0.1179, allocations: 82.06 kB / 493.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.1181, allocations: 108 kB / 494 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.1203, allocations: 1.176 MB / 495.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.432e-05/0.1204, allocations: 4 kB / 495.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.1205, allocations: 48 kB / 495.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/0.1205, allocations: 27.98 kB / 495.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.1228, allocations: 1.034 MB / 496.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006163/0.129, allocations: 4.377 MB / 0.489 GB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.1319, allocations: 1.772 MB / 0.4907 GB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007653/0.1326, allocations: 359.3 kB / 0.491 GB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001543/0.1328, allocations: 178.8 kB / 0.4912 GB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00093/0.1337, allocations: 0.5513 MB / 0.4917 GB, free: 2.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.885e-06/0.1338, allocations: 0 / 0.4917 GB, free: 2.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006302/0.1401, allocations: 1.714 MB / 0.4934 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.1402, allocations: 277.7 kB / 0.4937 GB, free: 392 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006987/0.1409, allocations: 0.5537 MB / 0.4942 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.141, allocations: 45.69 kB / 0.4943 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.1413, allocations: 0.4922 MB / 0.4947 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.1416, allocations: 273.8 kB / 0.495 GB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003187/0.1419, allocations: 214.8 kB / 0.4952 GB, free: 14.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1421, allocations: 382.8 kB / 0.4956 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007946/0.1429, allocations: 326.4 kB / 0.4959 GB, free: 14.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000942/0.1438, allocations: 0.5682 MB / 0.4964 GB, free: 13.42 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.0187/0.1625, allocations: 3.627 MB / 0.5 GB, free: 9.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.1626, allocations: 4 kB / 0.5 GB, free: 9.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002602/0.1652, allocations: 1.21 MB / 0.5012 GB, free: 8.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.354e-05/0.1652, allocations: 91.45 kB / 0.5013 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.1653, allocations: 8 kB / 0.5013 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004641/0.1657, allocations: 85.03 kB / 0.5013 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.1669, allocations: 259.5 kB / 0.5016 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.1684, allocations: 1.585 MB / 0.5031 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009164/0.1694, allocations: 119.3 kB / 0.5033 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-05/0.1695, allocations: 47.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.0005253/0.17, allocations: 381.2 kB / 0.5037 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.1702, allocations: 83.48 kB / 0.5037 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.1729, allocations: 1.253 MB / 0.505 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.1729, allocations: 7.984 kB / 0.505 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.173, allocations: 0 / 0.505 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.1733, allocations: 236.3 kB / 0.5052 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.1734, allocations: 35.83 kB / 0.5052 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000673/0.1741, allocations: 55.95 kB / 0.5053 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.1743, allocations: 56.92 kB / 0.5053 GB, free: 3.863 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.00136/0.1757, allocations: 0.6377 MB / 0.506 GB, free: 3.176 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 could not be translated