Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004") translateModel(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02626/0.02626, allocations: 5.396 MB / 21.71 MB, free: 1.367 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.001079/0.001079, allocations: 107.7 kB / 23.71 MB, free: 0.9336 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.001305/0.001305, allocations: 197.2 kB / 25.83 MB, free: 4.652 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.341/1.341, allocations: 222.9 MB / 250.7 MB, free: 8.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009953/0.009953, allocations: 2.327 MB / 304.4 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003335/0.003335, allocations: 91.86 kB / 423.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1097, allocations: 51.21 MB / 475.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.009466/0.1192, allocations: 6.847 MB / 481.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007237/0.1265, allocations: 3.951 MB / 485.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001538/0.1281, allocations: 19.94 kB / 485.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.1315, allocations: 1.154 MB / 487 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00274/0.1342, allocations: 0.8467 MB / 487.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002105/0.1364, allocations: 0.5517 MB / 488.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.1386, allocations: 1.409 MB / 489.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.1404, allocations: 1.021 MB / 490.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000875/0.1413, allocations: 0.5682 MB / 491.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.1425, allocations: 0.683 MB / 492.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003811/0.1429, allocations: 140 kB / 492.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.144, allocations: 443.6 kB / 492.7 MB, free: 14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004236/0.1445, allocations: 311 kB / 493 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008673/0.1453, allocations: 0.6375 MB / 493.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.1477, allocations: 1.803 MB / 495.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1477, allocations: 3.938 kB / 495.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1478, allocations: 0 / 495.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1478, allocations: 4 kB / 495.4 MB, free: 11.24 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.004368/0.1522, allocations: 1.801 MB / 497.2 MB, free: 9.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1522, allocations: 12.03 kB / 497.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002213/0.1544, allocations: 375.2 kB / 497.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.1563, allocations: 0.8359 MB / 498.4 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.245e-05/0.1564, allocations: 82.08 kB / 498.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.1566, allocations: 108 kB / 498.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.1587, allocations: 1.169 MB / 499.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.1587, allocations: 0 / 499.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.1589, allocations: 48 kB / 499.8 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.1589, allocations: 24 kB / 499.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/0.1611, allocations: 1.073 MB / 0.4892 GB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006483/0.1676, allocations: 4.341 MB / 0.4934 GB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.1704, allocations: 1.748 MB / 0.4951 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006819/0.1711, allocations: 326.3 kB / 0.4955 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.1712, allocations: 97.64 kB / 0.4955 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008574/0.1721, allocations: 461.7 kB / 0.496 GB, free: 14.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.785e-06/0.1721, allocations: 0 / 0.496 GB, free: 14.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.006293/0.1784, allocations: 1.596 MB / 0.4975 GB, free: 12.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1785, allocations: 226.2 kB / 0.4978 GB, free: 12.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008222/0.1793, allocations: 0.6448 MB / 0.4984 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.1794, allocations: 41.7 kB / 0.4984 GB, free: 11.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/0.1798, allocations: 0.5217 MB / 0.4989 GB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.1799, allocations: 232.9 kB / 0.4992 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.1802, allocations: 186.4 kB / 0.4993 GB, free: 10.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1804, allocations: 390.7 kB / 0.4997 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006558/0.1811, allocations: 301.8 kB / 0.5 GB, free: 9.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008163/0.1819, allocations: 0.5309 MB / 0.5005 GB, free: 9.258 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.1834, allocations: 0.9399 MB / 0.5014 GB, free: 8.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.1834, allocations: 0 / 0.5014 GB, free: 8.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002309/0.1857, allocations: 1.121 MB / 0.5025 GB, free: 7.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.1858, allocations: 59.41 kB / 0.5026 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.1858, allocations: 8 kB / 0.5026 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/0.1863, allocations: 80.78 kB / 0.5027 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008887/0.1872, allocations: 231.8 kB / 0.5029 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.1888, allocations: 1.578 MB / 0.5044 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.1896, allocations: 115.1 kB / 0.5045 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.1897, allocations: 47.92 kB / 0.5046 GB, free: 4.781 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.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 (118): * Single equations (assignments): 115 * 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.00054/0.1903, allocations: 351.1 kB / 0.5049 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.1905, allocations: 79.06 kB / 0.505 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.1927, allocations: 1.003 MB / 0.506 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.1927, allocations: 3.984 kB / 0.506 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.1927, allocations: 0 / 0.506 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.193, allocations: 227.9 kB / 0.5062 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1931, allocations: 24 kB / 0.5062 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.1937, allocations: 51.89 kB / 0.5063 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/0.1938, allocations: 40.5 kB / 0.5063 GB, free: 2.945 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 / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VNeg then plant.diode.Ids * (exp(mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt)) - 1.0) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) > plant.diode.VBv then plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * 0.025692579332761666) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else if mpTracker.vRef / (60.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) / (60.0 * /*Real*/(plant.diode.nsModule)) - plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt)) + mpTracker.vRef / (6e9 * /*Real*/(plant.diode.nsModule)) else plant.diode.Ids * mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule) * plant.diode.m * plant.diode.Vt) - plant.diode.Ibv * exp(0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) * (1.0 - (mpTracker.vRef / (60.0 * /*Real*/(plant.diode.nsModule)) + plant.diode.Bv) / (plant.diode.Nbv * plant.diode.m * plant.diode.Vt) - 0.6166666666666667 / (plant.diode.m * 0.025692579332761666)) + mpTracker.vRef / (6e9 * /*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.firstTrigger:DISCRETE(start = false fixed = true ) "First boolean sample trigger signal" type: Boolean 5: mpTracker.counter:DISCRETE(start = 0 fixed = true ) "Sample counter" type: Integer 6: mpTracker.signv:DISCRETE(start = -1.0 fixed = true ) "Sign of voltage change" type: Real 7: mpTracker.sampleTrigger:DISCRETE() "Boolean sample trigger signal" type: Boolean 8: $whenCondition1:DISCRETE(fixed = true protected = true ) "mpTracker.sampleTrigger" type: Boolean unreplaceable 9: mpTracker.power:VARIABLE(flow=false unit = "W" ) "Power" type: Real 10: mpTracker.vRef:DISCRETE(flow=false start = mpTracker.VmpRef unit = "V" fixed = true ) "Reference DC voltage" type: Real [/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.001365/0.1952, allocations: 0.6448 MB / 0.5069 GB, free: 2.262 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004 could not be translated