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.00139/0.00139, allocations: 114.7 kB / 16.42 MB, free: 6.492 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.001168/0.001168, allocations: 190.5 kB / 17.35 MB, free: 5.762 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.333/1.333, 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.02757/0.02757, allocations: 5.4 MB / 296.6 MB, free: 9.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 55.91 kB / 410 MB, free: 26.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08249, allocations: 50.63 MB / 460.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModulePolyphase): time 0.007814/0.09034, allocations: 6.914 MB / 467.5 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00442/0.09479, allocations: 2.383 MB / 469.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.09592, allocations: 43.81 kB / 469.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001329/0.09729, allocations: 492.5 kB / 470.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.09906, allocations: 472.9 kB / 470.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.1002, allocations: 433.2 kB / 471.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002482/0.1027, allocations: 2.208 MB / 473.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002847/0.1055, allocations: 2.479 MB / 476 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.1069, allocations: 1.075 MB / 477.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.1088, allocations: 1.308 MB / 478.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006619/0.1095, allocations: 312 kB / 478.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007826/0.1103, allocations: 339.9 kB / 479 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006355/0.1109, allocations: 0.7558 MB / 479.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.1121, allocations: 1.275 MB / 481 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.1151, allocations: 3.614 MB / 484.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1151, allocations: 0 / 484.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1151, allocations: 0 / 484.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.299e-05/0.1152, allocations: 0 / 484.7 MB, free: 15.13 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.005364/0.1205, allocations: 2.761 MB / 487.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1206, allocations: 11.97 kB / 487.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/0.1211, allocations: 250 kB / 487.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.124, allocations: 1.519 MB / 489.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.455e-05/0.1241, allocations: 148.1 kB / 489.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.1244, allocations: 215.9 kB / 489.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00429/0.1287, allocations: 2.654 MB / 492.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.986e-05/0.1287, allocations: 3.906 kB / 492.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/0.1289, allocations: 88 kB / 492.3 MB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.15e-05/0.129, allocations: 84.03 kB / 492.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003782/0.1328, allocations: 2.21 MB / 494.6 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.1442, allocations: 7.861 MB / 0.4907 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/0.1462, allocations: 1.204 MB / 0.4918 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009077/0.1471, allocations: 0.4944 MB / 0.4923 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.817e-05/0.1472, allocations: 16.55 kB / 0.4923 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009365/0.1481, allocations: 0.5311 MB / 0.4929 GB, free: 10.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 3.206e-06/0.1481, allocations: 0 / 0.4929 GB, free: 10.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.005383/0.1535, allocations: 1.805 MB / 0.4946 GB, free: 8.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.1536, allocations: 137.1 kB / 0.4948 GB, free: 8.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.155, allocations: 1.068 MB / 0.4958 GB, free: 7.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.574e-05/0.1551, allocations: 41.69 kB / 0.4958 GB, free: 7.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007223/0.1558, allocations: 0.961 MB / 0.4968 GB, free: 6.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.156, allocations: 232.8 kB / 0.497 GB, free: 6.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000281/0.1563, allocations: 186.5 kB / 0.4972 GB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1564, allocations: 345.9 kB / 0.4975 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008715/0.1573, allocations: 464.5 kB / 0.4979 GB, free: 5.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.1583, allocations: 0.7242 MB / 0.4987 GB, free: 4.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.1602, allocations: 1.243 MB / 0.4999 GB, free: 2.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1603, allocations: 4 kB / 0.4999 GB, free: 2.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002675/0.1629, allocations: 1.397 MB / 0.5012 GB, free: 1.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.163, allocations: 37.69 kB / 0.5013 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.163, allocations: 12.19 kB / 0.5013 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004761/0.1635, allocations: 92.72 kB / 0.5014 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.1645, allocations: 247.6 kB / 0.5016 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1879/0.3524, allocations: 1.583 MB / 0.5032 GB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.3536, allocations: 140.5 kB / 0.5033 GB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.943e-05/0.3537, allocations: 45.11 kB / 0.5033 GB, free: 47.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001725/0.3555, allocations: 0.995 MB / 0.5043 GB, free: 47.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009731/0.3565, allocations: 0.7195 MB / 0.505 GB, free: 47.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001692/0.3582, allocations: 1.223 MB / 0.5062 GB, free: 46.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.731e-06/0.3582, allocations: 2.156 kB / 0.5062 GB, free: 46.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.002603/0.3608, allocations: 1.383 MB / 0.5076 GB, free: 46.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.3608, allocations: 44.91 kB / 0.5076 GB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3608, allocations: 8.062 kB / 0.5076 GB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004347/0.3613, allocations: 91.08 kB / 0.5077 GB, free: 46.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.3623, allocations: 234.8 kB / 0.5079 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.3634, allocations: 1.585 MB / 0.5095 GB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008974/0.3643, allocations: 127.7 kB / 0.5096 GB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.3644, allocations: 43.7 kB / 0.5096 GB, free: 44.67 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.0002792/0.3647, allocations: 272.8 kB / 0.5099 GB, free: 44.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.3649, allocations: 109.1 kB / 0.51 GB, free: 44.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/0.3686, allocations: 1.396 MB / 0.5114 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3687, allocations: 7.312 kB / 0.5114 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3687, allocations: 0.625 kB / 0.5114 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004527/0.3691, allocations: 282.2 kB / 0.5116 GB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001608/0.3693, allocations: 15.73 kB / 0.5116 GB, free: 43.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.3699, allocations: 76.59 kB / 0.5117 GB, free: 43.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3701, allocations: 46.3 kB / 0.5118 GB, free: 43.76 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.001523/0.3716, allocations: 0.5733 MB / 0.5123 GB, free: 43.5 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