Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004") translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04142/0.04142, allocations: 5.394 MB / 21.7 MB, free: 1.367 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.00149/0.00149, allocations: 113.5 kB / 23.71 MB, free: 0.9141 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.001772/0.001772, allocations: 189 kB / 25.83 MB, free: 4.645 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.348/1.348, allocations: 222.9 MB / 250.7 MB, free: 8.441 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009362/0.009362, allocations: 2.321 MB / 304.4 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 103.8 kB / 423.9 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08542/0.08735, allocations: 51.2 MB / 475.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.008385/0.09577, allocations: 6.855 MB / 481.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006442/0.1022, allocations: 3.943 MB / 485.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009817/0.1032, allocations: 23.94 kB / 485.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003049/0.1063, allocations: 1.174 MB / 487 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002377/0.1087, allocations: 0.8701 MB / 487.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.1108, allocations: 0.55 MB / 488.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001883/0.1126, allocations: 1.417 MB / 489.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.1143, allocations: 1.009 MB / 490.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008958/0.1152, allocations: 0.5643 MB / 491.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/0.1164, allocations: 0.6847 MB / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.1167, allocations: 144 kB / 492.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008851/0.1175, allocations: 439.6 kB / 492.7 MB, free: 14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002617/0.1178, allocations: 307 kB / 493 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005859/0.1184, allocations: 0.6414 MB / 493.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001953/0.1204, allocations: 1.817 MB / 495.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1204, allocations: 3.984 kB / 495.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1204, allocations: 0 / 495.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.1204, allocations: 0 / 495.5 MB, free: 11.23 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003995/0.1244, allocations: 1.843 MB / 497.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1245, allocations: 8.031 kB / 497.3 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002183/0.1266, allocations: 387.8 kB / 497.7 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.1284, allocations: 0.8367 MB / 498.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-05/0.1285, allocations: 82.08 kB / 498.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.1287, allocations: 104 kB / 498.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.1308, allocations: 1.169 MB / 499.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/0.1309, allocations: 4 kB / 499.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.131, allocations: 44 kB / 499.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.158e-05/0.131, allocations: 24 kB / 500 MB, free: 6.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.1333, allocations: 1.073 MB / 0.4893 GB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005968/0.1393, allocations: 4.358 MB / 0.4935 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.142, allocations: 1.74 MB / 0.4952 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006843/0.1427, allocations: 325.3 kB / 0.4956 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.1428, allocations: 97.64 kB / 0.4956 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008795/0.1437, allocations: 465.7 kB / 0.4961 GB, free: 14.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.475e-06/0.1437, allocations: 0 / 0.4961 GB, free: 14.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.006142/0.1498, allocations: 1.597 MB / 0.4977 GB, free: 12.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1499, allocations: 222.1 kB / 0.4979 GB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007701/0.1507, allocations: 0.6486 MB / 0.4985 GB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.1508, allocations: 45.73 kB / 0.4985 GB, free: 11.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.1512, allocations: 0.535 MB / 0.4991 GB, free: 10.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.1513, allocations: 246 kB / 0.4993 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.1516, allocations: 186.5 kB / 0.4995 GB, free: 10.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.1518, allocations: 390.7 kB / 0.4998 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006531/0.1525, allocations: 301.8 kB / 0.5001 GB, free: 9.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008674/0.1534, allocations: 0.5348 MB / 0.5007 GB, free: 9.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.1549, allocations: 0.936 MB / 0.5016 GB, free: 8.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.155, allocations: 0 / 0.5016 GB, free: 8.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002249/0.1572, allocations: 1.118 MB / 0.5027 GB, free: 6.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.1573, allocations: 67.67 kB / 0.5027 GB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.1573, allocations: 12 kB / 0.5027 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004972/0.1578, allocations: 80.78 kB / 0.5028 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008832/0.1587, allocations: 219.6 kB / 0.503 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.1603, allocations: 1.593 MB / 0.5046 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007229/0.161, allocations: 115.2 kB / 0.5047 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.1611, allocations: 47.97 kB / 0.5047 GB, free: 4.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.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 (118): * Single equations (assignments): 115 * 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.0004187/0.1615, allocations: 339.2 kB / 0.5051 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1616, allocations: 83.48 kB / 0.5051 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.1638, allocations: 1.007 MB / 0.5061 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.1638, allocations: 3.984 kB / 0.5061 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1638, allocations: 0 / 0.5061 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.1641, allocations: 224.4 kB / 0.5063 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1642, allocations: 24 kB / 0.5064 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005345/0.1648, allocations: 47.91 kB / 0.5064 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.1649, allocations: 44.48 kB / 0.5065 GB, free: 2.84 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 / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNeg then plant.diode.Ids * (exp(mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt)) - 1.0) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VBv then plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * 0.025692579332761666) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.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) / (60.0 * /*Real*/(plant.diode.nsModule)) - plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt)) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt) - plant.diode.Ibv * exp(0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) + plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt) - 0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) + mpTracker.vRef / (6e9 * /*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.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 5: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 6: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 7: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 8: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 9: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 10: mpTracker.vRef:DISCRETE(flow=false start = mpTracker.VmpRef unit = "V" fixed = true ) "Reference DC voltage" type: Real [/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.001293/0.1662, allocations: 0.6449 MB / 0.5071 GB, free: 2.156 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004 could not be translated