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.001705/0.001705, 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.001553/0.001553, allocations: 214.7 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.793 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.03099/0.03099, allocations: 5.486 MB / 317.9 MB, free: 13.52 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.00216/0.00216, allocations: 69.94 kB / 446.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1025, allocations: 54.62 MB / 0.489 GB, free: 12.89 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007219/0.1097, allocations: 4.67 MB / 0.4935 GB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004198/0.1139, allocations: 1.768 MB / 0.4953 GB, free: 6.418 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000642/0.1145, allocations: 15.94 kB / 0.4953 GB, free: 6.402 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000942/0.1155, allocations: 274 kB / 0.4955 GB, free: 6.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1167, allocations: 313.8 kB / 0.4958 GB, free: 5.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008522/0.1176, allocations: 323.4 kB / 0.4962 GB, free: 5.508 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.1191, allocations: 1.106 MB / 0.4972 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005656/0.1196, allocations: 295.3 kB / 0.4975 GB, free: 4.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007494/0.1204, allocations: 458.4 kB / 0.4979 GB, free: 3.633 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008507/0.1212, allocations: 477.8 kB / 0.4984 GB, free: 3.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002562/0.1215, allocations: 112 kB / 0.4985 GB, free: 3.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000398/0.1219, allocations: 184 kB / 0.4987 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.1221, allocations: 235.1 kB / 0.4989 GB, free: 2.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005415/0.1227, allocations: 414.2 kB / 0.4993 GB, free: 2.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00139/0.1241, allocations: 1.206 MB / 0.5005 GB, free: 1.027 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1241, allocations: 0 / 0.5005 GB, free: 1.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1241, allocations: 0 / 0.5005 GB, free: 1.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.009e-05/0.1241, allocations: 0 / 0.5005 GB, free: 1.027 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.003235/0.1273, allocations: 1.247 MB / 0.5017 GB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1274, allocations: 12.03 kB / 0.5017 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.1276, allocations: 114.7 kB / 0.5018 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002273/0.1278, allocations: 100.4 kB / 0.5019 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.1294, allocations: 0.5872 MB / 0.5025 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.531e-05/0.1295, allocations: 54 kB / 0.5025 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.1296, allocations: 76 kB / 0.5026 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.1313, allocations: 0.9013 MB / 0.5035 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.1313, allocations: 0 / 0.5035 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-05/0.1314, allocations: 28 kB / 0.5035 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.1314, allocations: 19.98 kB / 0.5035 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.1329, allocations: 0.6552 MB / 0.5042 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004598/0.1375, allocations: 2.468 MB / 0.5066 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.1389, allocations: 0.5399 MB / 0.5071 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000594/0.1395, allocations: 269.4 kB / 0.5074 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.389e-05/0.1396, allocations: 12.36 kB / 0.5074 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008363/0.1405, allocations: 499.9 kB / 0.5079 GB, free: 9.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.725e-06/0.1405, allocations: 0 / 0.5079 GB, free: 9.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003226/0.1437, allocations: 1.115 MB / 0.509 GB, free: 7.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.1438, allocations: 208.3 kB / 0.5092 GB, free: 7.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/0.1444, allocations: 469.9 kB / 0.5096 GB, free: 7.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/0.1445, allocations: 37.7 kB / 0.5096 GB, free: 7.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/0.1448, allocations: 372.3 kB / 0.51 GB, free: 6.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.145, allocations: 186.4 kB / 0.5102 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.1452, allocations: 150.6 kB / 0.5103 GB, free: 6.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1454, allocations: 362.8 kB / 0.5107 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.146, allocations: 273.3 kB / 0.5109 GB, free: 5.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007527/0.1468, allocations: 421.2 kB / 0.5113 GB, free: 5.367 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.01512/0.1619, allocations: 2.88 MB / 0.5141 GB, free: 2.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.1619, allocations: 0 / 0.5141 GB, free: 2.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002171/0.1641, allocations: 0.8793 MB / 0.515 GB, free: 1.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.1641, allocations: 71.33 kB / 0.5151 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1642, allocations: 4 kB / 0.5151 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004841/0.1646, allocations: 76.94 kB / 0.5151 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/0.1655, allocations: 171.7 kB / 0.5153 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2331/0.3986, allocations: 1.458 MB / 0.5167 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.3994, allocations: 70.8 kB / 0.5168 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.3994, allocations: 34.8 kB / 0.5168 GB, free: 31.95 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.0003999/0.3998, allocations: 294.5 kB / 0.5171 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4, allocations: 66.58 kB / 0.5172 GB, free: 31.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.4018, allocations: 1.002 MB / 0.5181 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4018, allocations: 5.781 kB / 0.5182 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.4018, allocations: 0.9375 kB / 0.5182 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.4018, allocations: 3.844 kB / 0.5182 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002953/0.4048, allocations: 1.649 MB / 0.5198 GB, free: 31.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.4048, allocations: 0 / 0.5198 GB, free: 31.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.4052, allocations: 105.8 kB / 0.5199 GB, free: 31.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005628/0.4058, allocations: 300.4 kB / 0.5202 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.4058, allocations: 20.67 kB / 0.5202 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009722/0.4068, allocations: 0.8889 MB / 0.521 GB, free: 30.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4068, allocations: 2.531 kB / 0.521 GB, free: 30.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.4093, allocations: 1.378 MB / 0.5224 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.4096, allocations: 117.6 kB / 0.5225 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4097, allocations: 21.38 kB / 0.5225 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004973/0.4102, allocations: 39.19 kB / 0.5226 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.4103, allocations: 49.06 kB / 0.5226 GB, free: 30.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.4104, allocations: 31.97 kB / 0.5226 GB, free: 30.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003709/0.4108, allocations: 331.1 kB / 0.523 GB, free: 29.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4108, allocations: 1.531 kB / 0.523 GB, free: 29.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.4114, allocations: 230.3 kB / 0.5232 GB, free: 29.92 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.002665/0.4141, allocations: 1.97 MB / 0.5251 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.4156, allocations: 0.915 MB / 0.526 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4156, allocations: 0 / 0.526 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.4163, allocations: 474.5 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.0006611/0.417, allocations: 118.9 kB / 0.5266 GB, free: 28.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008391/0.4254, allocations: 5.839 MB / 0.5323 GB, free: 24.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.4257, allocations: 341.3 kB / 0.5326 GB, free: 24.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004222/0.4262, allocations: 98.48 kB / 0.5327 GB, free: 24.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.4265, allocations: 291 kB / 0.533 GB, free: 24.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4265, allocations: 2.953 kB / 0.533 GB, free: 24.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06875/0.4953, allocations: 16.39 MB / 0.549 GB, free: 15.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.83, allocations: 11.05 kB / 0.549 GB, free: 15.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC_fmu --startTime=0 --stopTime=86400 --stepSize=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.96083899307996] Failed to read output from testmodel.py, exit status != 0: 13.95838682493195 13.974389171 13.847242581 Calling exit ...