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.03936/0.03936, 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.001062/0.001062, allocations: 106.8 kB / 23.71 MB, free: 0.957 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.00111/0.00111, allocations: 191.1 kB / 25.83 MB, free: 4.648 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.294/1.294, allocations: 222.9 MB / 250.7 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009416/0.009416, allocations: 2.32 MB / 304.4 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 95.83 kB / 420.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07611/0.0779, allocations: 51.21 MB / 471.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.00774/0.08566, allocations: 6.78 MB / 478.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00511/0.0908, allocations: 3.135 MB / 481.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007372/0.09156, allocations: 16 kB / 481.4 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.09416, allocations: 1.1 MB / 482.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.09601, allocations: 0.8429 MB / 483.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.09746, allocations: 0.5353 MB / 483.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001308/0.09878, allocations: 1.382 MB / 485.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.1002, allocations: 1.036 MB / 486.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005983/0.1008, allocations: 0.5527 MB / 486.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008194/0.1016, allocations: 0.7237 MB / 487.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.1018, allocations: 144 kB / 487.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000727/0.1026, allocations: 427.7 kB / 488.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.1028, allocations: 287 kB / 488.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.1034, allocations: 0.6376 MB / 489.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.1051, allocations: 1.756 MB / 490.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1051, allocations: 0 / 490.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1051, allocations: 0 / 490.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1051, allocations: 0 / 490.9 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.004132/0.1093, allocations: 1.767 MB / 492.6 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1093, allocations: 12.03 kB / 492.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/0.1114, allocations: 371.3 kB / 493 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/0.1131, allocations: 0.76 MB / 493.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.311e-05/0.1132, allocations: 86 kB / 493.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.1133, allocations: 108 kB / 493.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002045/0.1154, allocations: 1.172 MB / 495.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.1154, allocations: 3.906 kB / 495.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.1155, allocations: 47.98 kB / 495.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.1156, allocations: 28 kB / 495.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002201/0.1178, allocations: 1.034 MB / 496.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006013/0.1238, allocations: 4.361 MB / 0.4889 GB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.1267, allocations: 1.776 MB / 0.4906 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.1275, allocations: 366.1 kB / 0.4909 GB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001554/0.1277, allocations: 178.8 kB / 0.4911 GB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009585/0.1287, allocations: 0.5513 MB / 0.4916 GB, free: 2.574 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.015e-06/0.1287, allocations: 3.938 kB / 0.4917 GB, free: 2.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.00671/0.1354, allocations: 1.694 MB / 0.4933 GB, free: 0.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.1355, allocations: 285.6 kB / 0.4936 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006807/0.1362, allocations: 0.5614 MB / 0.4941 GB, free: 15.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.634e-05/0.1363, allocations: 45.69 kB / 0.4942 GB, free: 15.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.1366, allocations: 490.5 kB / 0.4946 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.1369, allocations: 256.4 kB / 0.4949 GB, free: 15.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.1372, allocations: 214.7 kB / 0.4951 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1373, allocations: 382.8 kB / 0.4955 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000821/0.1382, allocations: 326.4 kB / 0.4958 GB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000942/0.1391, allocations: 0.5682 MB / 0.4963 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.01924/0.1584, allocations: 3.619 MB / 0.4999 GB, free: 9.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.1584, allocations: 4 kB / 0.4999 GB, free: 9.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002757/0.1612, allocations: 1.209 MB / 0.501 GB, free: 8.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.709e-05/0.1613, allocations: 93.11 kB / 0.5011 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.1613, allocations: 8 kB / 0.5011 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004888/0.1618, allocations: 80.78 kB / 0.5012 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.1629, allocations: 263.6 kB / 0.5015 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.1645, allocations: 1.578 MB / 0.503 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009551/0.1655, allocations: 123 kB / 0.5031 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.1656, allocations: 51.97 kB / 0.5032 GB, free: 6.172 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.0005795/0.1662, allocations: 373.2 kB / 0.5035 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.1664, allocations: 71.16 kB / 0.5036 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.169, allocations: 1.261 MB / 0.5048 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.1691, allocations: 3.984 kB / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1691, allocations: 0 / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000395/0.1695, allocations: 247.8 kB / 0.5051 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.1697, allocations: 24 kB / 0.5051 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007181/0.1704, allocations: 51.95 kB / 0.5051 GB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.1705, allocations: 56.92 kB / 0.5052 GB, free: 4.016 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.001341/0.1719, allocations: 0.6492 MB / 0.5058 GB, free: 3.316 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