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.001576/0.001576, allocations: 102.2 kB / 16.4 MB, free: 6.465 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.001879/0.001879, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02688/0.02688, allocations: 5.409 MB / 296.6 MB, free: 9.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.89 kB / 413.5 MB, free: 22.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.08982, allocations: 50.62 MB / 464.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006045/0.09591, allocations: 5.16 MB / 469.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.09899, allocations: 1.869 MB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000414/0.09942, allocations: 15.94 kB / 471.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006952/0.1002, allocations: 290 kB / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000631/0.1008, allocations: 293.8 kB / 471.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.1014, allocations: 315.4 kB / 472 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.1025, allocations: 1.114 MB / 473.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005595/0.103, allocations: 442.7 kB / 473.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004592/0.1035, allocations: 446.4 kB / 474 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006314/0.1042, allocations: 0.5291 MB / 474.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.1043, allocations: 112 kB / 474.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.1046, allocations: 176 kB / 474.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.1048, allocations: 235.2 kB / 475 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004138/0.1052, allocations: 497.7 kB / 475.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.1062, allocations: 1.176 MB / 476.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1062, allocations: 4 kB / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1062, allocations: 0 / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1063, allocations: 0 / 476.7 MB, free: 7.137 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.002797/0.1091, allocations: 1.301 MB / 478 MB, free: 5.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1091, allocations: 15.97 kB / 478 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.1093, allocations: 91.91 kB / 478.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.1106, allocations: 0.6545 MB / 478.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.1107, allocations: 57.94 kB / 478.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.1108, allocations: 76 kB / 478.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1122, allocations: 0.7737 MB / 479.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1122, allocations: 0 / 479.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.367e-05/0.1123, allocations: 32 kB / 479.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.1123, allocations: 20 kB / 479.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.1136, allocations: 0.5972 MB / 480.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003952/0.1176, allocations: 2.738 MB / 483.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.1191, allocations: 0.8984 MB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.1196, allocations: 249.9 kB / 484.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.1197, allocations: 93.45 kB / 484.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000667/0.1204, allocations: 385.5 kB / 484.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.274e-06/0.1204, allocations: 0 / 484.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002878/0.1233, allocations: 1.062 MB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.871e-05/0.1234, allocations: 196.3 kB / 485.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.1239, allocations: 461.9 kB / 486.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.124, allocations: 41.69 kB / 486.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.1243, allocations: 367.4 kB / 486.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.1244, allocations: 185.5 kB / 487 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.1246, allocations: 138.5 kB / 487.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1248, allocations: 362.8 kB / 487.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.1253, allocations: 221.9 kB / 487.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005964/0.1259, allocations: 365.8 kB / 488 MB, free: 11.24 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.01117/0.1371, allocations: 2.376 MB / 490.4 MB, free: 8.754 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1371, allocations: 0 / 490.4 MB, free: 8.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001856/0.139, allocations: 0.8226 MB / 491.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.286e-05/0.1391, allocations: 67.39 kB / 491.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1391, allocations: 4 kB / 491.3 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004643/0.1395, allocations: 84.94 kB / 491.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007821/0.1403, allocations: 163.7 kB / 491.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.1419, allocations: 1.578 MB / 493.1 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006781/0.1425, allocations: 75.41 kB / 493.2 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.1426, allocations: 27.98 kB / 493.2 MB, free: 5.758 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.0004417/0.1431, allocations: 299.2 kB / 493.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1432, allocations: 67.34 kB / 493.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.1451, allocations: 0.9282 MB / 494.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1451, allocations: 8 kB / 494.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1451, allocations: 0 / 494.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1452, allocations: 7.922 kB / 494.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.1491, allocations: 1.837 MB / 496.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1492, allocations: 0 / 496.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.1496, allocations: 103.8 kB / 496.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005588/0.1502, allocations: 262.3 kB / 496.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.081e-05/0.1503, allocations: 23.92 kB / 496.7 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009883/0.1513, allocations: 0.8234 MB / 497.6 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1513, allocations: 3.984 kB / 497.6 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.1547, allocations: 1.377 MB / 498.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.155, allocations: 192.2 kB / 499.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.1551, allocations: 20 kB / 499.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.1557, allocations: 43.97 kB / 499.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.1558, allocations: 48.44 kB / 499.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/0.1558, allocations: 23.98 kB / 499.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003627/0.1562, allocations: 326.9 kB / 499.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1562, allocations: 0 / 499.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007046/0.1569, 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.0002538/0.1572, allocations: 147.7 kB / 499.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1587, allocations: 0.8185 MB / 0.489 GB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1587, allocations: 3.938 kB / 0.489 GB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007172/0.1595, allocations: 486.7 kB / 0.4895 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006941/0.1602, allocations: 121.8 kB / 0.4896 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.1625, allocations: 1.415 MB / 0.491 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.163, allocations: 0.9302 MB / 0.4919 GB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.1632, allocations: 75.39 kB / 0.492 GB, free: 10.83 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1632, allocations: 0 / 0.492 GB, free: 10.83 MB / 382.1 MB Notification: Performance of Templates: time 0.2013/0.3645, allocations: 12.4 MB / 0.5041 GB, free: 50.25 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)