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.001192/0.001192, allocations: 116.3 kB / 16.37 MB, free: 6.012 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.001253/0.001253, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.336/1.336, allocations: 222.9 MB / 241 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.02766/0.02766, allocations: 5.396 MB / 296.6 MB, free: 9.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 67.89 kB / 362.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2105, allocations: 50.62 MB / 413 MB, free: 29.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.005556/0.2161, allocations: 5.149 MB / 418.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.2189, allocations: 1.881 MB / 420 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006369/0.2196, allocations: 8 kB / 420 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007952/0.2204, allocations: 290.1 kB / 420.3 MB, free: 21.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009458/0.2214, allocations: 293.8 kB / 420.6 MB, free: 21.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006443/0.222, allocations: 319.4 kB / 420.9 MB, free: 21.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.2231, allocations: 1.106 MB / 422 MB, free: 20.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004803/0.2236, allocations: 442.7 kB / 422.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.224, allocations: 446.4 kB / 422.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004957/0.2245, allocations: 0.537 MB / 423.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.2246, allocations: 112 kB / 423.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.2248, allocations: 172 kB / 423.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.225, allocations: 227.2 kB / 423.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002971/0.2253, allocations: 0.4898 MB / 424.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007202/0.226, allocations: 1.18 MB / 425.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.226, allocations: 0 / 425.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.226, allocations: 0 / 425.6 MB, free: 16.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.226, allocations: 0 / 425.6 MB, free: 16.63 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.002472/0.2285, allocations: 1.309 MB / 426.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2285, allocations: 8.031 kB / 426.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.2287, allocations: 95.81 kB / 427 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.23, allocations: 0.6467 MB / 427.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.2301, allocations: 54 kB / 427.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.2302, allocations: 80 kB / 427.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.2313, allocations: 0.7776 MB / 428.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.2314, allocations: 0 / 428.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.485e-05/0.2314, allocations: 28 kB / 428.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.2315, allocations: 20 kB / 428.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.2326, allocations: 0.5972 MB / 429.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.2358, allocations: 2.73 MB / 431.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2371, allocations: 0.9112 MB / 432.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.2376, allocations: 245.9 kB / 433.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.606e-05/0.2377, allocations: 85.48 kB / 433.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005565/0.2383, allocations: 389.5 kB / 433.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.194e-06/0.2383, allocations: 0 / 433.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002651/0.2409, allocations: 1.07 MB / 434.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.241, allocations: 200.3 kB / 434.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.2414, allocations: 457.9 kB / 435.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.2414, allocations: 45.64 kB / 435.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.2416, allocations: 363.5 kB / 435.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.451e-05/0.2417, allocations: 185.4 kB / 435.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.2419, allocations: 138.5 kB / 436 MB, free: 5.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.686e-05/0.2419, allocations: 370.8 kB / 436.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000457/0.2424, allocations: 213.9 kB / 436.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004995/0.2429, allocations: 361.9 kB / 436.9 MB, free: 4.738 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.01129/0.2542, allocations: 2.376 MB / 439.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.2542, allocations: 4 kB / 439.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001616/0.2558, allocations: 0.8265 MB / 440.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.2559, allocations: 60.19 kB / 440.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2559, allocations: 4 kB / 440.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004446/0.2564, allocations: 84.94 kB / 440.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007663/0.2571, allocations: 163.7 kB / 440.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.2585, allocations: 1.578 MB / 442 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006782/0.2592, allocations: 79.52 kB / 442.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/0.2593, allocations: 35.97 kB / 442.1 MB, free: 15.24 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.000451/0.2597, allocations: 287.2 kB / 442.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.2599, allocations: 63.25 kB / 442.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.2618, allocations: 0.936 MB / 443.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.2618, allocations: 4 kB / 443.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.2618, allocations: 0 / 443.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.2618, allocations: 3.984 kB / 443.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.2659, allocations: 1.837 MB / 445.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2659, allocations: 0 / 445.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.2664, allocations: 103.9 kB / 445.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005811/0.267, allocations: 254.4 kB / 445.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.626e-05/0.2671, allocations: 35.91 kB / 445.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.2681, allocations: 0.8194 MB / 446.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2681, allocations: 4.062 kB / 446.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/0.2717, allocations: 1.377 MB / 447.8 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.272, allocations: 200.1 kB / 448 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.2721, allocations: 27.91 kB / 448 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.2727, allocations: 39.97 kB / 448.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.2728, allocations: 48.44 kB / 448.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/0.2728, allocations: 23.98 kB / 448.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003705/0.2732, allocations: 322.9 kB / 448.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2732, allocations: 0 / 448.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000724/0.274, allocations: 235.4 kB / 448.7 MB, free: 8.438 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.0002088/0.2742, allocations: 135.7 kB / 448.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.2757, allocations: 0.8263 MB / 449.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2757, allocations: 0 / 449.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007703/0.2765, allocations: 490.7 kB / 450.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006808/0.2772, allocations: 126 kB / 450.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2795, allocations: 1.384 MB / 451.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.28, allocations: 0.9341 MB / 452.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003221/0.2803, allocations: 92.94 kB / 452.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.2805, allocations: 71.39 kB / 452.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2806, allocations: 0 / 452.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of Templates: time 0.01521/0.2958, allocations: 9.277 MB / 462 MB, free: 11.07 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 -s gbode -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)