Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.conf.json 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 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 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) Running command: translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 109.7 kB / 16.42 MB, free: 6.516 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.001157/0.001157, allocations: 186.7 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02759/0.02759, allocations: 5.401 MB / 296.6 MB, free: 9.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 63.91 kB / 413.5 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08608/0.08757, allocations: 50.63 MB / 464.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008024/0.09564, allocations: 6.333 MB / 470.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004863/0.1005, allocations: 2.569 MB / 473 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009782/0.1015, allocations: 16 kB / 473 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.1047, allocations: 1.112 MB / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.1069, allocations: 0.7807 MB / 474.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008995/0.1078, allocations: 354.7 kB / 475.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.1094, allocations: 1.153 MB / 476.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.111, allocations: 0.9889 MB / 477.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008002/0.1118, allocations: 470.3 kB / 477.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008852/0.1127, allocations: 0.5797 MB / 478.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002859/0.113, allocations: 128 kB / 478.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007293/0.1138, allocations: 295.8 kB / 478.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.114, allocations: 251.1 kB / 479.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006826/0.1147, allocations: 0.5404 MB / 479.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.1165, allocations: 1.484 MB / 481.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1165, allocations: 0 / 481.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1165, allocations: 0 / 481.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.442e-05/0.1166, allocations: 0 / 481.1 MB, free: 2.73 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004137/0.1207, allocations: 1.538 MB / 482.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1207, allocations: 12.03 kB / 482.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002139/0.1229, allocations: 355.4 kB / 483 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.1245, allocations: 0.6864 MB / 483.7 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.792e-05/0.1246, allocations: 74.2 kB / 483.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.1248, allocations: 95.98 kB / 483.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.1267, allocations: 0.9854 MB / 484.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.1268, allocations: 8 kB / 484.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.1269, allocations: 40 kB / 484.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.1269, allocations: 24 kB / 484.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.1287, allocations: 0.8354 MB / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.1346, allocations: 3.848 MB / 489.6 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.1367, allocations: 1.474 MB / 491.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.1372, allocations: 246 kB / 491.3 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.942e-05/0.1373, allocations: 93.03 kB / 491.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005604/0.1379, allocations: 321.8 kB / 491.7 MB, free: 7.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.645e-06/0.1379, allocations: 0 / 491.7 MB, free: 7.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002612/0.1405, allocations: 0.9523 MB / 492.7 MB, free: 6.535 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.1406, allocations: 140.5 kB / 492.8 MB, free: 6.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.1411, allocations: 0.5018 MB / 493.3 MB, free: 5.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.1412, allocations: 37.7 kB / 493.4 MB, free: 5.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.1415, allocations: 458.3 kB / 493.8 MB, free: 5.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.1416, allocations: 161.7 kB / 494 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.1418, allocations: 146.5 kB / 494.1 MB, free: 5.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1419, allocations: 362.8 kB / 494.5 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.1425, allocations: 233.9 kB / 494.7 MB, free: 4.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.1431, allocations: 436.7 kB / 495.1 MB, free: 3.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.1442, allocations: 0.7051 MB / 495.8 MB, free: 3.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1442, allocations: 4 kB / 495.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001762/0.146, allocations: 0.8445 MB / 496.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.146, allocations: 37.64 kB / 496.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.146, allocations: 4 kB / 496.7 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004729/0.1465, allocations: 88.97 kB / 496.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006881/0.1472, allocations: 171.7 kB / 497 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.1487, allocations: 1.582 MB / 498.6 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.1493, allocations: 91.19 kB / 498.6 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.391e-05/0.1494, allocations: 39.92 kB / 498.7 MB, free: 128 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * 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.0003629/0.1498, allocations: 274 kB / 499 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.1499, allocations: 55.34 kB / 499 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.1513, allocations: 0.6969 MB / 499.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.1513, allocations: 0 / 499.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1513, allocations: 4 kB / 499.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.1516, allocations: 184.2 kB / 499.9 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.1517, allocations: 8 kB / 499.9 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.1521, allocations: 39.97 kB / 499.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.388e-05/0.1522, allocations: 23.97 kB / 500 MB, free: 14.8 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): module.diode.iModule = smooth(1, if mpTracker.vRef / 48.0 > module.diode.VNeg then module.diode.Ids * (exp(mpTracker.vRef / (48.0 * module.diode.m * module.diode.Vt)) - 1.0) + mpTracker.vRef / 4.8e9 else if mpTracker.vRef / 48.0 > module.diode.VBv then module.diode.Ids * mpTracker.vRef / (1.2332438079725598 * module.diode.m) + mpTracker.vRef / 4.8e9 else if mpTracker.vRef / 48.0 > module.diode.VNegLin then module.diode.Ids * module.diode.VBv / (module.diode.m * 0.025692579332761666) - module.diode.Ibv * exp(((-mpTracker.vRef) / 48.0 - module.diode.Bv) / (module.diode.Nbv * module.diode.m * module.diode.Vt)) + mpTracker.vRef / 4.8e9 else module.diode.Ids * mpTracker.vRef / (48.0 * module.diode.m * module.diode.Vt) - module.diode.Ibv * exp(0.6291666666666667 / (module.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / 48.0 + module.diode.Bv) / (module.diode.Nbv * module.diode.m * module.diode.Vt) - 0.6291666666666667 / (module.diode.m * 0.025692579332761666)) + mpTracker.vRef / 4.8e9) 4/9 (1): module.diode.iModule + converter.iDC - module.signalCurrent.i = 0.0 Variables: 1: converter.iDC:VARIABLE(unit = "A" ) "DC current" type: Real 2: module.diode.iModule:VARIABLE(unit = "A" ) "Module current" type: Real 3: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 4: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 5: mpTracker.vRef:DISCRETE(flow=false start = 24.0 unit = "V" fixed = true ) "Reference DC voltage" type: Real 6: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 7: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 8: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 9: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" 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.001104/0.1533, allocations: 483.7 kB / 0.4887 GB, free: 14.31 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics.Examples.SimpleModuleMP could not be translated