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.03018/0.03018, allocations: 5.4 MB / 21.71 MB, free: 1.363 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.001053/0.001053, allocations: 109 kB / 23.71 MB, free: 0.9531 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: 192 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.327/1.327, allocations: 222.9 MB / 250.7 MB, free: 8.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009357/0.009357, allocations: 2.314 MB / 304.4 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 91.84 kB / 420.3 MB, free: 22.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.08761, allocations: 51.21 MB / 471.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.007642/0.09529, allocations: 6.854 MB / 478.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00586/0.1012, allocations: 3.947 MB / 482.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006051/0.1018, allocations: 20 kB / 482.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.1043, allocations: 1.158 MB / 483.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.106, allocations: 0.8545 MB / 484.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.1075, allocations: 0.55 MB / 484.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.1088, allocations: 1.413 MB / 486.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.11, allocations: 1.013 MB / 487.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005685/0.1106, allocations: 0.5643 MB / 487.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007391/0.1113, allocations: 0.6847 MB / 488.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.1115, allocations: 144 kB / 488.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007281/0.1122, allocations: 439.7 kB / 489.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002451/0.1125, allocations: 314.9 kB / 489.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005327/0.113, allocations: 0.6336 MB / 490.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.1147, allocations: 1.803 MB / 491.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1147, allocations: 0 / 491.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1147, allocations: 0 / 491.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1148, allocations: 0 / 491.9 MB, free: 14.76 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.003872/0.1186, allocations: 1.81 MB / 493.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1187, allocations: 8.031 kB / 493.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/0.1209, allocations: 379.2 kB / 494.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.1227, allocations: 0.8282 MB / 494.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.1228, allocations: 86.02 kB / 495 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.123, allocations: 112 kB / 495.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.1249, allocations: 1.165 MB / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.1249, allocations: 0 / 496.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.125, allocations: 48 kB / 496.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.1251, allocations: 24 kB / 496.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.1271, allocations: 1.07 MB / 497.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00587/0.133, allocations: 4.345 MB / 0.49 GB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.1356, allocations: 1.744 MB / 0.4917 GB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006459/0.1362, allocations: 325.3 kB / 0.492 GB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-05/0.1363, allocations: 101.6 kB / 0.4921 GB, free: 2.129 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008015/0.1371, allocations: 457.7 kB / 0.4926 GB, free: 1.652 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.515e-06/0.1372, allocations: 4 kB / 0.4926 GB, free: 1.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006021/0.1432, allocations: 1.592 MB / 0.4941 GB, free: 16 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.1433, allocations: 226.2 kB / 0.4943 GB, free: 15.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007722/0.1441, allocations: 0.6447 MB / 0.495 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.1442, allocations: 45.7 kB / 0.495 GB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003626/0.1445, allocations: 0.5219 MB / 0.4955 GB, free: 14.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.1447, allocations: 232.8 kB / 0.4957 GB, free: 14.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.145, allocations: 182.4 kB / 0.4959 GB, free: 14.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1452, allocations: 390.7 kB / 0.4963 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/0.1458, allocations: 297.8 kB / 0.4966 GB, free: 13.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007873/0.1466, allocations: 0.5387 MB / 0.4971 GB, free: 12.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.1481, allocations: 0.9399 MB / 0.498 GB, free: 11.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1481, allocations: 0 / 0.498 GB, free: 11.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002254/0.1504, allocations: 1.114 MB / 0.4991 GB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.538e-05/0.1504, allocations: 63.41 kB / 0.4992 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1505, allocations: 8 kB / 0.4992 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005049/0.151, allocations: 85.06 kB / 0.4992 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009036/0.1519, allocations: 223.7 kB / 0.4995 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.1534, allocations: 1.585 MB / 0.501 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007657/0.1542, allocations: 115 kB / 0.5011 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.856e-05/0.1543, allocations: 43.98 kB / 0.5012 GB, free: 8.297 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.0004776/0.1547, allocations: 343.2 kB / 0.5015 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.1549, allocations: 79.06 kB / 0.5016 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.157, allocations: 1.007 MB / 0.5025 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.157, allocations: 7.922 kB / 0.5025 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.157, allocations: 4 kB / 0.5026 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.1573, allocations: 219.9 kB / 0.5028 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.1574, allocations: 27.98 kB / 0.5028 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005491/0.158, allocations: 51.91 kB / 0.5028 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.1581, allocations: 44.48 kB / 0.5029 GB, free: 6.457 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.001299/0.1594, allocations: 0.6399 MB / 0.5035 GB, free: 5.781 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