Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.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_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02555/0.02555, allocations: 5.401 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.0009775/0.0009776, allocations: 110.7 kB / 23.71 MB, free: 0.9805 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.001109/0.001109, allocations: 194.8 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.349/1.349, allocations: 222.9 MB / 250.7 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.0102/0.0102, allocations: 2.323 MB / 304.4 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 96.23 kB / 420.3 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08714, allocations: 51.2 MB / 471.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.009009/0.09619, allocations: 6.9 MB / 478.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006901/0.1031, allocations: 4.021 MB / 482.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009729/0.1041, allocations: 19.94 kB / 482.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003161/0.1073, allocations: 1.194 MB / 483.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.1098, allocations: 0.8896 MB / 484.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.112, allocations: 0.6113 MB / 485.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002102/0.1141, allocations: 1.417 MB / 486.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.116, allocations: 1.013 MB / 487.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000947/0.1169, allocations: 0.5643 MB / 488.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.1181, allocations: 0.6868 MB / 488.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.1184, allocations: 140 kB / 489 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.1195, allocations: 431.7 kB / 489.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.1199, allocations: 306.8 kB / 489.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009063/0.1208, allocations: 0.6258 MB / 490.3 MB, free: 368 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002578/0.1234, allocations: 1.767 MB / 492.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1234, allocations: 0 / 492.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1234, allocations: 0 / 492.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.562e-05/0.1235, allocations: 0 / 492.1 MB, free: 14.59 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.004463/0.1279, allocations: 1.839 MB / 493.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.128, allocations: 8.031 kB / 493.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.1302, allocations: 383.8 kB / 494.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.132, allocations: 0.8248 MB / 495.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.1321, allocations: 78 kB / 495.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.1322, allocations: 100 kB / 495.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1342, allocations: 1.138 MB / 496.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.1343, allocations: 0 / 496.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.1344, allocations: 47.98 kB / 496.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.1344, allocations: 24 kB / 496.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.1365, allocations: 0.9447 MB / 497.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006012/0.1425, allocations: 4.315 MB / 0.49 GB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.1451, allocations: 1.666 MB / 0.4917 GB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.1458, allocations: 320.6 kB / 0.492 GB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00011/0.1459, allocations: 93.52 kB / 0.492 GB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008887/0.1468, allocations: 462.6 kB / 0.4925 GB, free: 1.727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.855e-06/0.1469, allocations: 0 / 0.4925 GB, free: 1.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006128/0.153, allocations: 1.553 MB / 0.494 GB, free: 136 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.1532, allocations: 281.5 kB / 0.4943 GB, free: 15.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/0.154, allocations: 0.6721 MB / 0.4949 GB, free: 15.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.998e-05/0.1541, allocations: 37.7 kB / 0.495 GB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.1545, allocations: 0.5194 MB / 0.4955 GB, free: 14.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.1547, allocations: 230.2 kB / 0.4957 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002888/0.155, allocations: 186.5 kB / 0.4959 GB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.1552, allocations: 386.8 kB / 0.4962 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006627/0.1558, allocations: 285.8 kB / 0.4965 GB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008566/0.1567, allocations: 0.5363 MB / 0.497 GB, free: 12.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.1582, allocations: 0.9179 MB / 0.4979 GB, free: 11.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/0.1582, allocations: 8 kB / 0.4979 GB, free: 11.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002234/0.1605, allocations: 1.079 MB / 0.499 GB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.1605, allocations: 59.41 kB / 0.499 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.1605, allocations: 8.281 kB / 0.4991 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.161, allocations: 84.78 kB / 0.4991 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009083/0.162, allocations: 215.7 kB / 0.4993 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.1635, allocations: 1.582 MB / 0.5009 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007738/0.1643, allocations: 115.3 kB / 0.501 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.616e-05/0.1644, allocations: 47.92 kB / 0.501 GB, free: 8.402 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.0004451/0.1648, allocations: 335.6 kB / 0.5014 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.165, allocations: 91.44 kB / 0.5015 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.1669, allocations: 0.9207 MB / 0.5024 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.167, allocations: 3.984 kB / 0.5024 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.167, allocations: 0 / 0.5024 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.1673, allocations: 224.4 kB / 0.5026 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.1674, allocations: 16 kB / 0.5026 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005388/0.1679, allocations: 47.97 kB / 0.5026 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.806e-05/0.168, allocations: 40.5 kB / 0.5027 GB, free: 6.672 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.001283/0.1693, allocations: 0.7228 MB / 0.5034 GB, free: 5.91 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004 could not be translated