Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_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_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02514/0.02514, allocations: 5.399 MB / 21.71 MB, free: 1.391 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.0009208/0.0009209, allocations: 110.5 kB / 23.7 MB, free: 0.9492 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.001176/0.001176, allocations: 198.8 kB / 25.83 MB, free: 4.68 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.28/1.28, 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.009392/0.009392, allocations: 2.331 MB / 304.4 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 95.84 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08224, allocations: 51.21 MB / 471.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008652/0.09092, allocations: 6.896 MB / 478.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006411/0.09736, allocations: 4.021 MB / 482.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008512/0.09823, allocations: 16 kB / 482.5 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003047/0.1013, allocations: 1.178 MB / 483.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002448/0.1038, allocations: 0.8891 MB / 484.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.1056, allocations: 0.5979 MB / 485.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.1072, allocations: 1.421 MB / 486.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001708/0.1089, allocations: 1.013 MB / 487.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009932/0.1099, allocations: 0.5643 MB / 488.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008264/0.1107, allocations: 0.6885 MB / 488.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.1109, allocations: 140 kB / 489 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007763/0.1117, allocations: 431.7 kB / 489.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002696/0.112, allocations: 298.8 kB / 489.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005502/0.1126, allocations: 0.6336 MB / 490.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.1144, allocations: 1.76 MB / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1144, allocations: 0 / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1144, allocations: 0 / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1145, allocations: 4 kB / 492.1 MB, free: 14.62 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004246/0.1187, allocations: 1.787 MB / 493.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1188, allocations: 12.03 kB / 493.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002255/0.121, allocations: 387 kB / 494.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.1229, allocations: 0.8165 MB / 495.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.154e-05/0.123, allocations: 74 kB / 495.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.1232, allocations: 108 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.1252, allocations: 1.134 MB / 496.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.1252, allocations: 7.906 kB / 496.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.1254, allocations: 44 kB / 496.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.1254, allocations: 24 kB / 496.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.1274, allocations: 0.9408 MB / 497.4 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006083/0.1335, allocations: 4.299 MB / 0.4899 GB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.1362, allocations: 1.674 MB / 0.4916 GB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006918/0.1369, allocations: 312 kB / 0.4919 GB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.549e-05/0.137, allocations: 93.55 kB / 0.4919 GB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000854/0.1379, allocations: 466.5 kB / 0.4924 GB, free: 1.824 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.1379, allocations: 0 / 0.4924 GB, free: 1.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006288/0.1442, allocations: 1.548 MB / 0.4939 GB, free: 240 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.1444, allocations: 277.6 kB / 0.4942 GB, free: 15.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008617/0.1452, allocations: 0.6682 MB / 0.4948 GB, free: 15.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.1453, allocations: 45.7 kB / 0.4949 GB, free: 15.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.1457, allocations: 0.514 MB / 0.4954 GB, free: 14.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.1459, allocations: 213.1 kB / 0.4956 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.1461, allocations: 186.4 kB / 0.4957 GB, free: 14.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1463, allocations: 390.8 kB / 0.4961 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006522/0.147, allocations: 285.8 kB / 0.4964 GB, free: 13.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008064/0.1478, allocations: 0.5402 MB / 0.4969 GB, free: 12.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.1493, allocations: 0.9099 MB / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1493, allocations: 0 / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002254/0.1516, allocations: 1.071 MB / 0.4989 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.941e-05/0.1516, allocations: 67.41 kB / 0.4989 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1516, allocations: 8 kB / 0.4989 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006677/0.1523, allocations: 85.06 kB / 0.499 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009999/0.1533, allocations: 219.7 kB / 0.4992 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.1549, allocations: 1.57 MB / 0.5007 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008055/0.1557, allocations: 130.9 kB / 0.5009 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.045e-05/0.1558, allocations: 43.98 kB / 0.5009 GB, free: 8.527 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.000459/0.1562, allocations: 331.9 kB / 0.5012 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.1564, allocations: 83.06 kB / 0.5013 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.1585, allocations: 0.9167 MB / 0.5022 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.1585, allocations: 8 kB / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1585, allocations: 0 / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.1588, allocations: 215.9 kB / 0.5024 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.1589, allocations: 20 kB / 0.5024 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.1595, allocations: 47.95 kB / 0.5025 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.273e-05/0.1596, allocations: 48.48 kB / 0.5025 GB, free: 6.805 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); $whenCondition2 := pre($whenCondition2); mpTracker.sampleTrigger := pre(mpTracker.sampleTrigger); mpTracker.sampleTrigger := sample(1, mpTracker.startTime, mpTracker.samplePeriod); $whenCondition2 := mpTracker.sampleTrigger; when $whenCondition2 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.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 5: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 6: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 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.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 10: $whenCondition2:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable [/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.001335/0.161, allocations: 0.7195 MB / 0.5032 GB, free: 6.051 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808 could not be translated