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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009814/0.0009815, allocations: 183.3 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009393/0.0009393, allocations: 110.9 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02373/0.02373, allocations: 5.399 MB / 345.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 51.23 kB / 410.2 MB, free: 57.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07014/0.07129, allocations: 50.63 MB / 460.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004341/0.07567, allocations: 5.167 MB / 466 MB, free: 1.785 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.07782, allocations: 1.877 MB / 467.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.07809, allocations: 8 kB / 467.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005703/0.07868, allocations: 250.6 kB / 468.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004853/0.07918, allocations: 246.4 kB / 468.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.07965, allocations: 283.7 kB / 468.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000791/0.08045, allocations: 1.044 MB / 469.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004505/0.0809, allocations: 390.4 kB / 470.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.08128, allocations: 398.4 kB / 470.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004985/0.08179, allocations: 0.4901 MB / 471 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-05/0.0819, allocations: 64 kB / 471 MB, free: 12.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.08212, allocations: 124 kB / 471.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.08226, allocations: 179.2 kB / 471.3 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003477/0.08262, allocations: 449.7 kB / 471.8 MB, free: 12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008168/0.08344, allocations: 1.121 MB / 472.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.08345, allocations: 0 / 472.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.08346, allocations: 0 / 472.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.08347, allocations: 0 / 472.9 MB, free: 10.87 MB / 314.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.002574/0.08605, allocations: 1.305 MB / 474.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.0861, allocations: 8.875 kB / 474.2 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.08626, allocations: 99.75 kB / 474.3 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.08741, allocations: 0.6351 MB / 474.9 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.08747, allocations: 54 kB / 475 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.992e-05/0.08757, allocations: 76 kB / 475.1 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.08878, allocations: 0.7853 MB / 475.8 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.08881, allocations: 0 / 475.8 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.08888, allocations: 28 kB / 475.9 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.0889, allocations: 20 kB / 475.9 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.09007, allocations: 0.5972 MB / 476.5 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003668/0.09375, allocations: 2.757 MB / 479.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.09511, allocations: 0.9016 MB / 480.1 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004904/0.09561, allocations: 253.9 kB / 480.4 MB, free: 3.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001109/0.09573, allocations: 93.45 kB / 480.5 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006756/0.09642, allocations: 381.5 kB / 480.9 MB, free: 2.492 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.294e-06/0.09644, allocations: 0 / 480.9 MB, free: 2.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002665/0.09911, allocations: 1.066 MB / 481.9 MB, free: 1.387 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.294e-05/0.09921, allocations: 204.3 kB / 482.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/0.09967, allocations: 461.8 kB / 482.6 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.09972, allocations: 45.69 kB / 482.6 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.09993, allocations: 359.5 kB / 483 MB, free: 280 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.1001, allocations: 181.5 kB / 483.2 MB, free: 96 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1485/0.2486, allocations: 135.1 kB / 483.3 MB, free: 32.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2488, allocations: 368.1 kB / 483.6 MB, free: 32.63 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005986/0.2494, allocations: 216.7 kB / 483.9 MB, free: 32.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/0.25, allocations: 363.6 kB / 484.2 MB, free: 32.48 MB / 314.7 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.01082/0.2608, allocations: 2.376 MB / 486.6 MB, free: 31.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.2609, allocations: 5.125 kB / 486.6 MB, free: 31.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001821/0.2627, allocations: 0.8255 MB / 487.4 MB, free: 31.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.2628, allocations: 63.02 kB / 487.5 MB, free: 31.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.2628, allocations: 8.953 kB / 487.5 MB, free: 31.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000442/0.2632, allocations: 76.06 kB / 487.6 MB, free: 31.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/0.264, allocations: 171.1 kB / 487.7 MB, free: 31.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.2652, allocations: 1.469 MB / 489.2 MB, free: 29.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.2658, allocations: 72.52 kB / 489.3 MB, free: 29.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.259e-05/0.2659, allocations: 30.98 kB / 489.3 MB, free: 29.81 MB / 314.7 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.0003864/0.2663, allocations: 303.2 kB / 489.6 MB, free: 29.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.2664, allocations: 60.61 kB / 489.7 MB, free: 29.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.2682, allocations: 0.9316 MB / 490.6 MB, free: 29.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.2682, allocations: 6.312 kB / 490.6 MB, free: 29.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2682, allocations: 0.6094 kB / 490.6 MB, free: 29.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2682, allocations: 5.953 kB / 490.6 MB, free: 29.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003906/0.2721, allocations: 1.846 MB / 492.4 MB, free: 28.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2721, allocations: 1.469 kB / 492.4 MB, free: 28.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.2726, allocations: 101.9 kB / 492.5 MB, free: 28.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005119/0.2731, allocations: 258.9 kB / 492.8 MB, free: 28.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.723e-05/0.2732, allocations: 21.36 kB / 492.8 MB, free: 28.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008288/0.274, allocations: 0.814 MB / 493.6 MB, free: 27.56 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.274, allocations: 0 / 493.6 MB, free: 27.56 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/0.2894, allocations: 6.984 MB / 0.4889 GB, free: 24.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.2897, allocations: 188.7 kB / 0.4891 GB, free: 23.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.2898, allocations: 22.06 kB / 0.4891 GB, free: 23.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.2904, allocations: 43.7 kB / 0.4891 GB, free: 23.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.2905, allocations: 46.88 kB / 0.4892 GB, free: 23.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.456e-05/0.2906, allocations: 28.97 kB / 0.4892 GB, free: 23.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003768/0.2909, allocations: 322.9 kB / 0.4895 GB, free: 23.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.291, allocations: 0.9688 kB / 0.4895 GB, free: 23.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00103/0.292, allocations: 326.5 kB / 0.4898 GB, free: 23.59 MB / 314.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) * 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.0002141/0.2922, allocations: 155.3 kB / 0.49 GB, free: 23.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.2938, allocations: 0.8173 MB / 0.4908 GB, free: 22.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2938, allocations: 0 / 0.4908 GB, free: 22.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007111/0.2945, allocations: 491 kB / 0.4912 GB, free: 22.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007306/0.2953, allocations: 120.8 kB / 0.4913 GB, free: 22.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.2984, allocations: 2.283 MB / 0.4936 GB, free: 20.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.2988, allocations: 0.9508 MB / 0.4945 GB, free: 20.12 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005584/0.2994, allocations: 113.1 kB / 0.4946 GB, free: 20.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/0.2997, allocations: 76.8 kB / 0.4947 GB, free: 20.03 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2997, allocations: 0 / 0.4947 GB, free: 20.03 MB / 314.7 MB Notification: Performance of Templates: time 0.01683/0.3165, allocations: 11.85 MB / 0.5063 GB, free: 9.164 MB / 314.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)