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.001319/0.001319, 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.502/1.502, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0009049/0.000905, allocations: 89.8 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02405/0.02405, allocations: 5.279 MB / 341.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.832e-05/3.835e-05, allocations: 7.984 kB / 403.7 MB, free: 62.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1569, allocations: 51.61 MB / 455.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4102/0.5671, allocations: 88.6 MB / 0.5312 GB, free: 2.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.5674, allocations: 70.28 kB / 0.5312 GB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06082/0.6282, allocations: 21.42 MB / 0.5522 GB, free: 220 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6283, allocations: 0 / 0.5522 GB, free: 220 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.617e-05/0.6283, allocations: 16 kB / 0.5522 GB, free: 204 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.002122/0.6305, allocations: 1.007 MB / 0.5532 GB, free: 15.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.6305, allocations: 12.03 kB / 0.5532 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.6307, allocations: 90.22 kB / 0.5533 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007328/0.6314, allocations: 499 kB / 0.5537 GB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.6315, allocations: 56.31 kB / 0.5538 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.6316, allocations: 71.12 kB / 0.5539 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.6329, allocations: 0.7715 MB / 0.5546 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.633, allocations: 3.953 kB / 0.5546 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.66e-05/0.6331, allocations: 28.06 kB / 0.5546 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.6331, allocations: 19.98 kB / 0.5547 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.6342, allocations: 0.6427 MB / 0.5553 GB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004432/0.6387, allocations: 2.892 MB / 0.5581 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.64, allocations: 0.9139 MB / 0.559 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004067/0.6404, allocations: 242.6 kB / 0.5592 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000128/0.6406, allocations: 85.55 kB / 0.5593 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006003/0.6412, allocations: 423.8 kB / 0.5597 GB, free: 9.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.657e-06/0.6412, allocations: 4 kB / 0.5597 GB, free: 9.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.003574/0.6448, allocations: 0.964 MB / 0.5607 GB, free: 9.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.6449, allocations: 225.2 kB / 0.5609 GB, free: 8.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006583/0.6456, allocations: 449.5 kB / 0.5613 GB, free: 8.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.78e-05/0.6457, allocations: 36.58 kB / 0.5613 GB, free: 8.359 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.646, allocations: 370.8 kB / 0.5617 GB, free: 8.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.6462, allocations: 181.2 kB / 0.5619 GB, free: 7.922 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.6462, allocations: 15.38 kB / 0.5619 GB, free: 7.918 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.6464, allocations: 368.4 kB / 0.5622 GB, free: 7.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003807/0.6468, allocations: 214.9 kB / 0.5624 GB, free: 7.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.6472, allocations: 371.4 kB / 0.5628 GB, free: 7.121 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.01197/0.6592, allocations: 2.108 MB / 0.5649 GB, free: 5.211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.6593, allocations: 0 / 0.5649 GB, free: 5.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00186/0.6611, allocations: 0.824 MB / 0.5657 GB, free: 4.562 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.6612, allocations: 68.17 kB / 0.5657 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.6612, allocations: 4 kB / 0.5657 GB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004982/0.6617, allocations: 92.66 kB / 0.5658 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/0.6626, allocations: 183.4 kB / 0.566 GB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/0.6643, allocations: 1.558 MB / 0.5675 GB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000759/0.6651, allocations: 81.69 kB / 0.5676 GB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.16e-05/0.6652, allocations: 38.84 kB / 0.5676 GB, free: 2.508 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.0003028/0.6655, allocations: 219.2 kB / 0.5678 GB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.6656, allocations: 63.03 kB / 0.5679 GB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.6694, allocations: 1.206 MB / 0.5691 GB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.6694, allocations: 8 kB / 0.5691 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.6694, allocations: 0 / 0.5691 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.6694, allocations: 3.984 kB / 0.5691 GB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.6721, allocations: 1.828 MB / 0.5709 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/0.6721, allocations: 0 / 0.5709 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.6726, allocations: 107.7 kB / 0.571 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00235/0.6749, allocations: 0.5433 MB / 0.5715 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.503e-05/0.675, allocations: 30.34 kB / 0.5715 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009383/0.676, allocations: 0.857 MB / 0.5724 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.676, allocations: 0 / 0.5724 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.678, allocations: 1.233 MB / 0.5736 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/0.6785, allocations: 212.2 kB / 0.5738 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.6786, allocations: 19.98 kB / 0.5738 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/0.6791, allocations: 39.98 kB / 0.5738 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.6793, allocations: 48.48 kB / 0.5739 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/0.6794, allocations: 31.97 kB / 0.5739 GB, free: 12.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005155/0.6799, allocations: 349.6 kB / 0.5742 GB, free: 12.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6799, allocations: 0 / 0.5742 GB, free: 12.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009374/0.6808, allocations: 279.1 kB / 0.5745 GB, free: 12.14 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.0003527/0.6812, allocations: 194.9 kB / 0.5747 GB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.6826, allocations: 0.8167 MB / 0.5755 GB, free: 11.08 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6827, allocations: 4.062 kB / 0.5755 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.6834, allocations: 498.1 kB / 0.576 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.684, allocations: 116 kB / 0.5761 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.686, allocations: 0.9932 MB / 0.5771 GB, free: 9.426 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004969/0.6865, allocations: 0.9498 MB / 0.578 GB, free: 8.449 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003774/0.6869, allocations: 80.88 kB / 0.5781 GB, free: 8.367 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.6871, allocations: 67.38 kB / 0.5781 GB, free: 8.301 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6871, allocations: 0 / 0.5781 GB, free: 8.301 MB / 394.7 MB Notification: Performance of Templates: time 0.01731/0.7045, allocations: 10.13 MB / 0.588 GB, free: 14.24 MB / 410.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)