Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.conf.json 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 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005552/0.005552, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001401/0.001401, allocations: 189.4 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02811/0.02811, allocations: 5.396 MB / 295.9 MB, free: 9.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.91 kB / 412.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08764, allocations: 50.62 MB / 462.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006498/0.09418, allocations: 5.152 MB / 468.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003457/0.09766, allocations: 1.873 MB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.09873, allocations: 12 kB / 470 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.09988, allocations: 302 kB / 470.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.1013, allocations: 309.7 kB / 470.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008065/0.1021, allocations: 319.5 kB / 470.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.1036, allocations: 1.117 MB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006831/0.1043, allocations: 446.7 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007416/0.105, allocations: 446.4 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008441/0.1059, allocations: 0.5291 MB / 473.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002387/0.1062, allocations: 115.9 kB / 473.5 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003557/0.1065, allocations: 172 kB / 473.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.1067, allocations: 227.2 kB / 473.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000582/0.1073, allocations: 0.4898 MB / 474.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.1088, allocations: 1.183 MB / 475.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1088, allocations: 7.938 kB / 475.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1088, allocations: 0 / 475.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.881e-05/0.1088, allocations: 0 / 475.6 MB, free: 7.609 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.003397/0.1122, allocations: 1.328 MB / 476.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1123, allocations: 11.97 kB / 476.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001625/0.1125, allocations: 114.7 kB / 477 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.1127, allocations: 100.4 kB / 477.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.1143, allocations: 0.6549 MB / 477.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.1143, allocations: 54 kB / 477.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1145, allocations: 75.94 kB / 477.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.1159, allocations: 0.7815 MB / 478.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.116, allocations: 0 / 478.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/0.116, allocations: 32 kB / 478.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.1161, allocations: 20 kB / 478.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.1174, allocations: 0.5972 MB / 479.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.1216, allocations: 2.739 MB / 482.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.1232, allocations: 0.9102 MB / 483 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.1237, allocations: 246 kB / 483.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.1239, allocations: 85.48 kB / 483.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006962/0.1246, allocations: 389.4 kB / 483.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.445e-06/0.1246, allocations: 0 / 483.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002938/0.1275, allocations: 1.066 MB / 484.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.1277, allocations: 196.4 kB / 485 MB, free: 13.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005075/0.1282, allocations: 465.9 kB / 485.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/0.1282, allocations: 37.7 kB / 485.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.1285, allocations: 372.4 kB / 485.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.1287, allocations: 194.4 kB / 486 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.1289, allocations: 142.6 kB / 486.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.129, allocations: 366.8 kB / 486.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000517/0.1295, allocations: 217.9 kB / 486.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005922/0.1301, allocations: 365.8 kB / 487.1 MB, free: 11.53 MB / 366.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.01159/0.1417, allocations: 2.376 MB / 489.4 MB, free: 9.047 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.1418, allocations: 3.938 kB / 489.4 MB, free: 9.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001887/0.1437, allocations: 0.823 MB / 490.3 MB, free: 8.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.1437, allocations: 59.41 kB / 490.3 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1438, allocations: 4.188 kB / 490.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004424/0.1442, allocations: 84.78 kB / 490.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/0.145, allocations: 171.7 kB / 490.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.1467, allocations: 1.593 MB / 492.2 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.1473, allocations: 67.61 kB / 492.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.772e-05/0.1474, allocations: 35.97 kB / 492.3 MB, free: 6.031 MB / 366.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: 18 * Number of states: 0 () * Number of discrete variables: 22 (irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,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,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * 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.0004098/0.1478, allocations: 296.1 kB / 492.6 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1479, allocations: 71.5 kB / 492.6 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.1498, allocations: 0.9282 MB / 493.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.1498, allocations: 8 kB / 493.6 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1498, allocations: 0 / 493.6 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.1499, allocations: 7.984 kB / 493.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.154, allocations: 1.837 MB / 495.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.154, allocations: 0 / 495.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.1545, allocations: 103.9 kB / 495.5 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005289/0.1551, allocations: 254.3 kB / 495.8 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.1551, allocations: 23.92 kB / 495.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009951/0.1561, allocations: 0.8273 MB / 496.6 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1561, allocations: 0 / 496.6 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.1597, allocations: 1.389 MB / 498 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/0.1601, allocations: 192.5 kB / 498.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.1602, allocations: 23.98 kB / 498.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005315/0.1607, allocations: 43.97 kB / 498.3 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.1609, allocations: 44.44 kB / 498.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.982e-05/0.1609, allocations: 27.98 kB / 498.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.1613, allocations: 322.9 kB / 498.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1613, allocations: 0 / 498.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007848/0.1621, allocations: 227.5 kB / 498.9 MB, free: 15.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (converter.integrator.y,battery.energy,battery.capacitor.v) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 13 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004049/0.1662, allocations: 1.981 MB / 0.4891 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.1679, allocations: 0.8224 MB / 0.4899 GB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1679, allocations: 4 kB / 0.4899 GB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007565/0.1687, allocations: 486.6 kB / 0.4904 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.1694, allocations: 121.8 kB / 0.4905 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008933/0.1784, allocations: 5.557 MB / 0.4959 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.179, allocations: 0.9341 MB / 0.4968 GB, free: 4.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003813/0.1794, allocations: 100.9 kB / 0.4969 GB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/0.1798, allocations: 295.3 kB / 0.4972 GB, free: 4.59 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1798, allocations: 0 / 0.4972 GB, free: 4.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2473/0.4271, allocations: 15.48 MB / 0.5123 GB, free: 50.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.59, allocations: 2.188 kB / 0.5123 GB, free: 50.24 MB / 382.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)