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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 221.4 MB / 234.6 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009434/0.0009434, allocations: 88.88 kB / 285.6 MB, free: 13.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02465/0.02465, allocations: 5.29 MB / 341.8 MB, free: 4.844 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.688e-05/3.714e-05, allocations: 0 / 403.8 MB, free: 62.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 51.61 MB / 455.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3811/0.4873, allocations: 88.61 MB / 0.5313 GB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.4875, allocations: 70.03 kB / 0.5313 GB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06134/0.5489, allocations: 21.41 MB / 0.5523 GB, free: 148 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5489, allocations: 0 / 0.5523 GB, free: 148 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.376e-05/0.549, allocations: 20 kB / 0.5523 GB, free: 128 kB / 362.7 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.001963/0.5509, allocations: 1.007 MB / 0.5533 GB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.551, allocations: 12.03 kB / 0.5533 GB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.5511, allocations: 120 kB / 0.5534 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.5513, allocations: 90.97 kB / 0.5535 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006896/0.552, allocations: 493.5 kB / 0.5539 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.834e-05/0.552, allocations: 56.69 kB / 0.554 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.5522, allocations: 81.59 kB / 0.5541 GB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.5534, allocations: 0.7661 MB / 0.5548 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.5534, allocations: 0 / 0.5548 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.488e-05/0.5535, allocations: 31.5 kB / 0.5549 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.555e-05/0.5536, allocations: 20 kB / 0.5549 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.5547, allocations: 0.6481 MB / 0.5555 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00423/0.5589, allocations: 2.886 MB / 0.5583 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.5601, allocations: 0.9102 MB / 0.5592 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.5605, allocations: 246.7 kB / 0.5594 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.5607, allocations: 93.47 kB / 0.5595 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005615/0.5612, allocations: 426.3 kB / 0.5599 GB, free: 9.648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.236e-06/0.5612, allocations: 0 / 0.5599 GB, free: 9.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.003394/0.5646, allocations: 0.9676 MB / 0.5609 GB, free: 8.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.5648, allocations: 229.6 kB / 0.5611 GB, free: 8.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.5653, allocations: 435.1 kB / 0.5615 GB, free: 8.238 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.5654, allocations: 40.14 kB / 0.5616 GB, free: 8.203 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.5657, allocations: 370.5 kB / 0.5619 GB, free: 7.914 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.5658, allocations: 186.6 kB / 0.5621 GB, free: 7.758 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.5659, allocations: 15.06 kB / 0.5621 GB, free: 7.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.566, allocations: 372.3 kB / 0.5625 GB, free: 7.406 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003874/0.5664, allocations: 214.5 kB / 0.5627 GB, free: 7.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.5668, allocations: 365.8 kB / 0.563 GB, free: 6.961 MB / 378.7 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.01183/0.5787, allocations: 2.113 MB / 0.5651 GB, free: 5.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.5787, allocations: 0 / 0.5651 GB, free: 5.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001674/0.5804, allocations: 0.822 MB / 0.5659 GB, free: 4.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.286e-05/0.5805, allocations: 66.83 kB / 0.5659 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.5805, allocations: 8 kB / 0.566 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004758/0.581, allocations: 89.06 kB / 0.566 GB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008365/0.5818, allocations: 179.2 kB / 0.5662 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.5834, allocations: 1.554 MB / 0.5677 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007059/0.5841, allocations: 81.59 kB / 0.5678 GB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.578e-05/0.5842, allocations: 34.78 kB / 0.5678 GB, free: 2.355 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002714/0.5844, allocations: 223.3 kB / 0.568 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.5846, allocations: 62.97 kB / 0.5681 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003806/0.5884, allocations: 1.206 MB / 0.5693 GB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.5884, allocations: 8 kB / 0.5693 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.5884, allocations: 4 kB / 0.5693 GB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.5884, allocations: 3.984 kB / 0.5693 GB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.5912, allocations: 1.825 MB / 0.5711 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.5913, allocations: 0 / 0.5711 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005091/0.5918, allocations: 113.5 kB / 0.5712 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/0.5942, allocations: 0.5423 MB / 0.5717 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.425e-05/0.5943, allocations: 26.66 kB / 0.5717 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009535/0.5952, allocations: 0.8634 MB / 0.5726 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5952, allocations: 0 / 0.5726 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.5971, allocations: 1.229 MB / 0.5738 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.5974, allocations: 212.2 kB / 0.574 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.5976, allocations: 20 kB / 0.574 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005095/0.5981, allocations: 39.97 kB / 0.5741 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5982, allocations: 52.44 kB / 0.5741 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.5983, allocations: 27.97 kB / 0.5741 GB, free: 12.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004446/0.5987, allocations: 349.6 kB / 0.5745 GB, free: 12.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5987, allocations: 4 kB / 0.5745 GB, free: 12.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008674/0.5996, allocations: 279.1 kB / 0.5747 GB, free: 11.93 MB / 394.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00228/0.6019, allocations: 1.925 MB / 0.5766 GB, free: 9.953 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.6034, allocations: 0.8166 MB / 0.5774 GB, free: 9.094 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6034, allocations: 0 / 0.5774 GB, free: 9.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006866/0.6041, allocations: 0.4943 MB / 0.5779 GB, free: 8.578 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.6047, allocations: 111.6 kB / 0.578 GB, free: 8.469 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.607, allocations: 1.146 MB / 0.5791 GB, free: 7.277 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.6075, allocations: 0.9576 MB / 0.5801 GB, free: 6.293 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003614/0.6078, allocations: 80.88 kB / 0.5801 GB, free: 6.211 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/0.6083, allocations: 295.3 kB / 0.5804 GB, free: 5.922 MB / 394.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6083, allocations: 0 / 0.5804 GB, free: 5.922 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.6393, allocations: 15.91 MB / 0.596 GB, free: 6.223 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.6396, allocations: 166 kB / 0.5961 GB, free: 5.996 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.995, allocations: 0 / 0.5961 GB, free: 5.996 MB / 410.7 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/linux/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)