Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") translateModel(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,tolerance=1e-08,outputFormat="empty",numberOfIntervals=195840,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04276/0.04276, allocations: 5.399 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.001686/0.001686, allocations: 110.8 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.002014/0.002014, allocations: 194.3 kB / 25.84 MB, free: 4.645 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.305/1.305, 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.009644/0.009644, allocations: 2.336 MB / 304.4 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 95.86 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07584/0.07761, allocations: 51.21 MB / 471.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004): time 0.007697/0.08535, allocations: 6.892 MB / 478.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005905/0.09128, allocations: 4.017 MB / 482.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006485/0.09195, allocations: 27.94 kB / 482.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002596/0.09457, allocations: 1.181 MB / 483.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.09638, allocations: 0.874 MB / 484.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.09805, allocations: 0.6078 MB / 485.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.09938, allocations: 1.413 MB / 486.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1007, allocations: 1.013 MB / 487.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005932/0.1013, allocations: 0.5643 MB / 488.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007608/0.102, allocations: 0.683 MB / 488.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.1022, allocations: 140 kB / 488.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007075/0.1029, allocations: 435.7 kB / 489.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.1032, allocations: 302.9 kB / 489.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005146/0.1037, allocations: 0.6336 MB / 490.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.1054, allocations: 1.76 MB / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1054, allocations: 0 / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1054, allocations: 0 / 492.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1054, 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.003958/0.1094, allocations: 1.798 MB / 493.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1094, allocations: 12.03 kB / 493.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.1116, allocations: 383.1 kB / 494.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.1134, allocations: 0.8126 MB / 495.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.1135, allocations: 82 kB / 495.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.1136, allocations: 100 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.1156, allocations: 1.126 MB / 496.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.1156, allocations: 7.844 kB / 496.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.1157, allocations: 44 kB / 496.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.1157, allocations: 24 kB / 496.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.1177, allocations: 0.9485 MB / 497.4 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005883/0.1236, allocations: 4.306 MB / 0.4899 GB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.1262, allocations: 1.666 MB / 0.4916 GB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000661/0.1268, allocations: 320.8 kB / 0.4919 GB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.26e-05/0.1269, allocations: 89.53 kB / 0.4919 GB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008204/0.1277, allocations: 466.5 kB / 0.4924 GB, free: 1.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.575e-06/0.1278, allocations: 0 / 0.4924 GB, free: 1.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006284/0.1341, allocations: 1.548 MB / 0.4939 GB, free: 236 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.1342, allocations: 269.6 kB / 0.4942 GB, free: 15.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007777/0.135, allocations: 0.6682 MB / 0.4948 GB, free: 15.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.91e-05/0.135, allocations: 37.7 kB / 0.4948 GB, free: 15.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.1354, allocations: 0.5218 MB / 0.4954 GB, free: 14.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1356, allocations: 213.1 kB / 0.4956 GB, free: 14.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.1358, allocations: 194.4 kB / 0.4957 GB, free: 14.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.136, allocations: 386.8 kB / 0.4961 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006644/0.1367, allocations: 281.8 kB / 0.4964 GB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008309/0.1375, allocations: 0.5402 MB / 0.4969 GB, free: 12.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.139, allocations: 0.9138 MB / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.139, allocations: 4 kB / 0.4978 GB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002213/0.1412, allocations: 1.059 MB / 0.4988 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.294e-05/0.1413, allocations: 71.42 kB / 0.4989 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1413, allocations: 11.94 kB / 0.4989 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005257/0.1418, allocations: 80.78 kB / 0.499 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009116/0.1427, allocations: 223.6 kB / 0.4992 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.1443, allocations: 1.582 MB / 0.5008 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007723/0.1451, allocations: 115 kB / 0.5009 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/0.1452, allocations: 43.97 kB / 0.5009 GB, free: 8.531 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.0004142/0.1456, allocations: 335.9 kB / 0.5012 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1457, allocations: 83.06 kB / 0.5013 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.1477, allocations: 0.9206 MB / 0.5022 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1477, allocations: 3.984 kB / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1477, allocations: 0 / 0.5022 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.148, allocations: 219.9 kB / 0.5024 GB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.1481, allocations: 19.98 kB / 0.5024 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/0.1487, allocations: 51.97 kB / 0.5025 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.1488, allocations: 40.5 kB / 0.5025 GB, free: 6.805 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.001292/0.1501, allocations: 0.7228 MB / 0.5032 GB, free: 6.047 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004 could not be translated