Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02618/0.02618, allocations: 5.403 MB / 21.71 MB, free: 1.328 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.001113/0.001113, allocations: 107.8 kB / 23.7 MB, free: 0.9844 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.001307/0.001307, allocations: 194 kB / 25.83 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.336/1.336, allocations: 222.9 MB / 250.7 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009446/0.009446, allocations: 2.319 MB / 304.4 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 95.84 kB / 420.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08334/0.08503, allocations: 51.2 MB / 471.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.00766/0.09271, allocations: 6.862 MB / 478.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005888/0.09863, allocations: 3.939 MB / 482.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000688/0.09934, allocations: 19.94 kB / 482.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.102, allocations: 1.154 MB / 483.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.1039, allocations: 0.8584 MB / 484.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.1055, allocations: 0.548 MB / 484.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001553/0.1071, allocations: 1.417 MB / 486.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.1085, allocations: 1.013 MB / 487.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006299/0.1091, allocations: 0.5565 MB / 487.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007649/0.1099, allocations: 0.6964 MB / 488.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001789/0.1101, allocations: 140 kB / 488.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008108/0.1109, allocations: 439.7 kB / 489.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002416/0.1111, allocations: 310.9 kB / 489.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005492/0.1117, allocations: 0.6413 MB / 490.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00218/0.1139, allocations: 1.799 MB / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1139, allocations: 0 / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1139, allocations: 0 / 491.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.1139, 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.004766/0.1187, allocations: 1.81 MB / 493.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.1188, allocations: 12.03 kB / 493.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/0.1209, allocations: 375.2 kB / 494.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.1228, allocations: 0.8282 MB / 494.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.528e-05/0.1229, allocations: 78.08 kB / 495 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.123, allocations: 108 kB / 495.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.1251, allocations: 1.173 MB / 496.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.1251, allocations: 3.984 kB / 496.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1252, allocations: 48 kB / 496.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.1253, allocations: 24 kB / 496.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.1274, allocations: 1.077 MB / 497.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006123/0.1335, allocations: 4.337 MB / 0.49 GB, free: 4.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/0.1365, allocations: 1.744 MB / 0.4917 GB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007166/0.1372, allocations: 329.3 kB / 0.492 GB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.637e-05/0.1373, allocations: 97.64 kB / 0.4921 GB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008353/0.1382, allocations: 457.8 kB / 0.4925 GB, free: 1.691 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.715e-06/0.1382, allocations: 0 / 0.4925 GB, free: 1.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006303/0.1445, allocations: 1.592 MB / 0.4941 GB, free: 60 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.1447, allocations: 226.1 kB / 0.4943 GB, free: 15.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009108/0.1456, allocations: 0.6486 MB / 0.495 GB, free: 15.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.474e-05/0.1457, allocations: 45.73 kB / 0.495 GB, free: 15.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/0.1461, allocations: 0.5179 MB / 0.4955 GB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.1463, allocations: 236.8 kB / 0.4957 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/0.1466, allocations: 182.4 kB / 0.4959 GB, free: 14.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.1469, allocations: 394.7 kB / 0.4963 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006988/0.1476, allocations: 297.8 kB / 0.4966 GB, free: 13.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008447/0.1484, allocations: 0.5309 MB / 0.4971 GB, free: 12.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.1499, allocations: 0.9438 MB / 0.498 GB, free: 11.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.15, allocations: 4 kB / 0.498 GB, free: 11.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00232/0.1523, allocations: 1.106 MB / 0.4991 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.49e-05/0.1524, allocations: 65.88 kB / 0.4991 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1524, allocations: 15.94 kB / 0.4992 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/0.1529, allocations: 84.78 kB / 0.4992 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008883/0.1538, allocations: 215.7 kB / 0.4995 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.1554, allocations: 1.589 MB / 0.501 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008343/0.1563, allocations: 111 kB / 0.5011 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.1564, allocations: 43.98 kB / 0.5012 GB, free: 8.34 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.0005452/0.1569, allocations: 351.2 kB / 0.5015 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.1571, allocations: 79.06 kB / 0.5016 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.1593, allocations: 1.01 MB / 0.5025 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1593, allocations: 7.922 kB / 0.5026 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1593, allocations: 4 kB / 0.5026 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.1597, allocations: 219.9 kB / 0.5028 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.1598, allocations: 20 kB / 0.5028 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005692/0.1604, allocations: 55.89 kB / 0.5028 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.1605, allocations: 40.5 kB / 0.5029 GB, free: 6.496 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.001344/0.1618, allocations: 0.6371 MB / 0.5035 GB, free: 5.82 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704 could not be translated