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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007647/0.0007647, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005756/0.005757, allocations: 175 kB / 16.27 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1985/0.1985, allocations: 5.381 MB / 296.8 MB, free: 3.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005519/0.000552, allocations: 8 kB / 362.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.126, allocations: 51.6 MB / 414.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.005589/0.1316, allocations: 4.739 MB / 418.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004483/0.1361, allocations: 1.835 MB / 420.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.1373, allocations: 12 kB / 420.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.1384, allocations: 250.5 kB / 421 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.1399, allocations: 246.4 kB / 421.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009668/0.1409, allocations: 287.7 kB / 421.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.1424, allocations: 1.028 MB / 422.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007457/0.1432, allocations: 398.4 kB / 423 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000681/0.1439, allocations: 362.4 kB / 423.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008519/0.1447, allocations: 465.9 kB / 423.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002002/0.1449, allocations: 44 kB / 423.8 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.1453, allocations: 108 kB / 423.9 MB, free: 360 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.1455, allocations: 159.2 kB / 424.1 MB, free: 200 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2031/0.3486, allocations: 434.8 kB / 424.5 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.3499, allocations: 1.086 MB / 425.6 MB, free: 38.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3499, allocations: 0 / 425.6 MB, free: 38.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3499, allocations: 0.875 kB / 425.6 MB, free: 38.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.3499, allocations: 0.625 kB / 425.6 MB, free: 38.74 MB / 350.1 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.002661/0.3526, allocations: 1.157 MB / 426.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.3526, allocations: 9.094 kB / 426.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.3528, allocations: 96.66 kB / 426.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.354, allocations: 0.6407 MB / 427.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.354, allocations: 62.53 kB / 427.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.3542, allocations: 73.16 kB / 427.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3554, allocations: 0.79 MB / 428.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.3555, allocations: 3.906 kB / 428.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.967e-05/0.3555, allocations: 33.62 kB / 428.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.3556, allocations: 20.53 kB / 428.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.3567, allocations: 0.6036 MB / 429.1 MB, free: 37.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.3605, allocations: 2.764 MB / 431.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.3619, allocations: 0.9125 MB / 432.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005214/0.3624, allocations: 252.4 kB / 433 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.3625, allocations: 88.22 kB / 433.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007077/0.3632, allocations: 395.6 kB / 433.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.3632, allocations: 3.125 kB / 433.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002715/0.366, allocations: 1.094 MB / 434.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.366, allocations: 199.4 kB / 434.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.3665, allocations: 461.2 kB / 435.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.675e-05/0.3666, allocations: 38.59 kB / 435.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.3668, allocations: 365 kB / 435.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.3669, allocations: 185.2 kB / 435.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.068e-05/0.367, allocations: 65.34 kB / 435.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.3671, allocations: 366.9 kB / 436.2 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004915/0.3676, allocations: 220.8 kB / 436.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000525/0.3681, allocations: 363.9 kB / 436.8 MB, free: 34.33 MB / 350.1 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.01124/0.3794, allocations: 2.447 MB / 439.2 MB, free: 33.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.3794, allocations: 3.062 kB / 439.2 MB, free: 33.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001734/0.3812, allocations: 0.8285 MB / 440.1 MB, free: 33.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.3812, allocations: 60.88 kB / 440.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.3812, allocations: 6.656 kB / 440.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004499/0.3817, allocations: 85.12 kB / 440.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007401/0.3824, allocations: 174.8 kB / 440.4 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.3836, allocations: 1.465 MB / 441.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.3843, allocations: 73.62 kB / 441.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.3843, allocations: 34.31 kB / 442 MB, free: 32.19 MB / 350.1 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.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, 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 (irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004704/0.3848, allocations: 296 kB / 442.2 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.272e-05/0.3849, allocations: 63.19 kB / 442.3 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.3866, allocations: 0.9426 MB / 443.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.3866, allocations: 6.219 kB / 443.3 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.3866, allocations: 0 / 443.3 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3867, allocations: 7.406 kB / 443.3 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00359/0.3903, allocations: 1.869 MB / 445.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.3903, allocations: 3.125 kB / 445.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004334/0.3907, allocations: 102.2 kB / 445.2 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/0.3912, allocations: 262.4 kB / 445.5 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.419e-05/0.3913, allocations: 28.69 kB / 445.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008153/0.3921, allocations: 0.8346 MB / 446.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3921, allocations: 0 / 446.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.3953, allocations: 1.418 MB / 447.8 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000267/0.3956, allocations: 200.1 kB / 448 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.632e-05/0.3957, allocations: 17 kB / 448 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.3962, allocations: 46.62 kB / 448 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.656e-05/0.3963, allocations: 46.08 kB / 448.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3963, allocations: 26.73 kB / 448.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003374/0.3967, allocations: 321.8 kB / 448.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3967, allocations: 0 / 448.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007104/0.3974, allocations: 234.8 kB / 448.6 MB, free: 29.05 MB / 350.1 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002/0.3976, allocations: 141 kB / 448.8 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.399, allocations: 0.8203 MB / 449.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.399, allocations: 7.344 kB / 449.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.3996, allocations: 498.2 kB / 450.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000705/0.4003, allocations: 122.3 kB / 450.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.4029, allocations: 1.809 MB / 452 MB, free: 27.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.4033, allocations: 0.9286 MB / 452.9 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004289/0.4038, allocations: 98.77 kB / 453 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.404, allocations: 67.14 kB / 453.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.404, allocations: 0 / 453.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of Templates: time 0.01532/0.4193, allocations: 8.678 MB / 461.8 MB, free: 25.82 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: