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.001471/0.001471, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002187/0.002188, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1872/0.1872, allocations: 5.383 MB / 296.4 MB, free: 3.969 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004873/0.0004874, allocations: 8 kB / 361.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1416, allocations: 51.61 MB / 413.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.005557/0.1472, allocations: 4.225 MB / 417.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003767/0.151, allocations: 1.766 MB / 419.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006057/0.1517, allocations: 12 kB / 419.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006681/0.1523, allocations: 226.7 kB / 419.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000797/0.1531, allocations: 279.2 kB / 419.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006495/0.1538, allocations: 223.5 kB / 420.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009492/0.1548, allocations: 0.6752 MB / 420.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.1553, allocations: 327.9 kB / 421.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004578/0.1557, allocations: 342.7 kB / 421.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000632/0.1564, allocations: 446.2 kB / 421.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.049e-05/0.1565, allocations: 48 kB / 421.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.1567, allocations: 103.9 kB / 422 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.1569, allocations: 155.3 kB / 422.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.157, allocations: 181.3 kB / 422.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007871/0.1578, allocations: 0.8609 MB / 423.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1578, allocations: 0 / 423.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1579, allocations: 3.938 kB / 423.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.1579, allocations: 0 / 423.2 MB, free: 0.7734 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.2429/0.4008, allocations: 1.151 MB / 424.4 MB, free: 45.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.4008, allocations: 8.188 kB / 424.4 MB, free: 45.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003612/0.4012, allocations: 94.25 kB / 424.5 MB, free: 45.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.4028, allocations: 0.6238 MB / 425.1 MB, free: 44.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-05/0.4029, allocations: 58.59 kB / 425.2 MB, free: 44.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.403, allocations: 77.22 kB / 425.2 MB, free: 44.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.4047, allocations: 0.7757 MB / 426 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.4047, allocations: 1.891 kB / 426 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/0.4048, allocations: 33.31 kB / 426.1 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.4049, allocations: 16.62 kB / 426.1 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.4061, allocations: 0.5986 MB / 426.7 MB, free: 44.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003647/0.4097, allocations: 2.771 MB / 429.4 MB, free: 43.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.4112, allocations: 0.9126 MB / 430.3 MB, free: 43.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.4113, allocations: 88.97 kB / 430.4 MB, free: 42.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006268/0.4119, allocations: 404.6 kB / 430.8 MB, free: 42.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.214e-06/0.4119, allocations: 3.828 kB / 430.8 MB, free: 42.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002643/0.4146, allocations: 1.164 MB / 432 MB, free: 42.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.4147, allocations: 197.4 kB / 432.2 MB, free: 42.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005218/0.4152, allocations: 456.2 kB / 432.6 MB, free: 42.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.4153, allocations: 44.91 kB / 432.7 MB, free: 42.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.4155, allocations: 367.1 kB / 433 MB, free: 41.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.4156, allocations: 184.2 kB / 433.2 MB, free: 41.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/0.4157, allocations: 15.12 kB / 433.2 MB, free: 41.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/0.4158, allocations: 364.6 kB / 433.6 MB, free: 41.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.4162, allocations: 219 kB / 433.8 MB, free: 41.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.4167, allocations: 366.9 kB / 434.2 MB, free: 41.05 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (/*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.009851/0.4266, allocations: 1.864 MB / 436 MB, free: 40.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4266, allocations: 6.344 kB / 436 MB, free: 40.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001577/0.4282, allocations: 0.8267 MB / 436.9 MB, free: 40.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.4282, allocations: 60.84 kB / 436.9 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4282, allocations: 3.344 kB / 436.9 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004403/0.4287, allocations: 82.95 kB / 437 MB, free: 40.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007151/0.4294, allocations: 179.7 kB / 437.2 MB, free: 40.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.4306, allocations: 1.469 MB / 438.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/0.4312, allocations: 82.41 kB / 438.7 MB, free: 38.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.4313, allocations: 33.27 kB / 438.8 MB, free: 38.64 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 sytem: $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: 18 * 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 () * 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 (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.0003925/0.4317, allocations: 285.5 kB / 439 MB, free: 38.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.064e-05/0.4318, allocations: 61.05 kB / 439.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.4335, allocations: 0.9545 MB / 440.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4335, allocations: 6.375 kB / 440.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.4335, allocations: 0 / 440.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.4335, allocations: 6.625 kB / 440.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.4371, allocations: 1.861 MB / 441.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.4371, allocations: 3.938 kB / 441.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.4375, allocations: 99.52 kB / 442 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005027/0.438, allocations: 263.6 kB / 442.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.4381, allocations: 29.28 kB / 442.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008278/0.4389, allocations: 0.8316 MB / 443.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.439, allocations: 6.406 kB / 443.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003174/0.4421, allocations: 1.42 MB / 444.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.4424, allocations: 194.5 kB / 444.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.4425, allocations: 21.2 kB / 444.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004882/0.443, allocations: 45.56 kB / 444.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4431, allocations: 49.12 kB / 444.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.4432, allocations: 23.41 kB / 444.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003338/0.4435, allocations: 321 kB / 445.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4435, allocations: 0 / 445.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007546/0.4443, allocations: 226.5 kB / 445.4 MB, free: 35.28 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 (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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002206/0.4445, allocations: 155.8 kB / 445.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.4461, allocations: 0.8147 MB / 446.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4461, allocations: 0.75 kB / 446.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006493/0.4467, allocations: 490.7 kB / 446.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.4473, allocations: 100.2 kB / 447 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.4503, allocations: 1.739 MB / 448.7 MB, free: 33.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.4508, allocations: 0.947 MB / 449.7 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004702/0.4513, allocations: 90.22 kB / 449.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001902/0.4515, allocations: 69.73 kB / 449.8 MB, free: 32.63 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4515, allocations: 0 / 449.8 MB, free: 32.63 MB / 350.1 MB Notification: Performance of Templates: time 0.01526/0.4667, allocations: 8.376 MB / 458.2 MB, free: 32.05 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: