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.006611/0.006611, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001373/0.001373, allocations: 195.3 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03101/0.03101, allocations: 5.392 MB / 295.9 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001992, allocations: 72.09 kB / 412.3 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09318, allocations: 50.62 MB / 462.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007392/0.1006, allocations: 5.144 MB / 468.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003569/0.1042, allocations: 1.873 MB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.1048, allocations: 12 kB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007932/0.1056, allocations: 294 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007482/0.1064, allocations: 289.8 kB / 470.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.107, allocations: 311.5 kB / 470.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001238/0.1083, allocations: 1.126 MB / 472 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006197/0.1089, allocations: 450.7 kB / 472.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005653/0.1095, allocations: 442.4 kB / 472.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007213/0.1102, allocations: 0.5331 MB / 473.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.1104, allocations: 112 kB / 473.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003009/0.1107, allocations: 172 kB / 473.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.1109, allocations: 227.2 kB / 473.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000529/0.1115, allocations: 497.7 kB / 474.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.1129, allocations: 1.187 MB / 475.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1129, allocations: 4 kB / 475.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1129, allocations: 0 / 475.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.113, allocations: 0 / 475.5 MB, free: 7.648 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.002991/0.116, allocations: 1.328 MB / 476.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.116, allocations: 8.031 kB / 476.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.1162, allocations: 118.7 kB / 477 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1164, allocations: 92.38 kB / 477.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.1178, allocations: 0.6588 MB / 477.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.778e-05/0.1178, allocations: 54 kB / 477.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.118, allocations: 76 kB / 477.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1194, allocations: 0.7814 MB / 478.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.1194, allocations: 4 kB / 478.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.1195, allocations: 32 kB / 478.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.1195, allocations: 16 kB / 478.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.1209, allocations: 0.5972 MB / 479.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/0.1254, allocations: 2.739 MB / 482 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.127, allocations: 0.9104 MB / 483 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005736/0.1276, allocations: 248.1 kB / 483.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.1278, allocations: 89.47 kB / 483.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007508/0.1285, allocations: 389.5 kB / 483.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.1285, allocations: 0 / 483.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003055/0.1316, allocations: 1.066 MB / 484.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.1317, allocations: 196.4 kB / 484.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006172/0.1324, allocations: 465.9 kB / 485.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.1324, allocations: 41.7 kB / 485.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.1327, allocations: 368.4 kB / 485.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1329, allocations: 194.4 kB / 486 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.1332, allocations: 138.6 kB / 486.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.1334, allocations: 366.8 kB / 486.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.1339, allocations: 217.9 kB / 486.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006703/0.1346, allocations: 365.8 kB / 487 MB, free: 11.57 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.01184/0.1465, allocations: 2.384 MB / 489.4 MB, free: 9.082 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.1465, allocations: 7.938 kB / 489.4 MB, free: 9.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002025/0.1485, allocations: 0.8191 MB / 490.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.787e-05/0.1486, allocations: 63.39 kB / 490.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1486, allocations: 4 kB / 490.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004595/0.1491, allocations: 80.94 kB / 490.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008058/0.1499, allocations: 171.7 kB / 490.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.1517, allocations: 1.585 MB / 492.1 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006855/0.1524, allocations: 67.61 kB / 492.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.015e-05/0.1525, allocations: 39.97 kB / 492.2 MB, free: 6.07 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.0004626/0.153, allocations: 291.7 kB / 492.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.1531, allocations: 71.5 kB / 492.6 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.1551, allocations: 0.9321 MB / 493.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1552, allocations: 8 kB / 493.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1552, allocations: 0 / 493.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1552, allocations: 0 / 493.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.1594, allocations: 1.841 MB / 495.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1595, allocations: 0 / 495.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.16, allocations: 107.8 kB / 495.5 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006121/0.1606, allocations: 258.3 kB / 495.7 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.1606, allocations: 27.92 kB / 495.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.1618, allocations: 0.8273 MB / 496.6 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1618, allocations: 0 / 496.6 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.1655, allocations: 1.382 MB / 498 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003202/0.1658, allocations: 196.7 kB / 498.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.1659, allocations: 20 kB / 498.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/0.1665, allocations: 43.97 kB / 498.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.1666, allocations: 56.17 kB / 498.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.1667, allocations: 23.98 kB / 498.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004181/0.1671, allocations: 322.9 kB / 498.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1671, allocations: 0 / 498.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007512/0.1678, allocations: 231.5 kB / 498.8 MB, free: 15.25 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.004146/0.172, allocations: 1.981 MB / 0.4891 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.1738, allocations: 0.8228 MB / 0.4899 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1738, allocations: 0 / 0.4899 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.1746, allocations: 485.8 kB / 0.4904 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007392/0.1754, allocations: 126.5 kB / 0.4905 GB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009449/0.1848, allocations: 5.549 MB / 0.4959 GB, free: 5.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006666/0.1855, allocations: 0.9341 MB / 0.4968 GB, free: 5.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004089/0.1859, allocations: 92.94 kB / 0.4969 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004492/0.1864, allocations: 295.3 kB / 0.4972 GB, free: 4.637 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1864, allocations: 3.938 kB / 0.4972 GB, free: 4.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2328/0.4193, allocations: 15.48 MB / 0.5123 GB, free: 50.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.21, allocations: 3.344 kB / 0.5123 GB, free: 50.25 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)