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.001441/0.001441, allocations: 112.6 kB / 16.37 MB, free: 6 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.001594/0.001594, allocations: 196 kB / 17.31 MB, free: 5.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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02636/0.02636, allocations: 5.396 MB / 296.6 MB, free: 9.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 362.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2042, allocations: 50.62 MB / 413 MB, free: 29.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004898/0.2092, allocations: 5.161 MB / 418.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002478/0.2117, allocations: 1.869 MB / 420 MB, free: 22.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003616/0.212, allocations: 12 kB / 420 MB, free: 22.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005791/0.2126, allocations: 282.1 kB / 420.3 MB, free: 21.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005396/0.2132, allocations: 301.8 kB / 420.6 MB, free: 21.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.2137, allocations: 315.4 kB / 420.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.2144, allocations: 1.11 MB / 422 MB, free: 20.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.2148, allocations: 446.7 kB / 422.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/0.2152, allocations: 446.4 kB / 422.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004565/0.2157, allocations: 0.5292 MB / 423.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.2158, allocations: 115.9 kB / 423.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.216, allocations: 183.9 kB / 423.7 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.2161, allocations: 231.2 kB / 423.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002865/0.2164, allocations: 493.7 kB / 424.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006847/0.2171, allocations: 1.176 MB / 425.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2171, allocations: 0 / 425.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2171, allocations: 0 / 425.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.2171, allocations: 0 / 425.6 MB, free: 16.64 MB / 302.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.002441/0.2196, allocations: 1.309 MB / 426.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2196, allocations: 8.031 kB / 426.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.2198, allocations: 99.75 kB / 427 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.221, allocations: 0.639 MB / 427.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.221, allocations: 58 kB / 427.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.476e-05/0.2211, allocations: 76 kB / 427.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.2223, allocations: 0.7814 MB / 428.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.2223, allocations: 4 kB / 428.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.196e-05/0.2224, allocations: 28 kB / 428.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2224, allocations: 16 kB / 428.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.2236, allocations: 0.6011 MB / 429.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003217/0.2268, allocations: 2.726 MB / 431.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.228, allocations: 0.9092 MB / 432.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004616/0.2285, allocations: 244.8 kB / 433.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.2286, allocations: 101.5 kB / 433.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005578/0.2292, allocations: 381.5 kB / 433.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.064e-06/0.2292, allocations: 0 / 433.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002637/0.2319, allocations: 1.066 MB / 434.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.2319, allocations: 196.3 kB / 434.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.2323, allocations: 457.9 kB / 435.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.2323, allocations: 45.69 kB / 435.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.2325, allocations: 363.5 kB / 435.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.2326, allocations: 189.4 kB / 435.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.2328, allocations: 138.5 kB / 436 MB, free: 5.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.53e-05/0.2328, allocations: 362.8 kB / 436.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.2333, allocations: 225.9 kB / 436.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004843/0.2338, allocations: 361.8 kB / 436.9 MB, free: 4.754 MB / 302.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.01087/0.2447, allocations: 2.38 MB / 439.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2447, allocations: 0 / 439.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001567/0.2463, allocations: 0.8148 MB / 440.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.2463, allocations: 67.39 kB / 440.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.2463, allocations: 7.938 kB / 440.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004329/0.2468, allocations: 84.94 kB / 440.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007542/0.2475, allocations: 167.7 kB / 440.4 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.2488, allocations: 1.57 MB / 442 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.2495, allocations: 83.47 kB / 442.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.798e-05/0.2495, allocations: 27.98 kB / 442.1 MB, free: 15.27 MB / 318.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.0003797/0.2499, allocations: 295.2 kB / 442.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.25, allocations: 67.23 kB / 442.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2519, allocations: 0.9282 MB / 443.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2519, allocations: 8 kB / 443.4 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.2519, allocations: 3.938 kB / 443.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.2519, allocations: 3.984 kB / 443.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.256, allocations: 1.833 MB / 445.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.256, allocations: 0 / 445.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.2565, allocations: 103.8 kB / 445.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005441/0.257, allocations: 258.4 kB / 445.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.367e-05/0.2571, allocations: 27.92 kB / 445.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009824/0.2581, allocations: 0.8194 MB / 446.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2581, allocations: 4.062 kB / 446.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003588/0.2617, allocations: 1.381 MB / 447.8 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.262, allocations: 192.1 kB / 448 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.2621, allocations: 23.91 kB / 448 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.2626, allocations: 43.97 kB / 448.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2627, allocations: 48.44 kB / 448.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.2628, allocations: 23.98 kB / 448.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004077/0.2632, allocations: 326.9 kB / 448.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2632, allocations: 0 / 448.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000688/0.2639, allocations: 231.4 kB / 448.7 MB, free: 8.461 MB / 318.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.0002156/0.2641, allocations: 147.6 kB / 448.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.2657, allocations: 0.8225 MB / 449.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2657, allocations: 0 / 449.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000758/0.2665, allocations: 490.6 kB / 450.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006766/0.2672, allocations: 109.9 kB / 450.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.2695, allocations: 1.39 MB / 451.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.27, allocations: 0.9302 MB / 452.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003196/0.2703, allocations: 92.94 kB / 452.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.2705, allocations: 71.39 kB / 452.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2705, allocations: 0 / 452.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of Templates: time 0.0158/0.2864, allocations: 9.281 MB / 462 MB, free: 11.09 MB / 334.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 -s cvode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)