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.001292/0.001292, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001323/0.001323, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02712/0.02712, allocations: 5.394 MB / 296.4 MB, free: 9.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001472, allocations: 63.91 kB / 361.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1911, allocations: 50.61 MB / 412.2 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004803/0.1959, allocations: 5.16 MB / 417.4 MB, free: 24.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1984, allocations: 1.873 MB / 419.2 MB, free: 22.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003544/0.1988, allocations: 12 kB / 419.2 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005785/0.1994, allocations: 278.1 kB / 419.5 MB, free: 22.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.1999, allocations: 301.8 kB / 419.8 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.2004, allocations: 315.4 kB / 420.1 MB, free: 21.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006678/0.2011, allocations: 1.102 MB / 421.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004251/0.2015, allocations: 442.7 kB / 421.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003281/0.2018, allocations: 442.5 kB / 422.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004609/0.2023, allocations: 0.533 MB / 422.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.2024, allocations: 112 kB / 422.7 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.2027, allocations: 179.9 kB / 422.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.2028, allocations: 231.2 kB / 423.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.2031, allocations: 497.7 kB / 423.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.2038, allocations: 1.168 MB / 424.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2038, allocations: 0 / 424.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2038, allocations: 4 kB / 424.8 MB, free: 16.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2039, allocations: 0 / 424.8 MB, free: 16.8 MB / 302.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.002542/0.2064, allocations: 1.297 MB / 426.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2065, allocations: 12.03 kB / 426.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.2066, allocations: 91.81 kB / 426.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.2077, allocations: 0.639 MB / 426.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.2078, allocations: 58 kB / 426.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.2079, allocations: 72 kB / 426.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.209, allocations: 0.7892 MB / 427.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.209, allocations: 0 / 427.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.571e-05/0.2091, allocations: 28 kB / 427.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.2091, allocations: 16 kB / 427.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.2103, allocations: 0.605 MB / 428.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00335/0.2137, allocations: 2.75 MB / 431.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.215, allocations: 0.901 MB / 432 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000527/0.2155, allocations: 253.9 kB / 432.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.2157, allocations: 89.47 kB / 432.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000657/0.2163, allocations: 381.5 kB / 432.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.916e-06/0.2164, allocations: 4 kB / 432.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002772/0.2191, allocations: 1.062 MB / 433.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.2192, allocations: 196.3 kB / 434 MB, free: 7.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.2196, allocations: 469.9 kB / 434.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.2197, allocations: 37.7 kB / 434.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.2198, allocations: 367.5 kB / 434.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2199, allocations: 185.4 kB / 435 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.2201, allocations: 138.5 kB / 435.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.692e-05/0.2202, allocations: 366.8 kB / 435.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.2207, allocations: 217.9 kB / 435.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.2212, allocations: 361.8 kB / 436.1 MB, free: 4.91 MB / 302.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.01143/0.2327, allocations: 2.392 MB / 438.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.2327, allocations: 0 / 438.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001649/0.2343, allocations: 0.8188 MB / 439.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.2344, allocations: 65.42 kB / 439.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.2344, allocations: 4 kB / 439.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.2349, allocations: 92.88 kB / 439.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007781/0.2356, allocations: 167.7 kB / 439.6 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.2369, allocations: 1.574 MB / 441.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006844/0.2376, allocations: 79.47 kB / 441.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.802e-05/0.2377, allocations: 31.97 kB / 441.3 MB, free: 15.4 MB / 318.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.0004137/0.2381, allocations: 295.2 kB / 441.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.2383, allocations: 63.25 kB / 441.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.2401, allocations: 0.936 MB / 442.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.2402, allocations: 7.984 kB / 442.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2402, allocations: 4 kB / 442.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2402, allocations: 0 / 442.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004045/0.2442, allocations: 1.835 MB / 444.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2443, allocations: 0 / 444.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.2448, allocations: 103.8 kB / 444.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005599/0.2453, allocations: 258.4 kB / 444.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.2454, allocations: 23.92 kB / 444.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.2465, allocations: 0.8273 MB / 445.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2465, allocations: 0 / 445.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003583/0.2501, allocations: 1.373 MB / 447 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.2504, allocations: 192.2 kB / 447.2 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2505, allocations: 23.91 kB / 447.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/0.2511, allocations: 43.97 kB / 447.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.2512, allocations: 48.44 kB / 447.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.226e-05/0.2512, allocations: 31.95 kB / 447.4 MB, free: 9.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.2516, allocations: 322.9 kB / 447.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2516, allocations: 0 / 447.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007234/0.2524, allocations: 223.4 kB / 447.9 MB, free: 8.605 MB / 318.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.0002279/0.2526, allocations: 155.6 kB / 448 MB, free: 8.445 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.2545, allocations: 0.8465 MB / 448.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2545, allocations: 0 / 448.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007616/0.2553, allocations: 485.9 kB / 449.4 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.2561, allocations: 127.5 kB / 449.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.2587, allocations: 1.439 MB / 450.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.2592, allocations: 0.9302 MB / 451.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.2595, allocations: 75.39 kB / 451.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2595, allocations: 0 / 451.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of Templates: time 0.01653/0.276, allocations: 12.33 MB / 464.3 MB, free: 8.133 MB / 334.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)