Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.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.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 110.7 kB / 16.42 MB, free: 6.469 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.001195/0.001195, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02715/0.02715, allocations: 5.401 MB / 296.6 MB, free: 9.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 59.91 kB / 413.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08967, allocations: 50.63 MB / 464.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01059/0.1003, allocations: 10.12 MB / 474.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006575/0.1069, allocations: 3.511 MB / 477.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.1087, allocations: 75.75 kB / 477.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007319/0.1161, allocations: 3.219 MB / 481 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00384/0.1199, allocations: 1.014 MB / 482 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002378/0.1223, allocations: 0.9497 MB / 483 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004796/0.1271, allocations: 4.242 MB / 487.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01398/0.1411, allocations: 10.59 MB / 497.8 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003437/0.1446, allocations: 2.369 MB / 0.4885 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004293/0.1489, allocations: 2.647 MB / 0.4911 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002431/0.1514, allocations: 0.7188 MB / 0.4918 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004105/0.1555, allocations: 0.988 MB / 0.4927 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002654/0.1582, allocations: 1.329 MB / 0.494 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006066/0.1643, allocations: 2.603 MB / 0.4966 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2973/0.4616, allocations: 9.102 MB / 0.5055 GB, free: 27.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.4617, allocations: 1.547 kB / 0.5055 GB, free: 27.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4617, allocations: 3.656 kB / 0.5055 GB, free: 27.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.4619, allocations: 0 / 0.5055 GB, free: 27.47 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01684/0.4788, allocations: 5.341 MB / 0.5107 GB, free: 26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4788, allocations: 8.969 kB / 0.5107 GB, free: 26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/0.489, allocations: 1.586 MB / 0.5122 GB, free: 25.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006402/0.4954, allocations: 2.942 MB / 0.5151 GB, free: 25.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005811/0.496, allocations: 325.3 kB / 0.5154 GB, free: 25.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/0.4976, allocations: 417.5 kB / 0.5158 GB, free: 25.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01365/0.5113, allocations: 6.665 MB / 0.5223 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.372e-05/0.5114, allocations: 1.469 kB / 0.5223 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004588/0.5119, allocations: 177.1 kB / 0.5225 GB, free: 22.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002479/0.5121, allocations: 202.3 kB / 0.5227 GB, free: 22.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008961/0.5211, allocations: 5.618 MB / 0.5282 GB, free: 20.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02876/0.5499, allocations: 22.47 MB / 0.5501 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006205/0.5561, allocations: 4.373 MB / 0.5544 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.5575, allocations: 0.8391 MB / 0.5552 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.5577, allocations: 105 kB / 0.5553 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.559, allocations: 0.7818 MB / 0.5561 GB, free: 9.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.827e-06/0.5591, allocations: 0 / 0.5561 GB, free: 9.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.004966/0.564, allocations: 2.238 MB / 0.5583 GB, free: 6.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.5642, allocations: 152.9 kB / 0.5584 GB, free: 6.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/0.568, allocations: 1.814 MB / 0.5602 GB, free: 4.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.481e-05/0.5682, allocations: 41.7 kB / 0.5602 GB, free: 4.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.5701, allocations: 1.967 MB / 0.5621 GB, free: 2.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005203/0.5707, allocations: 392.5 kB / 0.5625 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/0.5719, allocations: 0.5354 MB / 0.563 GB, free: 1.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.572, allocations: 301.1 kB / 0.5633 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.5741, allocations: 1.086 MB / 0.5644 GB, free: 424 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002762/0.5769, allocations: 2.168 MB / 0.5665 GB, free: 13.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004566/0.5814, allocations: 3.368 MB / 0.5698 GB, free: 9.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-05/0.5815, allocations: 12 kB / 0.5698 GB, free: 9.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.006176/0.5877, allocations: 3.475 MB / 0.5732 GB, free: 6.707 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.281e-05/0.5878, allocations: 45.7 kB / 0.5732 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-05/0.5879, allocations: 42.73 kB / 0.5733 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005782/0.5884, allocations: 122 kB / 0.5734 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00217/0.5906, allocations: 0.6115 MB / 0.574 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.5924, allocations: 1.636 MB / 0.5756 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.5947, allocations: 372.9 kB / 0.5759 GB, free: 3.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/0.595, allocations: 136 kB / 0.5761 GB, free: 3.672 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (313): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.002953/0.5979, allocations: 1.715 MB / 0.5777 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.5984, allocations: 158 kB / 0.5779 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003441/0.6018, allocations: 1.777 MB / 0.5796 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.6019, allocations: 7.984 kB / 0.5796 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.6019, allocations: 4 kB / 0.5796 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008275/0.6027, allocations: 366.8 kB / 0.58 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003925/0.6031, allocations: 24 kB / 0.58 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009881/0.6041, allocations: 79.91 kB / 0.5801 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.6043, allocations: 64.91 kB / 0.5802 GB, free: 15.48 MB / 430.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.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 4: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 5: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 6: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 7: mpTracker.vRef:DISCRETE(flow=false start = 24.0 unit = "V" fixed = true ) "Reference DC voltage" type: Real 8: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 9: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable [/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.001482/0.6058, allocations: 0.5654 MB / 0.5807 GB, free: 14.91 MB / 430.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics.Examples.SimpleModuleMP3 could not be translated