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.009223/0.009223, allocations: 97.42 kB / 15.73 MB, free: 6.055 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.001485/0.001485, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02774/0.02774, allocations: 5.4 MB / 295.9 MB, free: 9.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 59.91 kB / 412.8 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1176, allocations: 50.63 MB / 463.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.00796/0.1256, allocations: 5.151 MB / 468.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.1293, allocations: 1.869 MB / 470.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000416/0.1297, allocations: 12 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000723/0.1304, allocations: 290 kB / 470.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00068/0.1312, allocations: 297.8 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006069/0.1318, allocations: 311.4 kB / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.133, allocations: 1.126 MB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006822/0.1337, allocations: 446.7 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006349/0.1343, allocations: 434.5 kB / 473.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.135, allocations: 0.5369 MB / 473.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.1352, allocations: 112 kB / 474 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.1355, allocations: 179.9 kB / 474.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002037/0.1357, allocations: 227.2 kB / 474.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004698/0.1362, allocations: 493.7 kB / 474.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.1375, allocations: 1.187 MB / 476 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.1376, allocations: 0 / 476 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1376, allocations: 0 / 476 MB, free: 7.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.1376, allocations: 0 / 476 MB, free: 7.168 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.002724/0.1403, allocations: 1.332 MB / 477.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1404, allocations: 8.031 kB / 477.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.1406, allocations: 104.4 kB / 477.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.142, allocations: 0.6434 MB / 478.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.712e-05/0.142, allocations: 54 kB / 478.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.1421, allocations: 72 kB / 478.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1436, allocations: 0.7892 MB / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.1437, allocations: 0 / 479 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.1438, allocations: 32 kB / 479.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.1438, allocations: 20 kB / 479.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001773/0.1456, allocations: 0.6011 MB / 479.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/0.1496, allocations: 2.735 MB / 482.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.1511, allocations: 0.914 MB / 483.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005529/0.1517, allocations: 245.9 kB / 483.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.1518, allocations: 89.47 kB / 483.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006905/0.1525, allocations: 385.5 kB / 484 MB, free: 14.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.585e-06/0.1525, allocations: 0 / 484 MB, free: 14.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002858/0.1554, allocations: 1.062 MB / 485.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.1556, allocations: 200.3 kB / 485.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.1561, allocations: 461.9 kB / 485.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.1561, allocations: 37.7 kB / 485.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.1564, allocations: 372.4 kB / 486.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.1566, allocations: 190.4 kB / 486.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.1568, allocations: 146.6 kB / 486.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.157, allocations: 370.8 kB / 486.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005055/0.1575, allocations: 209.9 kB / 487 MB, free: 11.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.1581, allocations: 373.8 kB / 487.4 MB, free: 11.21 MB / 366.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.01091/0.169, allocations: 2.38 MB / 489.8 MB, free: 8.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.169, allocations: 0 / 489.8 MB, free: 8.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001803/0.1708, allocations: 0.823 MB / 490.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.1709, allocations: 63.41 kB / 490.7 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1709, allocations: 4 kB / 490.7 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004205/0.1713, allocations: 76.78 kB / 490.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000753/0.1721, allocations: 179.8 kB / 490.9 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.1737, allocations: 1.578 MB / 492.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006537/0.1744, allocations: 71.61 kB / 492.6 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.353e-05/0.1744, allocations: 36.06 kB / 492.6 MB, free: 5.719 MB / 366.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.0004771/0.1749, allocations: 295.2 kB / 492.9 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.175, allocations: 63.62 kB / 493 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.1769, allocations: 0.9398 MB / 493.9 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.177, allocations: 7.938 kB / 493.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.177, allocations: 0 / 493.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.177, allocations: 7.984 kB / 493.9 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003907/0.1809, allocations: 1.841 MB / 495.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1809, allocations: 0 / 495.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.1814, allocations: 103.8 kB / 495.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005405/0.1819, allocations: 254.4 kB / 496.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.182, allocations: 23.92 kB / 496.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.183, allocations: 0.8194 MB / 496.9 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.183, allocations: 4.031 kB / 497 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003417/0.1864, allocations: 1.386 MB / 498.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.1867, allocations: 196.5 kB / 498.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.1868, allocations: 20 kB / 498.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.1873, allocations: 35.97 kB / 498.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.1875, allocations: 48.44 kB / 498.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.099e-05/0.1875, allocations: 31.98 kB / 498.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003894/0.1879, allocations: 326.9 kB / 499 MB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.188, allocations: 0 / 499 MB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007613/0.1887, allocations: 227.5 kB / 499.2 MB, free: 14.9 MB / 382.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.0002675/0.189, allocations: 155.5 kB / 499.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.1907, allocations: 0.8265 MB / 0.4885 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1907, allocations: 0 / 0.4885 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/0.1915, allocations: 485.8 kB / 0.4889 GB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007319/0.1922, allocations: 130.1 kB / 0.489 GB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.1952, allocations: 1.392 MB / 0.4904 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006202/0.1958, allocations: 0.9302 MB / 0.4913 GB, free: 10.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003864/0.1962, allocations: 100.9 kB / 0.4914 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.1964, allocations: 67.39 kB / 0.4915 GB, free: 10.71 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1964, allocations: 0 / 0.4915 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Templates: time 0.01895/0.2154, allocations: 9.386 MB / 0.5006 GB, free: 1.402 MB / 382.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)