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.006991/0.006991, allocations: 172 kB / 15.11 MB, free: 5.969 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.333/1.333, allocations: 223.2 MB / 239 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008931/0.0008931, allocations: 106.4 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02527/0.02527, allocations: 5.397 MB / 346.7 MB, free: 5.555 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000395/0.0003951, allocations: 7.531 kB / 412.2 MB, free: 89.96 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09452/0.09494, allocations: 51.62 MB / 463.8 MB, free: 44.58 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3248/0.4198, allocations: 88.65 MB / 0.5395 GB, free: 19.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4201, allocations: 75.52 kB / 0.5396 GB, free: 19.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05401/0.4741, allocations: 21.41 MB / 0.5605 GB, free: 17.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4741, allocations: 1.562 kB / 0.5605 GB, free: 17.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.266e-05/0.4742, allocations: 13.75 kB / 0.5605 GB, free: 17.45 MB / 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.002216/0.4764, allocations: 1.122 MB / 0.5616 GB, free: 16.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.4764, allocations: 9.594 kB / 0.5616 GB, free: 16.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.4766, allocations: 117.2 kB / 0.5617 GB, free: 16.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.4767, allocations: 94.38 kB / 0.5618 GB, free: 16.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006252/0.4774, allocations: 489.6 kB / 0.5623 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.48e-05/0.4774, allocations: 61.16 kB / 0.5624 GB, free: 16.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.4775, allocations: 74.31 kB / 0.5624 GB, free: 16.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.479, allocations: 0.8342 MB / 0.5632 GB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.479, allocations: 5.625 kB / 0.5633 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.152e-05/0.4791, allocations: 28.53 kB / 0.5633 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.4791, allocations: 17.44 kB / 0.5633 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.4806, allocations: 0.7487 MB / 0.564 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.4847, allocations: 2.894 MB / 0.5669 GB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.4862, allocations: 0.9573 MB / 0.5678 GB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.4863, allocations: 88.09 kB / 0.5679 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006316/0.4869, allocations: 418 kB / 0.5683 GB, free: 13.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.214e-06/0.487, allocations: 0 / 0.5683 GB, free: 13.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.007353/0.4943, allocations: 1.75 MB / 0.57 GB, free: 12.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.4944, allocations: 198.9 kB / 0.5702 GB, free: 12.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/0.495, allocations: 447.5 kB / 0.5706 GB, free: 12.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/0.495, allocations: 37.52 kB / 0.5706 GB, free: 12.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.4953, allocations: 366 kB / 0.571 GB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.4954, allocations: 185.6 kB / 0.5712 GB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.7e-05/0.4955, allocations: 17.94 kB / 0.5712 GB, free: 11.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.4956, allocations: 379.4 kB / 0.5715 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005198/0.4961, allocations: 246 kB / 0.5718 GB, free: 11.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005857/0.4967, allocations: 390.4 kB / 0.5721 GB, free: 11.24 MB / 362.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.01369/0.5104, allocations: 2.189 MB / 0.5743 GB, free: 10.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.5104, allocations: 1.156 kB / 0.5743 GB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001983/0.5124, allocations: 0.8939 MB / 0.5752 GB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.5125, allocations: 59.66 kB / 0.5752 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.5125, allocations: 4.844 kB / 0.5752 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005083/0.513, allocations: 94.27 kB / 0.5753 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008558/0.5139, allocations: 179.6 kB / 0.5755 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.5156, allocations: 1.572 MB / 0.577 GB, free: 24.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000773/0.5164, allocations: 70.27 kB / 0.5771 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-05/0.5164, allocations: 41.77 kB / 0.5771 GB, free: 24.53 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: 18 * 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 () * Number of clocked 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.0005071/0.517, allocations: 298.2 kB / 0.5774 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.5171, allocations: 58.25 kB / 0.5775 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004229/0.5213, allocations: 1.281 MB / 0.5787 GB, free: 23.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.5213, allocations: 14.42 kB / 0.5787 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.5213, allocations: 0 / 0.5787 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.5214, allocations: 5.297 kB / 0.5787 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.5238, allocations: 1.81 MB / 0.5805 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5239, allocations: 0 / 0.5805 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.5243, allocations: 104.8 kB / 0.5806 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/0.5267, allocations: 0.5887 MB / 0.5812 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/0.5268, allocations: 22.91 kB / 0.5812 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009166/0.5277, allocations: 0.9252 MB / 0.5821 GB, free: 22.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5277, allocations: 3.938 kB / 0.5821 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.5297, allocations: 1.341 MB / 0.5834 GB, free: 21.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.53, allocations: 209.9 kB / 0.5836 GB, free: 21.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.5301, allocations: 22.38 kB / 0.5836 GB, free: 21.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005551/0.5307, allocations: 38.28 kB / 0.5837 GB, free: 21.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5308, allocations: 42.62 kB / 0.5837 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-05/0.5309, allocations: 34.59 kB / 0.5837 GB, free: 21.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004059/0.5313, allocations: 357.5 kB / 0.5841 GB, free: 21.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5313, allocations: 0 / 0.5841 GB, free: 21.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009144/0.5322, allocations: 274.5 kB / 0.5843 GB, free: 21.47 MB / 378.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) * Number of clocked states: 0 () * 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.002483/0.5347, allocations: 2.037 MB / 0.5863 GB, free: 20.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.5363, allocations: 0.8754 MB / 0.5872 GB, free: 20.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.5363, allocations: 0 / 0.5872 GB, free: 20.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.537, allocations: 0.5208 MB / 0.5877 GB, free: 19.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006123/0.5377, allocations: 101.4 kB / 0.5878 GB, free: 19.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.5418, allocations: 4.843 MB / 0.5925 GB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.5423, allocations: 0.9511 MB / 0.5935 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003911/0.5427, allocations: 87.66 kB / 0.5935 GB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/0.5431, allocations: 300.9 kB / 0.5938 GB, free: 14.79 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5431, allocations: 0 / 0.5938 GB, free: 14.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.5742, allocations: 15.59 MB / 0.6091 GB, free: 7.188 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/0.5744, allocations: 193 kB / 0.6092 GB, free: 6.949 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.071, allocations: 0 / 0.6092 GB, free: 6.949 MB / 378.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)