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.001409/0.001409, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001585/0.001585, allocations: 189.6 kB / 16.25 MB, free: 6.617 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.374/1.374, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1759/0.1759, allocations: 5.382 MB / 295.5 MB, free: 2.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.89 kB / 360.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.1005, allocations: 50.61 MB / 411 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006434/0.1069, allocations: 5.174 MB / 416.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.1099, allocations: 1.834 MB / 418 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006176/0.1106, allocations: 15.94 kB / 418 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000752/0.1113, allocations: 254.5 kB / 418.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008272/0.1122, allocations: 242.5 kB / 418.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.1129, allocations: 279.7 kB / 418.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.1141, allocations: 1.11 MB / 419.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000649/0.1147, allocations: 446.7 kB / 420.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005921/0.1153, allocations: 454.3 kB / 420.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006984/0.1161, allocations: 0.5253 MB / 421.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.1163, allocations: 112 kB / 421.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.1166, allocations: 176 kB / 421.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1168, allocations: 227.2 kB / 421.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004354/0.1172, allocations: 0.4938 MB / 422.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1848/0.3021, allocations: 1.158 MB / 423.4 MB, free: 41.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3021, allocations: 0 / 423.4 MB, free: 41.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3021, allocations: 0 / 423.4 MB, free: 41.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.567e-05/0.3022, allocations: 1.719 kB / 423.4 MB, free: 41.86 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.002785/0.3049, allocations: 1.303 MB / 424.7 MB, free: 41.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.305, allocations: 9.562 kB / 424.7 MB, free: 41.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.3052, allocations: 93.84 kB / 424.8 MB, free: 41.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.3063, allocations: 0.6414 MB / 425.5 MB, free: 40.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.3064, allocations: 61.28 kB / 425.5 MB, free: 40.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3065, allocations: 73.12 kB / 425.6 MB, free: 40.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3077, allocations: 0.7826 MB / 426.4 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.3077, allocations: 0 / 426.4 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-05/0.3078, allocations: 30.69 kB / 426.4 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.3078, allocations: 16.28 kB / 426.4 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3089, allocations: 0.6012 MB / 427 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/0.3125, allocations: 2.759 MB / 429.8 MB, free: 39.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.3138, allocations: 0.9053 MB / 430.7 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.3143, allocations: 249.5 kB / 430.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.3145, allocations: 85.69 kB / 431 MB, free: 39.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007378/0.3152, allocations: 392.7 kB / 431.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.064e-06/0.3152, allocations: 4 kB / 431.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002619/0.3178, allocations: 1.056 MB / 432.5 MB, free: 38.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.3179, allocations: 193.6 kB / 432.6 MB, free: 38.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.3183, allocations: 459.7 kB / 433.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.3184, allocations: 40.14 kB / 433.1 MB, free: 38.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.3186, allocations: 374.1 kB / 433.5 MB, free: 37.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.3187, allocations: 181.4 kB / 433.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.3189, allocations: 138.4 kB / 433.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.319, allocations: 364.6 kB / 434.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.3195, allocations: 225.5 kB / 434.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.32, allocations: 360.7 kB / 434.7 MB, free: 36.92 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.01206/0.3321, allocations: 2.38 MB / 437.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.3321, allocations: 2.969 kB / 437.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001682/0.3338, allocations: 0.8242 MB / 438 MB, free: 35.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.3339, allocations: 64.38 kB / 438 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3339, allocations: 3.281 kB / 438 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004505/0.3343, allocations: 87.53 kB / 438.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.3351, allocations: 163 kB / 438.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.3363, allocations: 1.582 MB / 439.8 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000709/0.337, allocations: 79.06 kB / 439.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.3371, allocations: 35.97 kB / 440 MB, free: 34.06 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.000414/0.3375, allocations: 284 kB / 440.2 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.902e-05/0.3376, allocations: 60.62 kB / 440.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.3393, allocations: 0.9281 MB / 441.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.3394, allocations: 10.66 kB / 441.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3394, allocations: 0 / 441.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3394, allocations: 6.891 kB / 441.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.343, allocations: 1.839 MB / 443.1 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.343, allocations: 0 / 443.1 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.3435, allocations: 105.1 kB / 443.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004735/0.344, allocations: 257.5 kB / 443.4 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/0.344, allocations: 23.89 kB / 443.5 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007845/0.3448, allocations: 0.8255 MB / 444.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3448, allocations: 1.031 kB / 444.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.3481, allocations: 1.384 MB / 445.7 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.3483, allocations: 192.9 kB / 445.9 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.3484, allocations: 24.39 kB / 445.9 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005218/0.349, allocations: 40.61 kB / 445.9 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3491, allocations: 49.88 kB / 446 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.3491, allocations: 26.52 kB / 446 MB, free: 30.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.3495, allocations: 324.7 kB / 446.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3495, allocations: 3.062 kB / 446.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007018/0.3502, allocations: 234.9 kB / 446.5 MB, free: 30.76 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.0002186/0.3504, allocations: 144.3 kB / 446.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.352, allocations: 0.8424 MB / 447.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.352, allocations: 3.969 kB / 447.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006144/0.3527, allocations: 492.3 kB / 448 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.3533, allocations: 127 kB / 448.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.3556, allocations: 1.734 MB / 449.9 MB, free: 28.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.3559, allocations: 0.9337 MB / 450.8 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003688/0.3563, allocations: 96.55 kB / 450.9 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.3564, allocations: 69.8 kB / 451 MB, free: 28.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3565, allocations: 2.625 kB / 451 MB, free: 28.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01373/0.3702, allocations: 9.213 MB / 460.2 MB, free: 27.52 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)