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.001309/0.001309, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001499/0.001499, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.471/1.471, allocations: 230.6 MB / 256 MB, free: 7.824 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.04396/0.04396, allocations: 5.492 MB / 317.9 MB, free: 13.55 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.002291/0.002291, allocations: 59.91 kB / 446.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1103, allocations: 54.63 MB / 0.489 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007344/0.1176, allocations: 4.67 MB / 0.4935 GB, free: 8.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003694/0.1213, allocations: 1.772 MB / 0.4953 GB, free: 6.484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006234/0.1219, allocations: 15.94 kB / 0.4953 GB, free: 6.469 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008755/0.1228, allocations: 274.1 kB / 0.4955 GB, free: 6.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.1239, allocations: 309.8 kB / 0.4958 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009075/0.1248, allocations: 327.4 kB / 0.4962 GB, free: 5.574 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.1264, allocations: 1.106 MB / 0.4972 GB, free: 4.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006413/0.1271, allocations: 283.4 kB / 0.4975 GB, free: 4.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009076/0.128, allocations: 462.4 kB / 0.4979 GB, free: 3.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009348/0.1289, allocations: 485.8 kB / 0.4984 GB, free: 3.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002435/0.1292, allocations: 112 kB / 0.4985 GB, free: 3.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004195/0.1296, allocations: 184 kB / 0.4987 GB, free: 2.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.1298, allocations: 231.1 kB / 0.4989 GB, free: 2.715 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005795/0.1304, allocations: 410.2 kB / 0.4993 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.132, allocations: 1.21 MB / 0.5005 GB, free: 1.098 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.132, allocations: 0 / 0.5005 GB, free: 1.098 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.132, allocations: 0 / 0.5005 GB, free: 1.098 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.091e-05/0.1321, allocations: 0 / 0.5005 GB, free: 1.098 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.003435/0.1355, allocations: 1.249 MB / 0.5017 GB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.1355, allocations: 12.03 kB / 0.5017 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001947/0.1357, allocations: 118.7 kB / 0.5018 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.136, allocations: 100.3 kB / 0.5019 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.1375, allocations: 0.5814 MB / 0.5025 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-05/0.1376, allocations: 58 kB / 0.5025 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.1377, allocations: 72 kB / 0.5026 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.1394, allocations: 0.8975 MB / 0.5035 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.1394, allocations: 4 kB / 0.5035 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.254e-05/0.1395, allocations: 31.98 kB / 0.5035 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.1395, allocations: 16 kB / 0.5035 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.141, allocations: 0.6552 MB / 0.5042 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.1457, allocations: 2.468 MB / 0.5066 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.1472, allocations: 0.532 MB / 0.5071 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006209/0.1478, allocations: 273.4 kB / 0.5074 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.068e-05/0.1479, allocations: 12.36 kB / 0.5074 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008396/0.1487, allocations: 0.4921 MB / 0.5079 GB, free: 9.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.605e-06/0.1488, allocations: 0 / 0.5079 GB, free: 9.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003156/0.1519, allocations: 1.119 MB / 0.509 GB, free: 8.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.1521, allocations: 200.3 kB / 0.5091 GB, free: 7.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006336/0.1527, allocations: 461.9 kB / 0.5096 GB, free: 7.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/0.1527, allocations: 37.7 kB / 0.5096 GB, free: 7.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003243/0.1531, allocations: 380.3 kB / 0.51 GB, free: 6.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.1533, allocations: 190.4 kB / 0.5102 GB, free: 6.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/0.1535, allocations: 146.6 kB / 0.5103 GB, free: 6.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.1537, allocations: 362.8 kB / 0.5107 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005998/0.1543, allocations: 269.3 kB / 0.5109 GB, free: 5.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007293/0.155, allocations: 425.3 kB / 0.5113 GB, free: 5.441 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.01496/0.17, allocations: 2.868 MB / 0.5141 GB, free: 2.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.17, allocations: 7.938 kB / 0.5141 GB, free: 2.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002136/0.1721, allocations: 0.891 MB / 0.515 GB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.658e-05/0.1722, allocations: 63.39 kB / 0.5151 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1722, allocations: 7.984 kB / 0.5151 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004785/0.1727, allocations: 80.94 kB / 0.5151 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008376/0.1735, allocations: 167.7 kB / 0.5153 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2189/0.3924, allocations: 1.462 MB / 0.5167 GB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008134/0.3932, allocations: 68.77 kB / 0.5168 GB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.853e-05/0.3933, allocations: 36.28 kB / 0.5168 GB, free: 31.92 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.0004086/0.3937, allocations: 289.2 kB / 0.5171 GB, free: 31.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.3938, allocations: 66.69 kB / 0.5172 GB, free: 31.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.3956, allocations: 1.004 MB / 0.5181 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.3956, allocations: 5.188 kB / 0.5182 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3956, allocations: 3.625 kB / 0.5182 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3956, allocations: 2.766 kB / 0.5182 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.3984, allocations: 1.65 MB / 0.5198 GB, free: 31.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3984, allocations: 0.7969 kB / 0.5198 GB, free: 31.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.3989, allocations: 104.8 kB / 0.5199 GB, free: 31.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006021/0.3995, allocations: 292.3 kB / 0.5201 GB, free: 31.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.3996, allocations: 22.84 kB / 0.5202 GB, free: 31.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.4006, allocations: 0.8856 MB / 0.521 GB, free: 30.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4006, allocations: 7.953 kB / 0.521 GB, free: 30.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.4034, allocations: 1.373 MB / 0.5224 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/0.4037, allocations: 122.3 kB / 0.5225 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4038, allocations: 21.75 kB / 0.5225 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/0.4043, allocations: 42.89 kB / 0.5226 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4045, allocations: 44.2 kB / 0.5226 GB, free: 30.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-05/0.4045, allocations: 32.48 kB / 0.5226 GB, free: 30.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004295/0.405, allocations: 328.3 kB / 0.5229 GB, free: 29.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.405, allocations: 0 / 0.5229 GB, free: 29.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009532/0.4059, allocations: 234.5 kB / 0.5232 GB, free: 29.91 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.003659/0.4096, allocations: 1.97 MB / 0.5251 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.4117, allocations: 0.9217 MB / 0.526 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4117, allocations: 1.375 kB / 0.526 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007063/0.4124, allocations: 469.6 kB / 0.5264 GB, free: 28.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007121/0.4131, allocations: 130.1 kB / 0.5266 GB, free: 28.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008714/0.4218, allocations: 5.828 MB / 0.5323 GB, free: 24.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.4222, allocations: 348.3 kB / 0.5326 GB, free: 24.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004279/0.4227, allocations: 90.33 kB / 0.5327 GB, free: 24.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.4231, allocations: 297.2 kB / 0.533 GB, free: 24.54 MB / 382.1 MB Notification: Performance of SimCode: time 2.114e-06/0.4231, allocations: 3.938 kB / 0.533 GB, free: 24.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04955/0.4726, allocations: 16.39 MB / 0.549 GB, free: 15.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/13.93, allocations: 7.328 kB / 0.549 GB, free: 15.84 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: 21.79768034024164] Failed to read output from testmodel.py, exit status != 0: 14.05245096096769 14.063399396 13.928992682 Calling exit ...