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.001176/0.001176, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1419/0.1419, allocations: 5.388 MB / 295.8 MB, free: 2.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 59.91 kB / 360.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1164, allocations: 50.62 MB / 411.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006305/0.1227, allocations: 5.148 MB / 416.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.1259, allocations: 1.869 MB / 418.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004043/0.1263, allocations: 12 kB / 418.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006914/0.127, allocations: 286 kB / 418.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000615/0.1277, allocations: 293.8 kB / 419.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005211/0.1282, allocations: 311.5 kB / 419.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008941/0.1291, allocations: 1.114 MB / 420.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005319/0.1296, allocations: 446.7 kB / 421 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000437/0.1301, allocations: 454.4 kB / 421.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005754/0.1307, allocations: 0.5214 MB / 421.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.1308, allocations: 112 kB / 422.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.1311, allocations: 180 kB / 422.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.1313, allocations: 227.2 kB / 422.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1658/0.2971, allocations: 498.5 kB / 422.9 MB, free: 41.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.2986, allocations: 1.156 MB / 424.1 MB, free: 41.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.2987, allocations: 0.875 kB / 424.1 MB, free: 41.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2987, allocations: 0 / 424.1 MB, free: 41.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.2987, allocations: 4.656 kB / 424.1 MB, free: 41.72 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.002736/0.3014, allocations: 1.306 MB / 425.4 MB, free: 41.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.3015, allocations: 9.031 kB / 425.4 MB, free: 41.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.3017, allocations: 93.69 kB / 425.5 MB, free: 40.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.3028, allocations: 0.6431 MB / 426.1 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.3029, allocations: 57.09 kB / 426.2 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.303, allocations: 72.47 kB / 426.3 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.3042, allocations: 0.7842 MB / 427.1 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3043, allocations: 0 / 427.1 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.967e-05/0.3043, allocations: 31.44 kB / 427.1 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.3043, allocations: 16.38 kB / 427.1 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.3055, allocations: 0.6001 MB / 427.7 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003749/0.3093, allocations: 2.765 MB / 430.5 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.3106, allocations: 0.9032 MB / 431.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.3111, allocations: 248.5 kB / 431.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.446e-05/0.3112, allocations: 83.92 kB / 431.7 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006549/0.3119, allocations: 396.3 kB / 432.1 MB, free: 38.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.745e-06/0.3119, allocations: 0 / 432.1 MB, free: 38.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.00263/0.3145, allocations: 1.054 MB / 433.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.3146, allocations: 204.3 kB / 433.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004142/0.315, allocations: 454.3 kB / 433.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.315, allocations: 36.8 kB / 433.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3152, allocations: 373.7 kB / 434.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.3153, allocations: 179.1 kB / 434.4 MB, free: 37.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.3155, allocations: 137.6 kB / 434.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.3156, allocations: 367.9 kB / 434.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.3161, allocations: 222.5 kB / 435.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.3166, allocations: 360.6 kB / 435.4 MB, free: 36.42 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.01091/0.3275, allocations: 2.386 MB / 437.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3275, allocations: 0 / 437.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001649/0.3292, allocations: 0.8243 MB / 438.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.3292, allocations: 63.97 kB / 438.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3293, allocations: 6.094 kB / 438.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004304/0.3297, allocations: 85.66 kB / 438.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007389/0.3304, allocations: 164.5 kB / 438.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/0.3317, allocations: 1.575 MB / 440.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/0.3323, allocations: 82.84 kB / 440.6 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.993e-05/0.3324, allocations: 35.14 kB / 440.6 MB, free: 33.55 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 system: $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.0003341/0.3327, allocations: 285.5 kB / 440.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.3328, allocations: 61.12 kB / 441 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.3344, allocations: 0.9337 MB / 441.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3344, allocations: 8.844 kB / 441.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3344, allocations: 3 kB / 441.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3345, allocations: 3.516 kB / 441.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.3381, allocations: 1.835 MB / 443.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3381, allocations: 6.547 kB / 443.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004234/0.3385, allocations: 102.4 kB / 443.9 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004849/0.339, allocations: 251.8 kB / 444.1 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.3391, allocations: 25.41 kB / 444.1 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008075/0.3399, allocations: 0.8285 MB / 445 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3399, allocations: 3.062 kB / 445 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003188/0.3431, allocations: 1.377 MB / 446.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.3433, allocations: 198.7 kB / 446.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.3434, allocations: 28.38 kB / 446.6 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.3439, allocations: 36.09 kB / 446.6 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.344, allocations: 47.97 kB / 446.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.3441, allocations: 26.27 kB / 446.7 MB, free: 30.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003077/0.3444, allocations: 324.4 kB / 447 MB, free: 30.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3444, allocations: 0 / 447 MB, free: 30.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006785/0.3451, allocations: 242.7 kB / 447.2 MB, free: 30.25 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.0001975/0.3453, allocations: 142.5 kB / 447.4 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3469, allocations: 0.8433 MB / 448.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3469, allocations: 7.375 kB / 448.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.3475, allocations: 487.3 kB / 448.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007047/0.3482, allocations: 123.9 kB / 448.8 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.3506, allocations: 1.405 MB / 450.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3509, allocations: 0.9333 MB / 451.2 MB, free: 27.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.3513, allocations: 96.52 kB / 451.2 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.3515, allocations: 68.41 kB / 451.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3515, allocations: 0 / 451.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of Templates: time 0.01438/0.3659, allocations: 9.279 MB / 460.6 MB, free: 27.32 MB / 350.1 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)