Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase.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.SimpleModulePolyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase") translateModel(PhotoVoltaics.Examples.SimpleModulePolyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModulePolyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.001152/0.001152, allocations: 188.2 kB / 17.35 MB, free: 5.758 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.39/1.39, allocations: 222.9 MB / 241.1 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.02758/0.02758, allocations: 5.403 MB / 296.6 MB, free: 9.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 410 MB, free: 26.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1023, allocations: 50.62 MB / 460.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModulePolyphase): time 0.00857/0.111, allocations: 6.93 MB / 467.5 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004979/0.116, allocations: 2.375 MB / 469.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008369/0.1168, allocations: 51.75 kB / 469.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.118, allocations: 468.6 kB / 470.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.1193, allocations: 456.9 kB / 470.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008069/0.1201, allocations: 431.4 kB / 471.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002067/0.1222, allocations: 2.201 MB / 473.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.1248, allocations: 2.479 MB / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.1262, allocations: 1.079 MB / 477 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.128, allocations: 1.315 MB / 478.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004248/0.1284, allocations: 312 kB / 478.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005371/0.129, allocations: 332 kB / 479 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007164/0.1297, allocations: 0.7519 MB / 479.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.1309, allocations: 1.275 MB / 481 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003378/0.1343, allocations: 3.614 MB / 484.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1343, allocations: 0 / 484.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1343, allocations: 0 / 484.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.59e-05/0.1343, allocations: 4 kB / 484.6 MB, free: 15.17 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: 529 * Number of variables: 529 Notification: Performance of Generate backend data structure: time 0.005463/0.1398, allocations: 2.757 MB / 487.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1399, allocations: 8.031 kB / 487.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005179/0.1404, allocations: 254 kB / 487.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.1432, allocations: 1.523 MB / 489.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.1434, allocations: 152.1 kB / 489.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.1437, allocations: 204 kB / 489.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004619/0.1483, allocations: 2.662 MB / 492.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.066e-05/0.1483, allocations: 7.844 kB / 492.2 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000191/0.1485, allocations: 88 kB / 492.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.655e-05/0.1486, allocations: 80.05 kB / 492.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00401/0.1527, allocations: 2.202 MB / 494.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.1651, allocations: 7.865 MB / 0.4906 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.1673, allocations: 1.211 MB / 0.4918 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.1685, allocations: 0.4944 MB / 0.4923 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.127e-05/0.1686, allocations: 16.55 kB / 0.4923 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009616/0.1695, allocations: 0.5273 MB / 0.4928 GB, free: 10.53 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 3.797e-06/0.1695, allocations: 0 / 0.4928 GB, free: 10.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.005566/0.1751, allocations: 1.801 MB / 0.4946 GB, free: 8.695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/0.1752, allocations: 141.1 kB / 0.4947 GB, free: 8.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.1769, allocations: 1.064 MB / 0.4958 GB, free: 7.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.858e-05/0.1769, allocations: 45.64 kB / 0.4958 GB, free: 7.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000876/0.1778, allocations: 0.961 MB / 0.4967 GB, free: 6.418 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.1781, allocations: 240.7 kB / 0.497 GB, free: 6.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/0.1784, allocations: 182.5 kB / 0.4971 GB, free: 5.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1785, allocations: 341.9 kB / 0.4975 GB, free: 5.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009293/0.1795, allocations: 464.5 kB / 0.4979 GB, free: 5.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.1806, allocations: 0.7281 MB / 0.4986 GB, free: 4.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.1826, allocations: 1.247 MB / 0.4998 GB, free: 2.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.1826, allocations: 0 / 0.4998 GB, free: 2.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.0029/0.1855, allocations: 1.401 MB / 0.5012 GB, free: 1.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/0.1856, allocations: 33.7 kB / 0.5012 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.1856, allocations: 8 kB / 0.5012 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005083/0.1862, allocations: 88.78 kB / 0.5013 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.1872, allocations: 247.8 kB / 0.5016 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.217/0.4042, allocations: 1.586 MB / 0.5031 GB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.4055, allocations: 147.3 kB / 0.5033 GB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.4056, allocations: 41.97 kB / 0.5033 GB, free: 47.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00186/0.4074, allocations: 0.9924 MB / 0.5043 GB, free: 47.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009438/0.4084, allocations: 0.7165 MB / 0.505 GB, free: 46.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001764/0.4102, allocations: 1.223 MB / 0.5062 GB, free: 46.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.534e-06/0.4102, allocations: 3.406 kB / 0.5062 GB, free: 46.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.002674/0.4129, allocations: 1.389 MB / 0.5075 GB, free: 45.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.397e-05/0.4129, allocations: 43.97 kB / 0.5076 GB, free: 45.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4129, allocations: 7.75 kB / 0.5076 GB, free: 45.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004581/0.4134, allocations: 90.02 kB / 0.5077 GB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4144, allocations: 239 kB / 0.5079 GB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.4156, allocations: 1.576 MB / 0.5094 GB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009403/0.4165, allocations: 126.2 kB / 0.5095 GB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.4166, allocations: 43.91 kB / 0.5096 GB, free: 44.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 12 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integratorOmega.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 (117): * Single equations (assignments): 115 * 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.0003178/0.417, allocations: 274.4 kB / 0.5098 GB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.4171, allocations: 112 kB / 0.51 GB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.421, allocations: 1.407 MB / 0.5113 GB, free: 43.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.421, allocations: 3.328 kB / 0.5113 GB, free: 43.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.421, allocations: 0 / 0.5113 GB, free: 43.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003645/0.4214, allocations: 274.8 kB / 0.5116 GB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.4216, allocations: 18.41 kB / 0.5116 GB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.4222, allocations: 78.03 kB / 0.5117 GB, free: 43.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.4224, allocations: 47.86 kB / 0.5117 GB, free: 43.38 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): 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) 2/2 (1): module.diode.iModule + converter.iDC - module.signalCurrent.i = 0.0 3/3 (1): mpTracker.power = mpTracker.vRef * converter.iDC 4/4 (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; Variables: 1: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 2: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 3: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 4: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 5: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 6: converter.iDC:VARIABLE(unit = "A" ) "DC current" type: Real 7: module.diode.iModule:VARIABLE(unit = "A" ) "Module current" 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.001513/0.4239, allocations: 0.5648 MB / 0.5123 GB, free: 43.12 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics.Examples.SimpleModulePolyphase could not be translated