Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) 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_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02586/0.02586, allocations: 5.403 MB / 21.71 MB, free: 1.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 109.3 kB / 23.71 MB, free: 0.9727 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.001203/0.001203, allocations: 194.6 kB / 25.84 MB, free: 4.621 MB / 19.63 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 / 250.7 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009595/0.009595, allocations: 2.322 MB / 304.4 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 95.84 kB / 420.3 MB, free: 22.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07731/0.07913, allocations: 51.21 MB / 471.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.007984/0.08715, allocations: 6.773 MB / 478.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005045/0.09222, allocations: 3.131 MB / 481.4 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00049/0.09273, allocations: 16 kB / 481.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002483/0.09524, allocations: 1.127 MB / 482.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001739/0.09699, allocations: 0.8546 MB / 483.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.09847, allocations: 0.5252 MB / 484 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.09989, allocations: 1.39 MB / 485.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.1013, allocations: 1.032 MB / 486.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000598/0.1019, allocations: 0.5527 MB / 486.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000791/0.1027, allocations: 0.7198 MB / 487.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.1029, allocations: 140 kB / 487.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007589/0.1037, allocations: 443.7 kB / 488.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000215/0.1039, allocations: 287 kB / 488.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005721/0.1045, allocations: 0.6337 MB / 489.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.1063, allocations: 1.755 MB / 490.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1064, allocations: 0 / 490.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1064, allocations: 0 / 490.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.1064, allocations: 3.938 kB / 490.9 MB, free: 15.77 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.004197/0.1106, allocations: 1.804 MB / 492.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1106, allocations: 8.031 kB / 492.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/0.1128, allocations: 371.9 kB / 493.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.1145, allocations: 0.7761 MB / 493.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.784e-05/0.1146, allocations: 78.06 kB / 493.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.1148, allocations: 104 kB / 494 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.1169, allocations: 1.176 MB / 495.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/0.1169, allocations: 7.938 kB / 495.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.1171, allocations: 44 kB / 495.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.1171, allocations: 24 kB / 495.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.1194, allocations: 1.042 MB / 496.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006224/0.1256, allocations: 4.377 MB / 0.489 GB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/0.1286, allocations: 1.766 MB / 0.4907 GB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007962/0.1294, allocations: 367.4 kB / 0.491 GB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001801/0.1296, allocations: 174.8 kB / 0.4912 GB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.1306, allocations: 0.5552 MB / 0.4917 GB, free: 2.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.986e-06/0.1306, allocations: 0 / 0.4917 GB, free: 2.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006301/0.137, allocations: 1.706 MB / 0.4934 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.1371, allocations: 281.7 kB / 0.4937 GB, free: 372 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006567/0.1378, allocations: 0.5537 MB / 0.4942 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.465e-05/0.1378, allocations: 45.69 kB / 0.4943 GB, free: 15.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.1382, allocations: 0.4962 MB / 0.4947 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.1384, allocations: 265.8 kB / 0.495 GB, free: 14.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.1387, allocations: 214.8 kB / 0.4952 GB, free: 14.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1389, allocations: 382.8 kB / 0.4956 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007925/0.1397, allocations: 326.4 kB / 0.4959 GB, free: 14.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009361/0.1406, allocations: 0.5721 MB / 0.4964 GB, free: 13.4 MB / 382.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.01867/0.1593, allocations: 3.619 MB / 0.5 GB, free: 9.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.1594, allocations: 4 kB / 0.5 GB, free: 9.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002864/0.1622, allocations: 1.21 MB / 0.5012 GB, free: 8.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.956e-05/0.1623, allocations: 91.45 kB / 0.5012 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1623, allocations: 4 kB / 0.5013 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004798/0.1628, allocations: 97.02 kB / 0.5013 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.164, allocations: 251.5 kB / 0.5016 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.1656, allocations: 1.593 MB / 0.5031 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000929/0.1666, allocations: 115.3 kB / 0.5032 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.951e-05/0.1667, allocations: 51.97 kB / 0.5033 GB, free: 6.02 MB / 382.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: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,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,integrator.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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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.0005424/0.1672, allocations: 376.8 kB / 0.5037 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.1674, allocations: 87.48 kB / 0.5037 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/0.1701, allocations: 1.257 MB / 0.505 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.1701, allocations: 3.984 kB / 0.505 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1702, allocations: 0 / 0.505 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.1705, allocations: 240.3 kB / 0.5052 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.1706, allocations: 35.89 kB / 0.5052 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.1713, allocations: 55.95 kB / 0.5053 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.1715, allocations: 56.92 kB / 0.5053 GB, free: 3.844 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): plant.diode.iModule = smooth(1, if mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNeg then plant.diode.Ids * (exp(mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt)) - 1.0) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VBv then plant.diode.Ids * mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * 0.025692579332761666) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNegLin then plant.diode.Ids * plant.diode.VBv / (plant.diode.m * 0.025692579332761666) - plant.diode.Ibv * exp(((-mpTracker.vRef) / (72.0 * /*Real*/(plant.diode.nsModule)) - plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt)) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule)) else plant.diode.Ids * mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt) - plant.diode.Ibv * exp(0.6388888888888888 / (plant.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / (72.0 * /*Real*/(plant.diode.nsModule)) + plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt) - 0.6388888888888888 / (plant.diode.m * 0.025692579332761666)) + mpTracker.vRef / (7.2e9 * /*Real*/(plant.diode.nsModule))) 4/9 (1): plant.diode.iModule = plant.diode.i / /*Real*/(plant.diode.npModule) 5/10 (1): plant.diode.i + converter.iDC - plant.signalCurrent.i = 0.0 Variables: 1: converter.iDC:VARIABLE(unit = "A" ) "DC current" type: Real 2: plant.diode.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 3: plant.diode.iModule:VARIABLE(unit = "A" ) "Module current" type: Real 4: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 5: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 6: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 7: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 8: mpTracker.vRef:DISCRETE(flow=false start = mpTracker.VmpRef unit = "V" fixed = true ) "Reference DC voltage" type: Real 9: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 10: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First 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.001368/0.1728, allocations: 0.6376 MB / 0.506 GB, free: 3.156 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 could not be translated