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: translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 221.5 MB / 229.6 MB, free: 7.512 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.001409/0.001409, allocations: 94.83 kB / 280.5 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02358/0.02358, allocations: 5.286 MB / 336.5 MB, free: 9.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.089e-05, allocations: 3.594 kB / 396.3 MB, free: 51.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 51.61 MB / 447.9 MB, free: 11 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.2449, allocations: 87.91 MB / 0.5233 GB, free: 2.965 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.2453, allocations: 75.95 kB / 0.5233 GB, free: 2.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.287/0.5324, allocations: 21.16 MB / 0.544 GB, free: 78.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5324, allocations: 0 / 0.544 GB, free: 78.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.959e-05/0.5325, allocations: 12 kB / 0.544 GB, free: 78.96 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.002697/0.5352, allocations: 1.012 MB / 0.545 GB, free: 77.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.5352, allocations: 8.031 kB / 0.545 GB, free: 77.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004482/0.5357, allocations: 90.97 kB / 0.5451 GB, free: 77.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.5369, allocations: 0.4907 MB / 0.5456 GB, free: 77.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.5369, allocations: 27.94 kB / 0.5456 GB, free: 77.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.5371, allocations: 48 kB / 0.5457 GB, free: 77.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001263/0.5384, allocations: 0.5935 MB / 0.5462 GB, free: 76.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.5395, allocations: 0.6644 MB / 0.5469 GB, free: 75.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.5395, allocations: 0 / 0.5469 GB, free: 75.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/0.5396, allocations: 3.984 kB / 0.5469 GB, free: 75.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.5396, allocations: 20 kB / 0.5469 GB, free: 75.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/0.544, allocations: 2.761 MB / 0.5496 GB, free: 73.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.5451, allocations: 0.8963 MB / 0.5505 GB, free: 72.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.5454, allocations: 222.4 kB / 0.5507 GB, free: 71.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.5456, allocations: 97.39 kB / 0.5508 GB, free: 71.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004963/0.5461, allocations: 404.5 kB / 0.5512 GB, free: 71.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.014e-06/0.5461, allocations: 0 / 0.5512 GB, free: 71.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.003323/0.5494, allocations: 0.9 MB / 0.5521 GB, free: 70.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.5495, allocations: 222.2 kB / 0.5523 GB, free: 70.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005766/0.5501, allocations: 409.2 kB / 0.5527 GB, free: 69.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.757e-05/0.5502, allocations: 29.7 kB / 0.5527 GB, free: 69.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.5504, allocations: 363.5 kB / 0.553 GB, free: 69.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.5506, allocations: 181.5 kB / 0.5532 GB, free: 69.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.5506, allocations: 0 / 0.5532 GB, free: 69.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5507, allocations: 366.8 kB / 0.5536 GB, free: 68.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.5511, allocations: 201.5 kB / 0.5537 GB, free: 68.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.5514, allocations: 351 kB / 0.5541 GB, free: 68.18 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.01079/0.5622, allocations: 2.026 MB / 0.5561 GB, free: 66.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.5623, allocations: 0 / 0.5561 GB, free: 66.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002148/0.5644, allocations: 0.7647 MB / 0.5568 GB, free: 65.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.5645, allocations: 59.41 kB / 0.5569 GB, free: 65.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.5645, allocations: 7.938 kB / 0.5569 GB, free: 65.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004794/0.565, allocations: 92.77 kB / 0.557 GB, free: 65.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00084/0.5659, allocations: 187.7 kB / 0.5571 GB, free: 65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.5673, allocations: 1.498 MB / 0.5586 GB, free: 63.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008462/0.5681, allocations: 55.42 kB / 0.5587 GB, free: 63.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.381e-05/0.5682, allocations: 39.95 kB / 0.5587 GB, free: 63.29 MB / 362.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.0002849/0.5685, allocations: 220.4 kB / 0.5589 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.5687, allocations: 55.34 kB / 0.559 GB, free: 63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.5723, allocations: 1.11 MB / 0.56 GB, free: 61.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.5723, allocations: 4 kB / 0.56 GB, free: 61.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.5723, allocations: 0 / 0.56 GB, free: 61.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.5724, allocations: 11.92 kB / 0.5601 GB, free: 61.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.5747, allocations: 1.632 MB / 0.5616 GB, free: 60.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.5747, allocations: 0 / 0.5616 GB, free: 60.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004515/0.5752, allocations: 107.8 kB / 0.5618 GB, free: 60.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.5773, allocations: 0.5371 MB / 0.5623 GB, free: 59.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.5774, allocations: 23.97 kB / 0.5623 GB, free: 59.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007221/0.5781, allocations: 0.853 MB / 0.5631 GB, free: 58.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5781, allocations: 0 / 0.5631 GB, free: 58.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.5797, allocations: 1.132 MB / 0.5642 GB, free: 57.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.58, allocations: 216.2 kB / 0.5644 GB, free: 57.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.5801, allocations: 8 kB / 0.5645 GB, free: 57.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.5806, allocations: 31.92 kB / 0.5645 GB, free: 57.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.5807, allocations: 48.48 kB / 0.5645 GB, free: 57.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.5808, allocations: 27.97 kB / 0.5646 GB, free: 57.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003383/0.5811, allocations: 319 kB / 0.5649 GB, free: 56.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5811, allocations: 8 kB / 0.5649 GB, free: 56.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008762/0.582, allocations: 239.3 kB / 0.5651 GB, free: 56.59 MB / 362.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.0003145/0.5823, allocations: 186.9 kB / 0.5653 GB, free: 56.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.5834, allocations: 0.7696 MB / 0.566 GB, free: 55.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5834, allocations: 1.125 kB / 0.566 GB, free: 55.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.5839, allocations: 484.9 kB / 0.5665 GB, free: 55.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.5845, allocations: 86.06 kB / 0.5666 GB, free: 55.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.5865, allocations: 0.9708 MB / 0.5675 GB, free: 54.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.5869, allocations: 0.9498 MB / 0.5684 GB, free: 53.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003619/0.5873, allocations: 84.67 kB / 0.5685 GB, free: 52.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.5875, allocations: 67.38 kB / 0.5686 GB, free: 52.89 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5875, allocations: 0 / 0.5686 GB, free: 52.89 MB / 362.7 MB Notification: Performance of Templates: time 0.01354/0.6011, allocations: 8.903 MB / 0.5773 GB, free: 44.07 MB / 362.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile (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 & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)