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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 178 kB / 16.12 MB, free: 5.547 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.3 MB / 240.1 MB, free: 11.73 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008764/0.0008766, allocations: 87.36 kB / 291.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02505/0.02505, allocations: 5.388 MB / 347.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004906/0.0004912, allocations: 12 kB / 413.5 MB, free: 57.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1129, allocations: 51.62 MB / 465.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.332/0.4449, allocations: 88.7 MB / 0.5408 GB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.4451, allocations: 73.03 kB / 0.5409 GB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05828/0.5034, allocations: 21.33 MB / 0.5617 GB, free: 13.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5034, allocations: 0 / 0.5617 GB, free: 13.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.533e-05/0.5035, allocations: 16 kB / 0.5617 GB, free: 13.74 MB / 378.7 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.002641/0.5061, allocations: 1.103 MB / 0.5628 GB, free: 12.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.5062, allocations: 8.875 kB / 0.5628 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003405/0.5065, allocations: 95.81 kB / 0.5629 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009586/0.5075, allocations: 0.5038 MB / 0.5634 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.5076, allocations: 56.88 kB / 0.5634 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.5077, allocations: 76.8 kB / 0.5635 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.5093, allocations: 0.8324 MB / 0.5643 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.5093, allocations: 4 kB / 0.5643 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/0.5094, allocations: 33 kB / 0.5644 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.5094, allocations: 16 kB / 0.5644 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.511, allocations: 0.7408 MB / 0.5651 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004609/0.5157, allocations: 2.904 MB / 0.5679 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.5171, allocations: 0.9634 MB / 0.5689 GB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.5177, allocations: 274.3 kB / 0.5691 GB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.5178, allocations: 89.52 kB / 0.5692 GB, free: 6.535 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006833/0.5185, allocations: 445.4 kB / 0.5696 GB, free: 6.066 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.215e-06/0.5185, allocations: 0 / 0.5696 GB, free: 6.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.006713/0.5253, allocations: 1.677 MB / 0.5713 GB, free: 4.348 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5254, allocations: 230.2 kB / 0.5715 GB, free: 4.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007437/0.5261, allocations: 497.9 kB / 0.572 GB, free: 3.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.935e-05/0.5262, allocations: 41.7 kB / 0.572 GB, free: 3.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.5265, allocations: 363.4 kB / 0.5724 GB, free: 3.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.5267, allocations: 185.4 kB / 0.5725 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.5268, allocations: 16 kB / 0.5726 GB, free: 2.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.5269, allocations: 366.8 kB / 0.5729 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.5275, allocations: 249.9 kB / 0.5731 GB, free: 2.355 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.5282, allocations: 402.7 kB / 0.5735 GB, free: 1.906 MB / 378.7 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.01323/0.5414, allocations: 2.806 MB / 0.5763 GB, free: 14.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/0.5415, allocations: 4 kB / 0.5763 GB, free: 14.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002099/0.5436, allocations: 0.893 MB / 0.5771 GB, free: 14.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.076e-05/0.5437, allocations: 59.41 kB / 0.5772 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.5437, allocations: 4 kB / 0.5772 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004715/0.5442, allocations: 92.7 kB / 0.5773 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008329/0.545, allocations: 195.7 kB / 0.5775 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.5467, allocations: 1.557 MB / 0.579 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.5474, allocations: 71.42 kB / 0.5791 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.636e-05/0.5475, allocations: 35.97 kB / 0.5791 GB, free: 11.91 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005165/0.548, allocations: 301.8 kB / 0.5794 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.5482, allocations: 59.34 kB / 0.5795 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/0.5522, allocations: 1.275 MB / 0.5807 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.5523, allocations: 11.98 kB / 0.5807 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.5523, allocations: 0 / 0.5807 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.5523, allocations: 4 kB / 0.5807 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003362/0.5557, allocations: 1.906 MB / 0.5826 GB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5557, allocations: 0 / 0.5826 GB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.5562, allocations: 111.8 kB / 0.5827 GB, free: 8.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002445/0.5586, allocations: 0.5839 MB / 0.5833 GB, free: 7.527 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.5587, allocations: 23.98 kB / 0.5833 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.5598, allocations: 0.921 MB / 0.5842 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5598, allocations: 0 / 0.5842 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.5621, allocations: 1.33 MB / 0.5855 GB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.5625, allocations: 208.1 kB / 0.5857 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.5627, allocations: 24 kB / 0.5857 GB, free: 4.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.5632, allocations: 39.97 kB / 0.5857 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.5633, allocations: 48.44 kB / 0.5858 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.5634, allocations: 35.91 kB / 0.5858 GB, free: 4.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004809/0.5639, allocations: 358.9 kB / 0.5862 GB, free: 4.473 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.523e-06/0.5639, allocations: 0 / 0.5862 GB, free: 4.473 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008639/0.5648, allocations: 275.1 kB / 0.5864 GB, free: 4.203 MB / 394.7 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 (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003642/0.5651, allocations: 191.7 kB / 0.5866 GB, free: 4.008 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.5676, allocations: 0.8774 MB / 0.5875 GB, free: 3.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/0.5676, allocations: 4.875 kB / 0.5875 GB, free: 3.086 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.569, allocations: 0.5136 MB / 0.588 GB, free: 2.547 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.5704, allocations: 120 kB / 0.5881 GB, free: 2.434 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.5749, allocations: 1.734 MB / 0.5898 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008062/0.5757, allocations: 0.9343 MB / 0.5907 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000752/0.5765, allocations: 80.89 kB / 0.5908 GB, free: 15.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.5769, allocations: 71.38 kB / 0.5908 GB, free: 15.56 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5769, allocations: 0 / 0.5908 GB, free: 15.56 MB / 410.7 MB Notification: Performance of Templates: time 0.03153/0.6084, allocations: 10.13 MB / 0.6007 GB, free: 5.496 MB / 410.7 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 -abortSlowSimulation -alarm=480 -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1)