Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.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.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 112.6 kB / 16.42 MB, free: 6.445 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.001616/0.001616, allocations: 185.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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02824/0.02824, allocations: 5.392 MB / 296.6 MB, free: 9.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 67.89 kB / 413.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08594, allocations: 50.62 MB / 464.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007181/0.09316, allocations: 5.148 MB / 469.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003609/0.09681, allocations: 1.877 MB / 471.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007655/0.0976, allocations: 11.94 kB / 471.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.09866, allocations: 282 kB / 471.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.0998, allocations: 297.8 kB / 471.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008201/0.1006, allocations: 319.4 kB / 472 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.1023, allocations: 1.114 MB / 473.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008625/0.1032, allocations: 446.7 kB / 473.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008934/0.1041, allocations: 450.4 kB / 474 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001375/0.1055, allocations: 0.5252 MB / 474.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004578/0.1059, allocations: 112 kB / 474.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006732/0.1066, allocations: 187.9 kB / 474.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004252/0.1071, allocations: 223.2 kB / 475.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009775/0.1081, allocations: 0.4899 MB / 475.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.1094, allocations: 1.176 MB / 476.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1094, allocations: 0 / 476.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1094, allocations: 4 kB / 476.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.919e-05/0.1095, allocations: 0 / 476.7 MB, free: 7.156 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: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.003264/0.1127, allocations: 1.301 MB / 478 MB, free: 5.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1128, allocations: 15.97 kB / 478 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.113, allocations: 87.91 kB / 478.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.1145, allocations: 0.6468 MB / 478.8 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.1146, allocations: 57.94 kB / 478.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.1147, allocations: 72 kB / 478.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1162, allocations: 0.7814 MB / 479.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1162, allocations: 0 / 479.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.452e-05/0.1163, allocations: 32 kB / 479.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.1163, allocations: 24 kB / 479.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1176, allocations: 0.5933 MB / 480.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004272/0.1219, allocations: 2.738 MB / 483.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.1235, allocations: 0.9026 MB / 484 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005997/0.1241, allocations: 249.9 kB / 484.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/0.1242, allocations: 85.48 kB / 484.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007198/0.125, allocations: 393.5 kB / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.125, allocations: 0 / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002994/0.128, allocations: 1.062 MB / 485.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.1281, allocations: 196.3 kB / 485.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005189/0.1286, allocations: 461.9 kB / 486.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.1287, allocations: 37.7 kB / 486.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.1289, allocations: 371.4 kB / 486.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.1291, allocations: 181.5 kB / 487 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.1293, allocations: 142.5 kB / 487.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1294, allocations: 370.8 kB / 487.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005366/0.13, allocations: 213.9 kB / 487.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006175/0.1306, allocations: 369.8 kB / 488 MB, free: 11.26 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/0.1426, allocations: 2.373 MB / 490.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.1426, allocations: 0 / 490.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002117/0.1447, allocations: 0.8266 MB / 491.2 MB, free: 7.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.075e-05/0.1448, allocations: 61.91 kB / 491.3 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.1449, allocations: 8 kB / 491.3 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004771/0.1453, allocations: 80.72 kB / 491.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.1462, allocations: 171.8 kB / 491.5 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.1479, allocations: 1.581 MB / 493.1 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007891/0.1487, allocations: 67.42 kB / 493.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-05/0.1488, allocations: 35.97 kB / 493.2 MB, free: 5.773 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 22 (irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * 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.0005409/0.1494, allocations: 295.3 kB / 493.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.1496, allocations: 59.34 kB / 493.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.1516, allocations: 0.9243 MB / 494.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/0.1516, allocations: 7.984 kB / 494.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1516, allocations: 3.938 kB / 494.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.152, allocations: 200 kB / 494.7 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.1521, allocations: 24 kB / 494.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.1527, allocations: 35.97 kB / 494.8 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.1528, allocations: 44.5 kB / 494.8 MB, free: 4.133 MB / 366.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.iDC1 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.iDC1 - module.signalCurrent.i = 0.0 Variables: 1: converter.iDC1:VARIABLE(unit = "A" ) "DC current side 1" type: Real 2: module.diode.iModule:VARIABLE(unit = "A" ) "Module current" type: Real 3: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 4: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 5: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 6: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 7: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 8: mpTracker.vRef:DISCRETE(flow=false start = 24.0 unit = "V" fixed = true ) "Reference DC voltage" type: Real 9: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean [/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.001277/0.1541, allocations: 0.5607 MB / 495.4 MB, free: 3.539 MB / 366.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics.Examples.SimpleModuleMPDC could not be translated