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.001536/0.001536, allocations: 107.7 kB / 16.41 MB, free: 6.477 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.001754/0.001754, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.335/1.335, allocations: 222.9 MB / 241.1 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02843/0.02843, allocations: 5.405 MB / 296.6 MB, free: 9.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 60.09 kB / 413.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07455/0.07589, allocations: 50.64 MB / 464.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007319/0.08324, allocations: 6.327 MB / 470.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.08738, allocations: 2.566 MB / 473 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006179/0.08801, allocations: 20 kB / 473 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.09064, allocations: 1.138 MB / 474.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00178/0.09244, allocations: 0.7808 MB / 475 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007421/0.09319, allocations: 351.3 kB / 475.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001308/0.09451, allocations: 1.16 MB / 476.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001357/0.09588, allocations: 0.985 MB / 477.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005871/0.09648, allocations: 470.3 kB / 477.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006605/0.09715, allocations: 0.5758 MB / 478.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.09731, allocations: 128 kB / 478.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000507/0.09783, allocations: 287.8 kB / 478.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.09803, allocations: 255.1 kB / 479.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004651/0.0985, allocations: 0.5405 MB / 479.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.1, allocations: 1.487 MB / 481.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1001, allocations: 0 / 481.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1001, allocations: 4 kB / 481.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.1001, allocations: 0 / 481.2 MB, free: 2.691 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.003574/0.1037, allocations: 1.567 MB / 482.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1037, allocations: 12.03 kB / 482.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002146/0.1059, allocations: 360 kB / 483.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.1073, allocations: 0.6909 MB / 483.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.973e-05/0.1074, allocations: 78.12 kB / 483.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1075, allocations: 88 kB / 483.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.1092, allocations: 0.9932 MB / 484.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1092, allocations: 0 / 484.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.218e-05/0.1093, allocations: 36 kB / 485 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.1093, allocations: 28 kB / 485 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.1111, allocations: 0.8393 MB / 485.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005428/0.1165, allocations: 3.849 MB / 489.7 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.1186, allocations: 1.49 MB / 491.2 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/0.1191, allocations: 256.1 kB / 491.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.67e-05/0.1192, allocations: 89.11 kB / 491.5 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005633/0.1198, allocations: 313.8 kB / 491.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.044e-06/0.1198, allocations: 0 / 491.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002807/0.1226, allocations: 0.9604 MB / 492.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.1227, allocations: 140.5 kB / 492.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005867/0.1233, allocations: 0.4979 MB / 493.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.1233, allocations: 37.69 kB / 493.5 MB, free: 5.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.1236, allocations: 467.7 kB / 493.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.1237, allocations: 174.6 kB / 494.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.124, allocations: 154.5 kB / 494.2 MB, free: 4.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1241, allocations: 362.8 kB / 494.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005342/0.1246, allocations: 233.9 kB / 494.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.1253, allocations: 428.7 kB / 495.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.1264, allocations: 0.7012 MB / 495.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1265, allocations: 0 / 495.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001853/0.1283, allocations: 0.8567 MB / 496.8 MB, free: 2.164 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.1284, allocations: 37.64 kB / 496.8 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.1284, allocations: 8 kB / 496.8 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/0.1289, allocations: 80.72 kB / 496.9 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007404/0.1296, allocations: 179.8 kB / 497.1 MB, free: 1.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.1311, allocations: 1.586 MB / 498.7 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006423/0.1318, allocations: 87.5 kB / 498.8 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.1318, allocations: 40.02 kB / 498.8 MB, free: 4 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.0003396/0.1322, allocations: 270 kB / 499.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.429e-05/0.1323, allocations: 59.62 kB / 499.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.1338, allocations: 0.6929 MB / 499.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1338, allocations: 0 / 499.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1338, allocations: 4 kB / 499.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.134, allocations: 180.6 kB / 500 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.59e-05/0.1342, allocations: 16 kB / 0.4883 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.1346, allocations: 35.97 kB / 0.4883 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.222e-05/0.1347, allocations: 31.89 kB / 0.4884 GB, free: 14.68 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.001096/0.1358, allocations: 483.1 kB / 0.4888 GB, free: 14.19 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