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.001468/0.001468, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001641/0.001641, allocations: 214.8 kB / 22.25 MB, free: 5.082 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.575/1.575, allocations: 230.6 MB / 256 MB, free: 8.031 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.04891/0.04891, allocations: 5.478 MB / 317.9 MB, free: 13.77 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.002029/0.002029, allocations: 67.91 kB / 446.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1208, allocations: 54.61 MB / 0.4891 GB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007366/0.1282, allocations: 5.241 MB / 0.4942 GB, free: 7.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004217/0.1324, allocations: 1.916 MB / 0.4961 GB, free: 6.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007136/0.1331, allocations: 12 kB / 0.4961 GB, free: 6.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.1344, allocations: 294 kB / 0.4963 GB, free: 5.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.1361, allocations: 317.7 kB / 0.4966 GB, free: 5.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.1372, allocations: 327.4 kB / 0.497 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00206/0.1393, allocations: 1.106 MB / 0.498 GB, free: 4.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006823/0.14, allocations: 303.4 kB / 0.4983 GB, free: 3.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009969/0.141, allocations: 466.4 kB / 0.4988 GB, free: 3.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009181/0.1419, allocations: 0.5291 MB / 0.4993 GB, free: 2.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1421, allocations: 112 kB / 0.4994 GB, free: 2.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000384/0.1424, allocations: 187.9 kB / 0.4996 GB, free: 2.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.1426, allocations: 231.2 kB / 0.4998 GB, free: 2.191 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004835/0.1431, allocations: 497.7 kB / 0.5003 GB, free: 1.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.1447, allocations: 1.191 MB / 0.5014 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.422e-05/0.1447, allocations: 11.92 kB / 0.5014 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1447, allocations: 0 / 0.5014 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.1447, allocations: 0 / 0.5014 GB, free: 0.4961 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.003374/0.1481, allocations: 1.252 MB / 0.5027 GB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1482, allocations: 8.031 kB / 0.5027 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.1483, allocations: 122.7 kB / 0.5028 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.1485, allocations: 96.33 kB / 0.5029 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.1501, allocations: 0.5892 MB / 0.5035 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.1501, allocations: 58 kB / 0.5035 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1502, allocations: 72 kB / 0.5036 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.1517, allocations: 0.7814 MB / 0.5043 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.1518, allocations: 0 / 0.5043 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.1518, allocations: 32 kB / 0.5044 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.1519, allocations: 16 kB / 0.5044 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.1533, allocations: 0.6011 MB / 0.505 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004593/0.1579, allocations: 2.675 MB / 0.5076 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.1593, allocations: 494.7 kB / 0.5081 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.1598, allocations: 213.6 kB / 0.5083 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.085e-05/0.1599, allocations: 8.359 kB / 0.5083 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007582/0.1606, allocations: 389.1 kB / 0.5086 GB, free: 8.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.726e-06/0.1607, allocations: 0 / 0.5086 GB, free: 8.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003051/0.1637, allocations: 0.954 MB / 0.5096 GB, free: 7.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.1638, allocations: 200.3 kB / 0.5098 GB, free: 7.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006147/0.1645, allocations: 461.9 kB / 0.5102 GB, free: 7.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.1645, allocations: 45.7 kB / 0.5103 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000338/0.1649, allocations: 372.4 kB / 0.5106 GB, free: 6.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.165, allocations: 186.5 kB / 0.5108 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.1653, allocations: 138.6 kB / 0.5109 GB, free: 6.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.1655, allocations: 366.8 kB / 0.5113 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005396/0.166, allocations: 217.9 kB / 0.5115 GB, free: 5.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006478/0.1666, allocations: 365.9 kB / 0.5118 GB, free: 5.445 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.01562/0.1823, allocations: 2.835 MB / 0.5146 GB, free: 2.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/0.1823, allocations: 11.94 kB / 0.5146 GB, free: 2.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002164/0.1844, allocations: 0.8288 MB / 0.5154 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.817e-05/0.1845, allocations: 63.73 kB / 0.5155 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.1845, allocations: 8 kB / 0.5155 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/0.185, allocations: 80.78 kB / 0.5156 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008186/0.1859, allocations: 167.7 kB / 0.5157 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.237/0.4228, allocations: 1.462 MB / 0.5171 GB, free: 31.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009886/0.4238, allocations: 76.56 kB / 0.5172 GB, free: 31.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.462e-05/0.4239, allocations: 37.56 kB / 0.5173 GB, free: 31.59 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.0005145/0.4244, allocations: 285.1 kB / 0.5175 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.4245, allocations: 67.61 kB / 0.5176 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.4263, allocations: 0.9009 MB / 0.5185 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4263, allocations: 6.609 kB / 0.5185 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.4263, allocations: 4.625 kB / 0.5185 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.4263, allocations: 1.781 kB / 0.5185 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/0.4292, allocations: 1.642 MB / 0.5201 GB, free: 30.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4292, allocations: 1.797 kB / 0.5201 GB, free: 30.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004908/0.4297, allocations: 108.7 kB / 0.5202 GB, free: 30.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006065/0.4303, allocations: 265.3 kB / 0.5204 GB, free: 30.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.4304, allocations: 20.34 kB / 0.5205 GB, free: 30.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009235/0.4313, allocations: 0.8275 MB / 0.5213 GB, free: 30.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4313, allocations: 5.031 kB / 0.5213 GB, free: 30.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.4337, allocations: 1.211 MB / 0.5225 GB, free: 30.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.4339, allocations: 122 kB / 0.5226 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.4341, allocations: 20.5 kB / 0.5226 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005195/0.4346, allocations: 36.06 kB / 0.5226 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.4347, allocations: 49.31 kB / 0.5227 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/0.4347, allocations: 27.5 kB / 0.5227 GB, free: 30.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000408/0.4351, allocations: 329.2 kB / 0.523 GB, free: 30.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4351, allocations: 0 / 0.523 GB, free: 30.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007605/0.4359, allocations: 233.4 kB / 0.5232 GB, free: 30.01 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.002874/0.4388, allocations: 1.806 MB / 0.525 GB, free: 29.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.4405, allocations: 0.8014 MB / 0.5258 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4405, allocations: 0 / 0.5258 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006762/0.4412, allocations: 402.1 kB / 0.5262 GB, free: 28.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007912/0.442, allocations: 123 kB / 0.5263 GB, free: 28.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009695/0.4517, allocations: 5.551 MB / 0.5317 GB, free: 25.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005464/0.4522, allocations: 0.9387 MB / 0.5326 GB, free: 25.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004753/0.4527, allocations: 96.77 kB / 0.5327 GB, free: 25.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003873/0.4531, allocations: 295.1 kB / 0.533 GB, free: 24.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4531, allocations: 5.219 kB / 0.533 GB, free: 24.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.5037, allocations: 16.17 MB / 0.5488 GB, free: 16.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.16, allocations: 7.938 kB / 0.5488 GB, free: 16.8 MB / 382.1 MB " [Timeout remaining time 646] (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: 22.09992690099898] Failed to read output from testmodel.py, exit status != 0: 14.292155285998888 14.303728301 14.156510212 Calling exit ...