Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_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_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02578/0.02578, allocations: 5.402 MB / 21.71 MB, free: 1.363 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.001023/0.001022, allocations: 107.5 kB / 23.71 MB, free: 0.9531 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.001247/0.001247, allocations: 188.2 kB / 25.83 MB, free: 4.648 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.295/1.295, allocations: 222.9 MB / 250.7 MB, free: 8.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009671/0.009671, allocations: 2.315 MB / 304.4 MB, free: 6.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 99.83 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08344, allocations: 51.2 MB / 471.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.008867/0.09235, allocations: 6.905 MB / 478.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006375/0.09875, allocations: 4.021 MB / 482.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007156/0.09949, allocations: 23.94 kB / 482.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.1022, allocations: 1.174 MB / 483.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.1044, allocations: 0.8778 MB / 484.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001731/0.1061, allocations: 0.603 MB / 485.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.1077, allocations: 1.421 MB / 486.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.109, allocations: 1.009 MB / 487.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007098/0.1097, allocations: 0.5604 MB / 488.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000755/0.1105, allocations: 0.6846 MB / 488.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.1107, allocations: 140 kB / 488.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007915/0.1115, allocations: 439.7 kB / 489.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002488/0.1117, allocations: 295 kB / 489.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005515/0.1123, allocations: 0.6374 MB / 490.3 MB, free: 404 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.1141, allocations: 1.764 MB / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1141, allocations: 0 / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1141, allocations: 3.984 kB / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.1142, allocations: 0 / 492.1 MB, free: 14.62 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.004088/0.1183, allocations: 1.797 MB / 493.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1183, allocations: 8.031 kB / 493.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002167/0.1205, allocations: 375.1 kB / 494.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.1223, allocations: 0.8165 MB / 495 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.1224, allocations: 78 kB / 495.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.1225, allocations: 100 kB / 495.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.1245, allocations: 1.134 MB / 496.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.1245, allocations: 7.844 kB / 496.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.1246, allocations: 44 kB / 496.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.1247, allocations: 24 kB / 496.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.1267, allocations: 0.9485 MB / 497.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005986/0.1327, allocations: 4.295 MB / 0.4899 GB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.1353, allocations: 1.67 MB / 0.4915 GB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/0.136, allocations: 319 kB / 0.4919 GB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.013e-05/0.1361, allocations: 89.53 kB / 0.4919 GB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008293/0.137, allocations: 470.5 kB / 0.4924 GB, free: 1.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.625e-06/0.137, allocations: 0 / 0.4924 GB, free: 1.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006397/0.1434, allocations: 1.545 MB / 0.4939 GB, free: 252 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.1435, allocations: 281.6 kB / 0.4942 GB, free: 15.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008083/0.1444, allocations: 0.6642 MB / 0.4948 GB, free: 15.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.1444, allocations: 37.7 kB / 0.4948 GB, free: 15.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.1448, allocations: 0.5179 MB / 0.4954 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.1449, allocations: 221 kB / 0.4956 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002782/0.1452, allocations: 182.4 kB / 0.4957 GB, free: 14.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1454, allocations: 394.8 kB / 0.4961 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006531/0.146, allocations: 281.8 kB / 0.4964 GB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007972/0.1468, allocations: 0.5363 MB / 0.4969 GB, free: 12.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.1483, allocations: 0.9138 MB / 0.4978 GB, free: 11.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.1483, allocations: 4 kB / 0.4978 GB, free: 11.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00226/0.1506, allocations: 1.067 MB / 0.4988 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.147e-05/0.1506, allocations: 69.83 kB / 0.4989 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.1506, allocations: 8.281 kB / 0.4989 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/0.1512, allocations: 88.78 kB / 0.499 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009264/0.1521, allocations: 211.7 kB / 0.4992 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.1537, allocations: 1.581 MB / 0.5007 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.1546, allocations: 123.2 kB / 0.5009 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.989e-05/0.1547, allocations: 47.97 kB / 0.5009 GB, free: 8.535 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.0004802/0.1552, allocations: 343.6 kB / 0.5012 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.1553, allocations: 79.06 kB / 0.5013 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/0.1574, allocations: 0.9207 MB / 0.5022 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.1574, allocations: 3.984 kB / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1574, allocations: 0 / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.1577, allocations: 212 kB / 0.5024 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.1579, allocations: 24 kB / 0.5024 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/0.1585, allocations: 51.95 kB / 0.5025 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.1586, allocations: 32.52 kB / 0.5025 GB, free: 6.816 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.001354/0.1599, allocations: 0.7235 MB / 0.5032 GB, free: 6.055 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704 could not be translated