Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.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_Measurement_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02503/0.02503, allocations: 5.399 MB / 21.71 MB, free: 1.383 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.0009924/0.0009925, allocations: 108.8 kB / 23.7 MB, free: 0.9453 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.001067/0.001067, allocations: 197.9 kB / 25.84 MB, free: 4.664 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.339/1.339, allocations: 222.9 MB / 250.7 MB, free: 8.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009848/0.009848, allocations: 2.312 MB / 304.4 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 99.84 kB / 420.3 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08061/0.08248, allocations: 51.2 MB / 471.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.008347/0.09086, allocations: 6.901 MB / 478.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006641/0.09754, allocations: 4.017 MB / 482.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009041/0.09848, allocations: 23.94 kB / 482.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003096/0.1016, allocations: 1.19 MB / 483.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002513/0.1041, allocations: 0.901 MB / 484.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002151/0.1063, allocations: 0.5985 MB / 485.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001884/0.1082, allocations: 1.425 MB / 486.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.1098, allocations: 1.009 MB / 487.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008656/0.1107, allocations: 0.5682 MB / 488.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.112, allocations: 0.6846 MB / 488.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.1124, allocations: 140 kB / 489 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.1134, allocations: 427.7 kB / 489.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003543/0.1138, allocations: 302.8 kB / 489.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000824/0.1146, allocations: 0.6297 MB / 490.3 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002412/0.117, allocations: 1.771 MB / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.117, allocations: 0 / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.117, allocations: 0 / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.677e-05/0.1171, allocations: 0 / 492.1 MB, free: 14.57 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004675/0.1218, allocations: 1.831 MB / 493.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1218, allocations: 8.031 kB / 493.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002284/0.1241, allocations: 395.8 kB / 494.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.1261, allocations: 0.8209 MB / 495.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.1262, allocations: 78 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001877/0.1264, allocations: 112 kB / 495.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.1286, allocations: 1.126 MB / 496.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.54e-05/0.1287, allocations: 4 kB / 496.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.1288, allocations: 44 kB / 496.5 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.1288, allocations: 24 kB / 496.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.1309, allocations: 0.9447 MB / 497.5 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00623/0.1371, allocations: 4.315 MB / 0.49 GB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.1398, allocations: 1.67 MB / 0.4917 GB, free: 2.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.1405, allocations: 323 kB / 0.492 GB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.916e-05/0.1406, allocations: 89.55 kB / 0.492 GB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009014/0.1415, allocations: 458.6 kB / 0.4925 GB, free: 1.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.178e-06/0.1416, allocations: 3.938 kB / 0.4925 GB, free: 1.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006184/0.1478, allocations: 1.553 MB / 0.494 GB, free: 120 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.1479, allocations: 277.5 kB / 0.4943 GB, free: 15.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009691/0.1489, allocations: 0.6682 MB / 0.4949 GB, free: 15.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.149, allocations: 41.7 kB / 0.495 GB, free: 15.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004052/0.1494, allocations: 0.5272 MB / 0.4955 GB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.1496, allocations: 226.2 kB / 0.4957 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.1499, allocations: 182.5 kB / 0.4959 GB, free: 14.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1501, allocations: 398.8 kB / 0.4962 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006648/0.1507, allocations: 281.8 kB / 0.4965 GB, free: 13.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.1516, allocations: 0.5402 MB / 0.497 GB, free: 12.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.1531, allocations: 0.9138 MB / 0.4979 GB, free: 11.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1531, allocations: 0 / 0.4979 GB, free: 11.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002332/0.1554, allocations: 1.075 MB / 0.499 GB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.1555, allocations: 66.19 kB / 0.499 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.1555, allocations: 15.94 kB / 0.4991 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/0.156, allocations: 84.78 kB / 0.4991 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008949/0.1569, allocations: 215.7 kB / 0.4994 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/0.1586, allocations: 1.582 MB / 0.5009 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009424/0.1596, allocations: 111.3 kB / 0.501 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.1597, allocations: 43.98 kB / 0.501 GB, free: 8.391 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0005321/0.1603, allocations: 339.6 kB / 0.5014 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/0.1605, allocations: 87.44 kB / 0.5015 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/0.1625, allocations: 0.9168 MB / 0.5023 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1625, allocations: 3.984 kB / 0.5024 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.1625, allocations: 4 kB / 0.5024 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.1628, allocations: 224.4 kB / 0.5026 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.163, allocations: 16 kB / 0.5026 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.1636, allocations: 51.95 kB / 0.5026 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.1637, allocations: 40.52 kB / 0.5027 GB, free: 6.656 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); $whenCondition2 := pre($whenCondition2); mpTracker.sampleTrigger := pre(mpTracker.sampleTrigger); mpTracker.sampleTrigger := sample(1, mpTracker.startTime, mpTracker.samplePeriod); $whenCondition2 := mpTracker.sampleTrigger; when $whenCondition2 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.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 5: mpTracker.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 6: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 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.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 10: $whenCondition2: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.001323/0.165, allocations: 0.7188 MB / 0.5034 GB, free: 5.898 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629 could not be translated