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.001127/0.001127, allocations: 114.6 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.001145/0.001146, allocations: 185.7 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02845/0.02845, allocations: 5.401 MB / 296.6 MB, free: 9.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 59.91 kB / 413.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1046, allocations: 50.63 MB / 464.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP3): time 0.01097/0.1156, allocations: 10.1 MB / 474.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.1219, allocations: 3.527 MB / 477.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.1235, allocations: 67.81 kB / 477.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007275/0.1308, allocations: 3.257 MB / 481.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00342/0.1342, allocations: 1.024 MB / 482.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002308/0.1365, allocations: 0.9427 MB / 483 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004689/0.1412, allocations: 4.241 MB / 487.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01352/0.1548, allocations: 10.6 MB / 497.9 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003264/0.1581, allocations: 2.373 MB / 0.4885 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003938/0.162, allocations: 2.644 MB / 0.4911 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.1638, allocations: 0.7188 MB / 0.4918 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002791/0.1666, allocations: 0.988 MB / 0.4928 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001746/0.1683, allocations: 1.329 MB / 0.4941 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003993/0.1724, allocations: 2.599 MB / 0.4966 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2081/0.3805, allocations: 9.108 MB / 0.5055 GB, free: 27.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3805, allocations: 0 / 0.5055 GB, free: 27.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3806, allocations: 0 / 0.5055 GB, free: 27.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.3808, allocations: 0.625 kB / 0.5055 GB, free: 27.43 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.01388/0.3947, allocations: 5.34 MB / 0.5107 GB, free: 25.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3947, allocations: 9.312 kB / 0.5107 GB, free: 25.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01004/0.4048, allocations: 1.59 MB / 0.5123 GB, free: 25.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006851/0.4117, allocations: 2.943 MB / 0.5151 GB, free: 25.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004427/0.4121, allocations: 322.4 kB / 0.5155 GB, free: 25.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.4137, allocations: 417.1 kB / 0.5159 GB, free: 25.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01464/0.4283, allocations: 6.661 MB / 0.5224 GB, free: 22.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001355/0.4285, allocations: 8.875 kB / 0.5224 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008458/0.4293, allocations: 176.8 kB / 0.5225 GB, free: 22.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.4295, allocations: 207.3 kB / 0.5227 GB, free: 22.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009899/0.4395, allocations: 5.616 MB / 0.5282 GB, free: 19.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02893/0.4684, allocations: 22.47 MB / 0.5502 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005731/0.4742, allocations: 4.366 MB / 0.5544 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.4755, allocations: 0.8277 MB / 0.5552 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.4757, allocations: 115.6 kB / 0.5553 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001269/0.477, allocations: 0.7826 MB / 0.5561 GB, free: 9.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.466e-06/0.477, allocations: 4 kB / 0.5561 GB, free: 9.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.004834/0.4819, allocations: 2.228 MB / 0.5583 GB, free: 6.777 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.482, allocations: 157.5 kB / 0.5584 GB, free: 6.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/0.4853, allocations: 1.811 MB / 0.5602 GB, free: 4.773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.4854, allocations: 45.7 kB / 0.5603 GB, free: 4.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.4871, allocations: 1.964 MB / 0.5622 GB, free: 2.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.4875, allocations: 388.8 kB / 0.5625 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008419/0.4883, allocations: 0.5354 MB / 0.5631 GB, free: 1.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.4884, allocations: 309.1 kB / 0.5634 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001711/0.4902, allocations: 1.078 MB / 0.5644 GB, free: 452 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/0.4926, allocations: 2.168 MB / 0.5665 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/0.4966, allocations: 3.376 MB / 0.5698 GB, free: 10.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.769e-05/0.4967, allocations: 8 kB / 0.5698 GB, free: 10.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.006032/0.5027, allocations: 3.478 MB / 0.5732 GB, free: 6.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.331e-05/0.5028, allocations: 49.7 kB / 0.5733 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.176e-05/0.5029, allocations: 36 kB / 0.5733 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.5035, allocations: 128.9 kB / 0.5734 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.5057, allocations: 0.6053 MB / 0.574 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.5075, allocations: 1.647 MB / 0.5756 GB, free: 4.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.5097, allocations: 364.8 kB / 0.576 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/0.5099, allocations: 136 kB / 0.5761 GB, free: 3.699 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.002473/0.5124, allocations: 1.713 MB / 0.5778 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003902/0.5128, allocations: 156.2 kB / 0.5779 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.516, allocations: 1.781 MB / 0.5797 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.516, allocations: 3.984 kB / 0.5797 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.516, allocations: 3.938 kB / 0.5797 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008379/0.5169, allocations: 366.8 kB / 0.58 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003722/0.5172, allocations: 24 kB / 0.5801 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009555/0.5182, allocations: 91.89 kB / 0.5801 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.5184, allocations: 60.92 kB / 0.5802 GB, free: 15.51 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.001434/0.5198, allocations: 0.5648 MB / 0.5807 GB, free: 14.94 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