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.001381/0.00138, allocations: 104.7 kB / 16.41 MB, free: 6.484 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.001435/0.001435, allocations: 187 kB / 17.34 MB, free: 5.734 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02671/0.02671, allocations: 5.407 MB / 296.6 MB, free: 9.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.91 kB / 413.5 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09799, allocations: 50.62 MB / 464.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007314/0.1054, allocations: 5.16 MB / 469.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.1093, allocations: 1.873 MB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008157/0.1101, allocations: 8 kB / 471.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.1112, allocations: 290 kB / 471.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.1124, allocations: 293.8 kB / 471.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007791/0.1132, allocations: 319.4 kB / 472 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.1149, allocations: 1.11 MB / 473.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007524/0.1157, allocations: 446.7 kB / 473.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008136/0.1165, allocations: 442.5 kB / 474 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1176, allocations: 0.533 MB / 474.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003076/0.1179, allocations: 112 kB / 474.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004566/0.1183, allocations: 183.9 kB / 474.8 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.1186, allocations: 223.2 kB / 475 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005969/0.1192, allocations: 497.6 kB / 475.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.1206, allocations: 1.18 MB / 476.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1206, allocations: 0 / 476.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1206, allocations: 4 kB / 476.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.629e-05/0.1206, allocations: 0 / 476.7 MB, free: 7.141 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.003581/0.1242, allocations: 1.301 MB / 478 MB, free: 5.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1243, allocations: 8.031 kB / 478 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.1245, allocations: 91.91 kB / 478.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.1261, allocations: 0.6583 MB / 478.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/0.1262, allocations: 54 kB / 478.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1263, allocations: 72 kB / 478.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.1278, allocations: 0.7854 MB / 479.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1279, allocations: 0 / 479.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.573e-05/0.1279, allocations: 32 kB / 479.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.128, allocations: 16 kB / 479.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.1293, allocations: 0.5972 MB / 480.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004491/0.1338, allocations: 2.734 MB / 483.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.1354, allocations: 0.9063 MB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/0.136, allocations: 253.9 kB / 484.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.1361, allocations: 85.47 kB / 484.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006935/0.1368, allocations: 385.4 kB / 484.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.984e-06/0.1368, allocations: 4 kB / 484.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003052/0.1399, allocations: 1.062 MB / 485.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.14, allocations: 200.3 kB / 485.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005616/0.1406, allocations: 465.9 kB / 486.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.1406, allocations: 37.7 kB / 486.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.1409, allocations: 367.4 kB / 486.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.1411, allocations: 177.5 kB / 487 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.1413, allocations: 138.5 kB / 487.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1415, allocations: 374.8 kB / 487.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005159/0.142, allocations: 213.9 kB / 487.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005994/0.1426, allocations: 361.9 kB / 488 MB, free: 11.25 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.012/0.1546, allocations: 2.376 MB / 490.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.1546, allocations: 4 kB / 490.4 MB, free: 8.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001898/0.1565, allocations: 0.8264 MB / 491.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.419e-05/0.1566, allocations: 63.41 kB / 491.3 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.1566, allocations: 4 kB / 491.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004749/0.1571, allocations: 80.94 kB / 491.4 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007978/0.1579, allocations: 167.7 kB / 491.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.1595, allocations: 1.578 MB / 493.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007052/0.1602, allocations: 75.42 kB / 493.2 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/0.1603, allocations: 39.97 kB / 493.2 MB, free: 5.75 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.0004738/0.1608, allocations: 290.1 kB / 493.5 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.161, allocations: 63.41 kB / 493.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.1629, allocations: 0.9282 MB / 494.5 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.1629, allocations: 8 kB / 494.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.1629, allocations: 3.938 kB / 494.5 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.1629, allocations: 3.984 kB / 494.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004508/0.1675, allocations: 1.837 MB / 496.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.922e-06/0.1675, allocations: 3.984 kB / 496.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004779/0.168, allocations: 99.89 kB / 496.5 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005596/0.1685, allocations: 262.2 kB / 496.7 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.94e-05/0.1686, allocations: 27.92 kB / 496.7 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.1696, allocations: 0.8233 MB / 497.6 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1696, allocations: 0 / 497.6 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003705/0.1734, allocations: 1.381 MB / 498.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.1737, allocations: 192.1 kB / 499.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.1738, allocations: 19.98 kB / 499.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005708/0.1744, allocations: 43.97 kB / 499.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.1745, allocations: 48.44 kB / 499.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.1746, allocations: 27.98 kB / 499.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003871/0.175, allocations: 322.9 kB / 499.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.175, allocations: 0 / 499.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007693/0.1758, allocations: 231.3 kB / 499.8 MB, free: 14.95 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.000259/0.176, allocations: 143.7 kB / 499.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.1777, allocations: 0.8263 MB / 0.489 GB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1777, allocations: 0 / 0.489 GB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007692/0.1785, allocations: 494.6 kB / 0.4895 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007394/0.1792, allocations: 126 kB / 0.4896 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.1819, allocations: 1.411 MB / 0.491 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.1826, allocations: 0.9341 MB / 0.4919 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.1828, allocations: 67.39 kB / 0.492 GB, free: 10.83 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1828, allocations: 0 / 0.492 GB, free: 10.83 MB / 382.1 MB Notification: Performance of Templates: time 0.2424/0.4252, allocations: 12.49 MB / 0.5042 GB, free: 50.36 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)