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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 109.6 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002288/0.002288, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 252.8 MB, free: 8.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.03093/0.03093, allocations: 5.478 MB / 314.3 MB, free: 14.92 MB / 254.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.91 kB / 440.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1026, allocations: 54.59 MB / 495.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.00728/0.1099, allocations: 5.189 MB / 0.4886 GB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.1134, allocations: 1.912 MB / 0.4905 GB, free: 10.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004978/0.1139, allocations: 12 kB / 0.4905 GB, free: 10.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007433/0.1147, allocations: 301.9 kB / 0.4908 GB, free: 9.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000712/0.1154, allocations: 309.7 kB / 0.4911 GB, free: 9.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006491/0.1161, allocations: 327.5 kB / 0.4914 GB, free: 9.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.1172, allocations: 1.11 MB / 0.4925 GB, free: 7.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005088/0.1177, allocations: 310.8 kB / 0.4928 GB, free: 7.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006024/0.1183, allocations: 458.4 kB / 0.4932 GB, free: 7.207 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000698/0.119, allocations: 0.5331 MB / 0.4938 GB, free: 6.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.1192, allocations: 115.9 kB / 0.4939 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.1195, allocations: 183.9 kB / 0.494 GB, free: 6.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.1197, allocations: 227.2 kB / 0.4943 GB, free: 6.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004676/0.1202, allocations: 497.6 kB / 0.4947 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.1216, allocations: 1.191 MB / 0.4959 GB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1216, allocations: 0 / 0.4959 GB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1216, allocations: 3.938 kB / 0.4959 GB, free: 4.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.1216, allocations: 0 / 0.4959 GB, free: 4.469 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: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.003188/0.1248, allocations: 1.32 MB / 0.4972 GB, free: 3.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1249, allocations: 12.03 kB / 0.4972 GB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001625/0.125, allocations: 118.7 kB / 0.4973 GB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.1252, allocations: 96.33 kB / 0.4974 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.1267, allocations: 0.651 MB / 0.498 GB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.1268, allocations: 62 kB / 0.4981 GB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.1269, allocations: 68 kB / 0.4982 GB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.1284, allocations: 0.7814 MB / 0.4989 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.1284, allocations: 7.938 kB / 0.4989 GB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-05/0.1285, allocations: 32 kB / 0.499 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.1285, allocations: 16 kB / 0.499 GB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.13, allocations: 0.605 MB / 0.4996 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004731/0.1347, allocations: 2.723 MB / 0.5022 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.1363, allocations: 0.8688 MB / 0.5031 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000555/0.1369, allocations: 210 kB / 0.5033 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.137, allocations: 81.48 kB / 0.5034 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008193/0.1378, allocations: 393.4 kB / 0.5037 GB, free: 12.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.495e-06/0.1378, allocations: 0 / 0.5037 GB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003123/0.1409, allocations: 1.035 MB / 0.5047 GB, free: 10.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.1411, allocations: 200.3 kB / 0.5049 GB, free: 10.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006003/0.1417, allocations: 461.9 kB / 0.5054 GB, free: 10.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.1418, allocations: 41.7 kB / 0.5054 GB, free: 10.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.1421, allocations: 372.4 kB / 0.5058 GB, free: 9.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.1422, allocations: 186.5 kB / 0.5059 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.1425, allocations: 142.6 kB / 0.5061 GB, free: 9.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1426, allocations: 362.8 kB / 0.5064 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005538/0.1432, allocations: 217.9 kB / 0.5066 GB, free: 8.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.1439, allocations: 369.8 kB / 0.507 GB, free: 8.523 MB / 382.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.01534/0.1592, allocations: 2.915 MB / 0.5098 GB, free: 5.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.1592, allocations: 7.938 kB / 0.5098 GB, free: 5.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0021/0.1613, allocations: 0.819 MB / 0.5106 GB, free: 4.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.832e-05/0.1614, allocations: 63.39 kB / 0.5107 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1614, allocations: 4 kB / 0.5107 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004759/0.1619, allocations: 84.94 kB / 0.5108 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008268/0.1627, allocations: 167.7 kB / 0.5109 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/0.1645, allocations: 1.582 MB / 0.5125 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007013/0.1652, allocations: 75.53 kB / 0.5126 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.519e-05/0.1653, allocations: 31.98 kB / 0.5126 GB, free: 2.488 MB / 382.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.0004495/0.1657, allocations: 287.4 kB / 0.5129 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1658, allocations: 63.56 kB / 0.5129 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.1679, allocations: 0.9049 MB / 0.5138 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.1679, allocations: 4 kB / 0.5138 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1679, allocations: 3.984 kB / 0.5138 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1679, allocations: 7.984 kB / 0.5138 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2031/0.371, allocations: 1.665 MB / 0.5155 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.371, allocations: 2.344 kB / 0.5155 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.3715, allocations: 102.1 kB / 0.5156 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00059/0.3721, allocations: 263 kB / 0.5158 GB, free: 34.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.3722, allocations: 22.94 kB / 0.5158 GB, free: 34.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.3732, allocations: 0.818 MB / 0.5166 GB, free: 34.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3732, allocations: 4.031 kB / 0.5166 GB, free: 34.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.3758, allocations: 1.217 MB / 0.5178 GB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002776/0.3761, allocations: 195.3 kB / 0.518 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3762, allocations: 21 kB / 0.518 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/0.3767, allocations: 36.23 kB / 0.5181 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.3768, allocations: 44.53 kB / 0.5181 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.3769, allocations: 26.34 kB / 0.5181 GB, free: 33.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003814/0.3773, allocations: 325.8 kB / 0.5184 GB, free: 33.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3773, allocations: 3.969 kB / 0.5184 GB, free: 33.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007431/0.378, allocations: 231.3 kB / 0.5187 GB, free: 33.66 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.002795/0.3808, allocations: 1.814 MB / 0.5204 GB, free: 32.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.3825, allocations: 0.7916 MB / 0.5212 GB, free: 32.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3825, allocations: 0 / 0.5212 GB, free: 32.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007071/0.3832, allocations: 398.5 kB / 0.5216 GB, free: 32.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.384, allocations: 138.3 kB / 0.5217 GB, free: 32.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008853/0.3928, allocations: 5.556 MB / 0.5271 GB, free: 29.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.3932, allocations: 0.9382 MB / 0.5281 GB, free: 28.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003857/0.3936, allocations: 90.17 kB / 0.5281 GB, free: 28.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.394, allocations: 292.5 kB / 0.5284 GB, free: 28.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.394, allocations: 0 / 0.5284 GB, free: 28.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04713/0.4411, allocations: 15.65 MB / 0.5437 GB, free: 21.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.23, allocations: 15.16 kB / 0.5437 GB, free: 21.43 MB / 382.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.04605452400574] Failed to read output from testmodel.py, exit status != 0: 13.334219625001424 13.34850308 13.223953595 Calling exit ...