Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02829/0.02829, allocations: 5.398 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.001075/0.001075, allocations: 108.9 kB / 23.7 MB, free: 0.9336 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.00131/0.00131, allocations: 204.6 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.319/1.319, allocations: 222.9 MB / 250.7 MB, free: 8.445 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009747/0.009747, allocations: 2.319 MB / 304.4 MB, free: 6.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 88.28 kB / 420.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.09133, allocations: 51.22 MB / 471.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808): time 0.008493/0.09986, allocations: 6.835 MB / 478.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006819/0.1067, allocations: 3.947 MB / 482.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008882/0.1076, allocations: 23.94 kB / 482.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.1106, allocations: 1.158 MB / 483.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.1129, allocations: 0.8545 MB / 484.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001715/0.1147, allocations: 0.5541 MB / 484.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.1164, allocations: 1.409 MB / 486.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.1179, allocations: 1.021 MB / 487.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007757/0.1186, allocations: 0.5604 MB / 487.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007827/0.1194, allocations: 0.6848 MB / 488.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.1196, allocations: 148 kB / 488.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008163/0.1205, allocations: 435.6 kB / 489.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.1207, allocations: 310.9 kB / 489.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005651/0.1213, allocations: 0.6375 MB / 490.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.1232, allocations: 1.803 MB / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1232, allocations: 0 / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1232, allocations: 0 / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.1232, allocations: 0 / 491.9 MB, free: 14.8 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.004056/0.1273, allocations: 1.81 MB / 493.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1274, allocations: 8.031 kB / 493.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.1295, allocations: 375.2 kB / 494.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.1313, allocations: 0.8399 MB / 494.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.533e-05/0.1314, allocations: 78.08 kB / 495 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.1316, allocations: 108 kB / 495.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.1336, allocations: 1.161 MB / 496.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.1336, allocations: 4 kB / 496.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.1337, allocations: 47.98 kB / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.1338, allocations: 24 kB / 496.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.1359, allocations: 1.066 MB / 497.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006094/0.142, allocations: 4.353 MB / 0.49 GB, free: 4.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002825/0.1449, allocations: 1.736 MB / 0.4917 GB, free: 2.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006625/0.1455, allocations: 319.3 kB / 0.492 GB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.1457, allocations: 105.6 kB / 0.4921 GB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/0.1465, allocations: 465.7 kB / 0.4926 GB, free: 1.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.705e-06/0.1465, allocations: 0 / 0.4926 GB, free: 1.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006243/0.1527, allocations: 1.584 MB / 0.4941 GB, free: 76 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.1529, allocations: 230.2 kB / 0.4943 GB, free: 15.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008479/0.1537, allocations: 0.6447 MB / 0.4949 GB, free: 15.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.664e-05/0.1538, allocations: 45.7 kB / 0.495 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000358/0.1542, allocations: 0.5257 MB / 0.4955 GB, free: 14.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.1544, allocations: 224.8 kB / 0.4957 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.1547, allocations: 190.4 kB / 0.4959 GB, free: 14.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1548, allocations: 390.7 kB / 0.4963 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006679/0.1555, allocations: 297.8 kB / 0.4966 GB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008433/0.1564, allocations: 0.5387 MB / 0.4971 GB, free: 12.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.1579, allocations: 0.9399 MB / 0.498 GB, free: 11.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1579, allocations: 0 / 0.498 GB, free: 11.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002215/0.1601, allocations: 1.114 MB / 0.4991 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.675e-05/0.1602, allocations: 63.39 kB / 0.4991 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1602, allocations: 8.281 kB / 0.4992 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.1607, allocations: 84.8 kB / 0.4992 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009069/0.1616, allocations: 227.6 kB / 0.4995 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.1632, allocations: 1.585 MB / 0.501 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007388/0.164, allocations: 107 kB / 0.5011 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.164, allocations: 47.97 kB / 0.5012 GB, free: 8.348 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.0004352/0.1645, allocations: 343.2 kB / 0.5015 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1646, allocations: 87 kB / 0.5016 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.1668, allocations: 1.011 MB / 0.5025 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.1668, allocations: 0 / 0.5025 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1668, allocations: 0 / 0.5025 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.1671, allocations: 223.9 kB / 0.5028 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.1673, allocations: 24 kB / 0.5028 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.1678, allocations: 51.91 kB / 0.5028 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.1679, allocations: 40.5 kB / 0.5029 GB, free: 6.512 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.001353/0.1693, allocations: 0.6486 MB / 0.5035 GB, free: 5.824 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808 could not be translated