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.00627/0.00627, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001288/0.001288, allocations: 194 kB / 16.67 MB, free: 5.953 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.4/1.4, 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.02943/0.02943, allocations: 5.401 MB / 295.9 MB, free: 9.445 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 67.89 kB / 412.3 MB, free: 22.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.094, allocations: 50.62 MB / 462.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006724/0.1008, allocations: 5.152 MB / 468.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.1041, allocations: 1.877 MB / 470 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.1045, allocations: 15.88 kB / 470 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007212/0.1052, allocations: 286 kB / 470.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006366/0.1059, allocations: 293.8 kB / 470.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006406/0.1065, allocations: 311.5 kB / 470.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001319/0.1079, allocations: 1.126 MB / 472 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006103/0.1085, allocations: 438.7 kB / 472.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000572/0.1091, allocations: 446.4 kB / 472.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007365/0.1098, allocations: 0.5291 MB / 473.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.11, allocations: 112 kB / 473.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.1103, allocations: 175.9 kB / 473.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.1105, allocations: 227.2 kB / 473.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004615/0.111, allocations: 0.4937 MB / 474.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.1122, allocations: 1.179 MB / 475.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1122, allocations: 3.984 kB / 475.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1123, allocations: 0 / 475.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1123, allocations: 0 / 475.5 MB, free: 7.539 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.003093/0.1154, allocations: 1.32 MB / 476.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1154, allocations: 16.02 kB / 476.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/0.1156, allocations: 118.7 kB / 477 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.1158, allocations: 100.4 kB / 477.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.1172, allocations: 0.6509 MB / 477.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.093e-05/0.1173, allocations: 58 kB / 477.8 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1174, allocations: 72 kB / 477.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.1188, allocations: 0.7815 MB / 478.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.1188, allocations: 3.938 kB / 478.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/0.1189, allocations: 32 kB / 478.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.119, allocations: 20 kB / 478.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.1203, allocations: 0.6011 MB / 479.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004393/0.1247, allocations: 2.735 MB / 482 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.1264, allocations: 0.9104 MB / 483 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005589/0.1269, allocations: 249.1 kB / 483.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.1271, allocations: 89.47 kB / 483.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007398/0.1278, allocations: 385.4 kB / 483.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.1278, allocations: 0 / 483.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003086/0.1309, allocations: 1.07 MB / 484.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.1311, allocations: 200.3 kB / 484.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005936/0.1317, allocations: 461.9 kB / 485.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.1318, allocations: 37.7 kB / 485.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.1321, allocations: 364.4 kB / 485.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.1322, allocations: 194.4 kB / 486 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.1325, allocations: 146.6 kB / 486.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.1327, allocations: 370.7 kB / 486.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005435/0.1332, allocations: 217.9 kB / 486.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006425/0.1339, allocations: 361.9 kB / 487 MB, free: 11.46 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.01208/0.146, allocations: 2.384 MB / 489.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.146, allocations: 7.938 kB / 489.4 MB, free: 8.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001964/0.148, allocations: 0.8152 MB / 490.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.938e-05/0.1481, allocations: 63.39 kB / 490.3 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1481, allocations: 4 kB / 490.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004664/0.1486, allocations: 84.72 kB / 490.4 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000802/0.1494, allocations: 167.9 kB / 490.6 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.1511, allocations: 1.581 MB / 492.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.1518, allocations: 75.69 kB / 492.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.971e-05/0.1519, allocations: 35.98 kB / 492.2 MB, free: 5.961 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.0005077/0.1524, allocations: 284 kB / 492.5 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.1525, allocations: 67.56 kB / 492.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.1545, allocations: 0.9361 MB / 493.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.1545, allocations: 8 kB / 493.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1546, allocations: 3.938 kB / 493.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.1546, allocations: 3.984 kB / 493.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.1588, allocations: 1.841 MB / 495.4 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1589, allocations: 0 / 495.4 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004713/0.1593, allocations: 103.9 kB / 495.5 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005908/0.1599, allocations: 258.3 kB / 495.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.16, allocations: 31.92 kB / 495.8 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.1611, allocations: 0.8155 MB / 496.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1611, allocations: 0 / 496.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003708/0.1649, allocations: 1.393 MB / 498 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003058/0.1652, allocations: 192.5 kB / 498.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.1653, allocations: 20 kB / 498.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.1658, allocations: 39.97 kB / 498.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.1659, allocations: 48.44 kB / 498.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.302e-05/0.166, allocations: 23.98 kB / 498.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004103/0.1664, allocations: 330.9 kB / 498.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.278e-06/0.1664, allocations: 0 / 498.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007087/0.1672, allocations: 235.5 kB / 498.8 MB, free: 15.14 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.00419/0.1713, allocations: 1.969 MB / 0.4891 GB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.1731, allocations: 0.8263 MB / 0.4899 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1731, allocations: 0 / 0.4899 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008018/0.1739, allocations: 486.7 kB / 0.4903 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007305/0.1747, allocations: 134 kB / 0.4905 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009407/0.1841, allocations: 5.556 MB / 0.4959 GB, free: 5.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.1847, allocations: 0.9263 MB / 0.4968 GB, free: 4.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.1851, allocations: 92.95 kB / 0.4969 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004237/0.1856, allocations: 291.3 kB / 0.4972 GB, free: 4.531 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1856, allocations: 0 / 0.4972 GB, free: 4.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.233/0.4185, allocations: 15.49 MB / 0.5123 GB, free: 49.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.83, allocations: 5.062 kB / 0.5123 GB, free: 49.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)