Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02625/0.02625, allocations: 5.403 MB / 21.71 MB, free: 1.336 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.001042/0.001042, allocations: 108.9 kB / 23.7 MB, free: 0.9727 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.00112/0.00112, allocations: 194.6 kB / 25.84 MB, free: 4.621 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.32/1.32, allocations: 222.9 MB / 250.7 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009737/0.009737, allocations: 2.321 MB / 304.4 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 99.84 kB / 420.3 MB, free: 22.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08323/0.085, allocations: 51.2 MB / 471.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.008134/0.09317, allocations: 6.892 MB / 478.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005825/0.09902, allocations: 4.021 MB / 482.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000471/0.09951, allocations: 23.94 kB / 482.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002572/0.1021, allocations: 1.19 MB / 483.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001743/0.1038, allocations: 0.9009 MB / 484.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.1055, allocations: 0.6032 MB / 485.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.1068, allocations: 1.421 MB / 486.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.1082, allocations: 1.017 MB / 487.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000629/0.1088, allocations: 0.5604 MB / 488.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000852/0.1097, allocations: 0.6885 MB / 488.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.1099, allocations: 136 kB / 489 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007683/0.1106, allocations: 431.7 kB / 489.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.1109, allocations: 302.8 kB / 489.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005517/0.1115, allocations: 0.6336 MB / 490.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001808/0.1133, allocations: 1.767 MB / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1133, allocations: 3.938 kB / 492.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1133, allocations: 4 kB / 492.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.1133, allocations: 0 / 492.1 MB, free: 14.56 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.003847/0.1172, allocations: 1.831 MB / 493.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1172, allocations: 8.031 kB / 493.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002183/0.1194, allocations: 387.8 kB / 494.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.1212, allocations: 0.8248 MB / 495.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.427e-05/0.1213, allocations: 74 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.1214, allocations: 104 kB / 495.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.1234, allocations: 1.138 MB / 496.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.983e-05/0.1235, allocations: 4 kB / 496.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.684e-05/0.1236, allocations: 40 kB / 496.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.1236, allocations: 28 kB / 496.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.1256, allocations: 0.9447 MB / 497.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006001/0.1317, allocations: 4.311 MB / 0.49 GB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.1343, allocations: 1.674 MB / 0.4917 GB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006926/0.135, allocations: 312 kB / 0.492 GB, free: 2.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.222e-05/0.1351, allocations: 89.55 kB / 0.492 GB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008836/0.136, allocations: 466.5 kB / 0.4925 GB, free: 1.703 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.465e-06/0.136, allocations: 0 / 0.4925 GB, free: 1.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006101/0.1421, allocations: 1.545 MB / 0.494 GB, free: 120 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.1423, allocations: 281.6 kB / 0.4943 GB, free: 15.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000888/0.1432, allocations: 0.6682 MB / 0.4949 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.1432, allocations: 37.7 kB / 0.495 GB, free: 15.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003892/0.1436, allocations: 0.5272 MB / 0.4955 GB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.1438, allocations: 226.2 kB / 0.4957 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002964/0.1441, allocations: 186.5 kB / 0.4959 GB, free: 14.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1443, allocations: 394.8 kB / 0.4962 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007048/0.145, allocations: 281.8 kB / 0.4965 GB, free: 13.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008744/0.1459, allocations: 0.5402 MB / 0.497 GB, free: 12.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.1475, allocations: 0.9099 MB / 0.4979 GB, free: 11.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/0.1475, allocations: 4 kB / 0.4979 GB, free: 11.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002405/0.15, allocations: 1.079 MB / 0.499 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.196e-05/0.15, allocations: 66.06 kB / 0.499 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1501, allocations: 4 kB / 0.4991 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005662/0.1506, allocations: 93.06 kB / 0.4991 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009198/0.1516, allocations: 211.7 kB / 0.4993 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.1532, allocations: 1.586 MB / 0.5009 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007902/0.154, allocations: 115.3 kB / 0.501 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/0.1541, allocations: 43.98 kB / 0.501 GB, free: 8.387 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.0004851/0.1546, allocations: 335.5 kB / 0.5014 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1548, allocations: 91.5 kB / 0.5014 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.1569, allocations: 0.9206 MB / 0.5023 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.1569, allocations: 3.984 kB / 0.5024 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.405e-05/0.1569, allocations: 4 kB / 0.5024 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.1573, allocations: 224.4 kB / 0.5026 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.1574, allocations: 16 kB / 0.5026 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.158, allocations: 51.95 kB / 0.5026 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.1581, allocations: 40.52 kB / 0.5027 GB, free: 6.648 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.00136/0.1595, allocations: 0.7199 MB / 0.5034 GB, free: 5.895 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704 could not be translated