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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00201/0.00201, allocations: 178.3 kB / 7.454 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.077/1.077, allocations: 221.4 MB / 229.3 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008035/0.0008035, allocations: 95.33 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02245/0.02245, allocations: 5.306 MB / 336.2 MB, free: 9.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.703e-06/6.723e-06, allocations: 3.938 kB / 395.7 MB, free: 69.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06898/0.069, allocations: 51.61 MB / 447.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2135/0.2826, allocations: 87.83 MB / 0.5226 GB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001734/0.2828, allocations: 70.22 kB / 0.5227 GB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05676/0.3395, allocations: 20.95 MB / 0.5431 GB, free: 10.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.665e-05/0.3396, allocations: 12 kB / 0.5431 GB, free: 10.9 MB / 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.002303/0.3419, allocations: 1.031 MB / 0.5441 GB, free: 9.863 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.3419, allocations: 8.031 kB / 0.5441 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.3422, allocations: 90.88 kB / 0.5442 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008498/0.3431, allocations: 0.4921 MB / 0.5447 GB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.3432, allocations: 28 kB / 0.5447 GB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3433, allocations: 43.91 kB / 0.5448 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/0.3445, allocations: 0.5958 MB / 0.5454 GB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.3456, allocations: 0.6658 MB / 0.546 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3456, allocations: 4 kB / 0.546 GB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.364e-05/0.3457, allocations: 0 / 0.546 GB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.3457, allocations: 20 kB / 0.546 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004197/0.3499, allocations: 2.754 MB / 0.5487 GB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005205/0.3504, allocations: 300.7 kB / 0.549 GB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/0.3508, allocations: 252.3 kB / 0.5492 GB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.351, allocations: 85.55 kB / 0.5493 GB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004477/0.3514, allocations: 398.4 kB / 0.5497 GB, free: 5.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.194e-06/0.3514, allocations: 0 / 0.5497 GB, free: 5.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.003672/0.3551, allocations: 0.8712 MB / 0.5506 GB, free: 4.613 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.801e-05/0.3552, allocations: 225.1 kB / 0.5508 GB, free: 4.348 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000478/0.3557, allocations: 406.9 kB / 0.5512 GB, free: 4.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.3558, allocations: 29.7 kB / 0.5512 GB, free: 4.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.356, allocations: 304.7 kB / 0.5515 GB, free: 3.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.3561, allocations: 183.5 kB / 0.5517 GB, free: 3.582 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.3562, allocations: 8 kB / 0.5517 GB, free: 3.574 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3563, allocations: 363 kB / 0.552 GB, free: 3.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.3567, allocations: 204.1 kB / 0.5522 GB, free: 3.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.3571, allocations: 347.6 kB / 0.5525 GB, free: 2.82 MB / 362.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.3695, allocations: 2.028 MB / 0.5545 GB, free: 1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/0.3695, allocations: 4 kB / 0.5545 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002103/0.3716, allocations: 0.7219 MB / 0.5552 GB, free: 452 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3717, allocations: 6.5 kB / 0.5552 GB, free: 448 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.3717, allocations: 11.92 kB / 0.5552 GB, free: 436 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.3722, allocations: 96.19 kB / 0.5553 GB, free: 340 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009203/0.3732, allocations: 182.7 kB / 0.5555 GB, free: 164 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.3748, allocations: 1.498 MB / 0.557 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007303/0.3755, allocations: 67.3 kB / 0.557 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.3756, allocations: 38.33 kB / 0.5571 GB, free: 14.52 MB / 378.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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.0002692/0.3759, allocations: 207.3 kB / 0.5573 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.3761, allocations: 67.34 kB / 0.5573 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/0.38, allocations: 1.073 MB / 0.5584 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.38, allocations: 4 kB / 0.5584 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.38, allocations: 4 kB / 0.5584 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.38, allocations: 3.984 kB / 0.5584 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004786/0.3848, allocations: 1.881 MB / 0.5602 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3848, allocations: 4.031 kB / 0.5602 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.3854, allocations: 107.6 kB / 0.5603 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002416/0.3878, allocations: 0.5431 MB / 0.5609 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/0.3879, allocations: 19.05 kB / 0.5609 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000803/0.3887, allocations: 0.8341 MB / 0.5617 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3887, allocations: 4 kB / 0.5617 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004006/0.3927, allocations: 1.359 MB / 0.563 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/0.3931, allocations: 217.2 kB / 0.5632 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.3933, allocations: 8 kB / 0.5632 GB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.3938, allocations: 39.97 kB / 0.5633 GB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.394, allocations: 44.58 kB / 0.5633 GB, free: 9.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/0.394, allocations: 32.03 kB / 0.5634 GB, free: 9.156 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003888/0.3944, allocations: 319 kB / 0.5637 GB, free: 8.844 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007839/0.3952, allocations: 243.2 kB / 0.5639 GB, free: 8.605 MB / 378.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.0003164/0.3955, allocations: 191 kB / 0.5641 GB, free: 8.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.3968, allocations: 0.7195 MB / 0.5648 GB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3968, allocations: 1.125 kB / 0.5648 GB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005926/0.3974, allocations: 429.8 kB / 0.5652 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.398, allocations: 81.92 kB / 0.5653 GB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.4001, allocations: 0.996 MB / 0.5662 GB, free: 6.121 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007168/0.4009, allocations: 1.023 MB / 0.5672 GB, free: 5.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4009, allocations: 0 / 0.5672 GB, free: 5.07 MB / 378.7 MB Notification: Performance of Templates: time 0.01534/0.4162, allocations: 9.264 MB / 0.5763 GB, free: 11.88 MB / 394.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)