Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.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_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629") translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03372/0.03372, allocations: 5.398 MB / 21.71 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.001133/0.001133, allocations: 104.4 kB / 23.7 MB, free: 0.957 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.001245/0.001245, allocations: 196.8 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.375/1.375, allocations: 222.9 MB / 250.7 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009564/0.009564, allocations: 2.316 MB / 304.4 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 95.84 kB / 420.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08826, allocations: 51.21 MB / 471.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.008195/0.09649, allocations: 6.862 MB / 478.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006326/0.1029, allocations: 3.935 MB / 482.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006073/0.1035, allocations: 20 kB / 482.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002587/0.1061, allocations: 1.182 MB / 483.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001822/0.108, allocations: 0.874 MB / 484.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.1095, allocations: 0.5398 MB / 484.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.1109, allocations: 1.413 MB / 486.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.1123, allocations: 1.021 MB / 487.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006026/0.1129, allocations: 0.5565 MB / 487.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007574/0.1137, allocations: 0.6926 MB / 488.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.1138, allocations: 140 kB / 488.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007676/0.1146, allocations: 435.7 kB / 489.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002511/0.1149, allocations: 314.9 kB / 489.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005301/0.1154, allocations: 0.6336 MB / 490.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001717/0.1171, allocations: 1.799 MB / 491.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1172, allocations: 0 / 491.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1172, allocations: 0 / 491.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.1172, allocations: 3.938 kB / 491.9 MB, free: 14.77 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.003977/0.1212, allocations: 1.814 MB / 493.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1212, allocations: 8.031 kB / 493.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002172/0.1234, allocations: 375.2 kB / 494.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.1252, allocations: 0.8399 MB / 495 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.454e-05/0.1252, allocations: 78.08 kB / 495 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.1254, allocations: 108 kB / 495.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.1275, allocations: 1.173 MB / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.1275, allocations: 0 / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.1276, allocations: 44 kB / 496.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.1277, allocations: 24 kB / 496.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.1297, allocations: 1.073 MB / 497.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006003/0.1358, allocations: 4.333 MB / 0.49 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002626/0.1384, allocations: 1.74 MB / 0.4917 GB, free: 2.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006514/0.1391, allocations: 325.3 kB / 0.492 GB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.1392, allocations: 101.6 kB / 0.4921 GB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000837/0.14, allocations: 461.7 kB / 0.4926 GB, free: 1.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.056e-06/0.14, allocations: 0 / 0.4926 GB, free: 1.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005842/0.1459, allocations: 1.596 MB / 0.4941 GB, free: 32 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.146, allocations: 226.2 kB / 0.4944 GB, free: 15.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007951/0.1468, allocations: 0.6486 MB / 0.495 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-05/0.1469, allocations: 41.7 kB / 0.495 GB, free: 15.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.1473, allocations: 0.5218 MB / 0.4955 GB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.1474, allocations: 224.8 kB / 0.4957 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.1477, allocations: 186.4 kB / 0.4959 GB, free: 14.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1479, allocations: 398.7 kB / 0.4963 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006512/0.1486, allocations: 297.8 kB / 0.4966 GB, free: 13.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008041/0.1494, allocations: 0.5309 MB / 0.4971 GB, free: 12.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.1509, allocations: 0.9399 MB / 0.498 GB, free: 11.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1509, allocations: 0 / 0.498 GB, free: 11.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002219/0.1531, allocations: 1.121 MB / 0.4991 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.1532, allocations: 65.73 kB / 0.4992 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.1532, allocations: 8 kB / 0.4992 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004754/0.1537, allocations: 93.05 kB / 0.4993 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008823/0.1546, allocations: 227.6 kB / 0.4995 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.1561, allocations: 1.578 MB / 0.501 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007463/0.1568, allocations: 111.2 kB / 0.5011 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/0.1569, allocations: 43.97 kB / 0.5012 GB, free: 8.309 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.000493/0.1574, allocations: 343.2 kB / 0.5015 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1576, allocations: 83.09 kB / 0.5016 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.1597, allocations: 1.007 MB / 0.5026 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1597, allocations: 4 kB / 0.5026 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1597, allocations: 3.984 kB / 0.5026 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.16, allocations: 227.9 kB / 0.5028 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.1601, allocations: 16 kB / 0.5028 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005354/0.1607, allocations: 51.91 kB / 0.5029 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.992e-05/0.1608, allocations: 44.5 kB / 0.5029 GB, free: 6.473 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.0013/0.1621, allocations: 0.6487 MB / 0.5035 GB, free: 5.785 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629 could not be translated