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.005815/0.005815, allocations: 171 kB / 15.11 MB, free: 6.039 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.244/1.244, allocations: 223.2 MB / 239 MB, free: 1.785 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.0008913/0.0008913, allocations: 89.42 kB / 290.2 MB, free: 13.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02434/0.02434, allocations: 5.393 MB / 346.7 MB, free: 5.586 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004347/0.0004346, allocations: 10.2 kB / 412.1 MB, free: 90.04 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1058, allocations: 51.61 MB / 463.8 MB, free: 44.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3842, allocations: 88.65 MB / 0.5395 GB, free: 19.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.3845, allocations: 75.05 kB / 0.5395 GB, free: 19.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05423/0.4387, allocations: 21.4 MB / 0.5604 GB, free: 17.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4387, allocations: 1.562 kB / 0.5604 GB, free: 17.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.1e-05/0.4388, allocations: 14 kB / 0.5604 GB, free: 17.47 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.002137/0.4409, allocations: 1.122 MB / 0.5615 GB, free: 16.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.441, allocations: 8.281 kB / 0.5615 GB, free: 16.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.4411, allocations: 97.73 kB / 0.5616 GB, free: 16.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006057/0.4418, allocations: 489 kB / 0.5621 GB, free: 16.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.519e-05/0.4418, allocations: 55.59 kB / 0.5622 GB, free: 16.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.4419, allocations: 76.5 kB / 0.5622 GB, free: 16.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4433, allocations: 0.8204 MB / 0.563 GB, free: 16.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.4434, allocations: 5.547 kB / 0.563 GB, free: 16.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.4435, allocations: 34.05 kB / 0.5631 GB, free: 16.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.4435, allocations: 18.28 kB / 0.5631 GB, free: 16.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.445, allocations: 0.7456 MB / 0.5638 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004252/0.4493, allocations: 2.9 MB / 0.5666 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.4507, allocations: 0.9687 MB / 0.5676 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.4508, allocations: 89.09 kB / 0.5677 GB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.4515, allocations: 410.9 kB / 0.5681 GB, free: 13.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.206e-06/0.4515, allocations: 4 kB / 0.5681 GB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.007183/0.4587, allocations: 1.746 MB / 0.5698 GB, free: 12.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.4588, allocations: 194.2 kB / 0.57 GB, free: 12.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006448/0.4594, allocations: 450.9 kB / 0.5704 GB, free: 12.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.4595, allocations: 45.33 kB / 0.5704 GB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4597, allocations: 365 kB / 0.5708 GB, free: 12.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.4599, allocations: 183.8 kB / 0.571 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.4599, allocations: 13.5 kB / 0.571 GB, free: 11.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.46, allocations: 370.5 kB / 0.5713 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.4605, allocations: 246.9 kB / 0.5716 GB, free: 11.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005634/0.4611, allocations: 400.1 kB / 0.5719 GB, free: 11.32 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.01318/0.4743, allocations: 2.193 MB / 0.5741 GB, free: 10.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.4743, allocations: 0.9375 kB / 0.5741 GB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002004/0.4763, allocations: 0.8912 MB / 0.575 GB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.037e-05/0.4764, allocations: 64.11 kB / 0.575 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.4764, allocations: 4.344 kB / 0.575 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005062/0.4769, allocations: 89.59 kB / 0.5751 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008678/0.4778, allocations: 187.8 kB / 0.5753 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.4795, allocations: 1.562 MB / 0.5768 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008088/0.4803, allocations: 70.05 kB / 0.5769 GB, free: 24.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.055e-05/0.4804, allocations: 38.48 kB / 0.5769 GB, free: 24.62 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.0005464/0.481, allocations: 300.3 kB / 0.5772 GB, free: 24.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4811, allocations: 58.88 kB / 0.5773 GB, free: 24.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004223/0.4853, allocations: 1.287 MB / 0.5785 GB, free: 23.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.4853, allocations: 6.094 kB / 0.5785 GB, free: 23.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4853, allocations: 1.219 kB / 0.5785 GB, free: 23.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4854, allocations: 3.984 kB / 0.5785 GB, free: 23.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.4884, allocations: 1.814 MB / 0.5803 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.4884, allocations: 0 / 0.5803 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.4889, allocations: 105 kB / 0.5804 GB, free: 23.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.4913, allocations: 0.5929 MB / 0.581 GB, free: 22.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.326e-05/0.4913, allocations: 22.59 kB / 0.581 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009704/0.4923, allocations: 0.9202 MB / 0.5819 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4923, allocations: 4.062 kB / 0.5819 GB, free: 22.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.4943, allocations: 1.34 MB / 0.5832 GB, free: 21.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003483/0.4947, allocations: 216.7 kB / 0.5834 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.4948, allocations: 17.28 kB / 0.5834 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.4953, allocations: 45.75 kB / 0.5835 GB, free: 21.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.826e-05/0.4954, allocations: 50.7 kB / 0.5835 GB, free: 21.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.4955, allocations: 23.02 kB / 0.5835 GB, free: 21.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003873/0.4959, allocations: 355.9 kB / 0.5839 GB, free: 21.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4959, allocations: 0 / 0.5839 GB, free: 21.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008537/0.4967, allocations: 270 kB / 0.5841 GB, free: 21.56 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.0002939/0.497, allocations: 190.2 kB / 0.5843 GB, free: 21.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.4985, allocations: 0.8848 MB / 0.5852 GB, free: 21.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4985, allocations: 4.312 kB / 0.5852 GB, free: 21.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006604/0.4991, allocations: 0.5132 MB / 0.5857 GB, free: 20.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005617/0.4997, allocations: 116.6 kB / 0.5858 GB, free: 20.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.5018, allocations: 1.716 MB / 0.5875 GB, free: 19.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.5022, allocations: 0.9529 MB / 0.5884 GB, free: 18.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003492/0.5026, allocations: 83.78 kB / 0.5885 GB, free: 18.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.5028, allocations: 68.14 kB / 0.5886 GB, free: 18.87 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5028, allocations: 0 / 0.5886 GB, free: 18.87 MB / 378.7 MB Notification: Performance of Templates: time 0.01389/0.5167, allocations: 10.07 MB / 0.5984 GB, free: 13.85 MB / 378.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)