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.00128/0.00128, allocations: 102.9 kB / 15.98 MB, free: 6.348 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.001378/0.001378, allocations: 194.7 kB / 16.91 MB, free: 6.188 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.367/1.367, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02541/0.02541, allocations: 5.405 MB / 296.1 MB, free: 9.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 361 MB, free: 8.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2216, allocations: 50.61 MB / 411.6 MB, free: 29.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004725/0.2263, allocations: 5.172 MB / 416.8 MB, free: 24.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.2291, allocations: 1.842 MB / 418.6 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004209/0.2295, allocations: 15.94 kB / 418.6 MB, free: 22.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006335/0.2302, allocations: 258.6 kB / 418.9 MB, free: 22.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005758/0.2308, allocations: 242.5 kB / 419.1 MB, free: 22.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.2313, allocations: 283.7 kB / 419.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007336/0.232, allocations: 1.099 MB / 420.5 MB, free: 20.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004346/0.2325, allocations: 442.7 kB / 420.9 MB, free: 20.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.2328, allocations: 450.5 kB / 421.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004514/0.2333, allocations: 0.533 MB / 421.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.2334, allocations: 112 kB / 422 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.2336, allocations: 172 kB / 422.2 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.2337, allocations: 235.1 kB / 422.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.234, allocations: 497.7 kB / 422.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005817/0.2346, allocations: 0.9119 MB / 423.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2346, allocations: 15.86 kB / 423.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2346, allocations: 0 / 423.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2347, allocations: 0 / 423.8 MB, free: 17.36 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.002481/0.2371, allocations: 1.298 MB / 425.1 MB, free: 16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2372, allocations: 8.031 kB / 425.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.2373, allocations: 95.81 kB / 425.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.2385, allocations: 0.6312 MB / 425.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.2385, allocations: 58 kB / 425.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.2386, allocations: 76 kB / 426 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.2398, allocations: 0.7775 MB / 426.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.2398, allocations: 4 kB / 426.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.2399, allocations: 32 kB / 426.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.2399, allocations: 16 kB / 426.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.241, allocations: 0.6011 MB / 427.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.2444, allocations: 2.757 MB / 430.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.2457, allocations: 0.9056 MB / 431.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004597/0.2462, allocations: 253.9 kB / 431.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.2463, allocations: 89.45 kB / 431.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006493/0.2469, allocations: 385.4 kB / 431.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.705e-06/0.2469, allocations: 0 / 431.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002684/0.2496, allocations: 1.058 MB / 432.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.2497, allocations: 200.3 kB / 433.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.2501, allocations: 461.9 kB / 433.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.2502, allocations: 41.7 kB / 433.5 MB, free: 7.148 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.2504, allocations: 367.5 kB / 433.9 MB, free: 6.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.2505, allocations: 181.5 kB / 434.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.2507, allocations: 146.5 kB / 434.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.253e-05/0.2508, allocations: 362.8 kB / 434.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004435/0.2512, allocations: 221.8 kB / 434.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005061/0.2517, allocations: 365.8 kB / 435.2 MB, free: 5.461 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.01182/0.2636, allocations: 2.384 MB / 437.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.2636, allocations: 0 / 437.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001679/0.2653, allocations: 0.8188 MB / 438.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.2653, allocations: 63.39 kB / 438.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.2653, allocations: 4 kB / 438.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004442/0.2658, allocations: 84.94 kB / 438.5 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/0.2665, allocations: 171.6 kB / 438.7 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.2678, allocations: 1.57 MB / 440.2 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006863/0.2685, allocations: 75.52 kB / 440.3 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.2686, allocations: 43.91 kB / 440.4 MB, free: 15.96 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.0004674/0.269, allocations: 289.9 kB / 440.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.2692, allocations: 59.25 kB / 440.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.271, allocations: 0.9398 MB / 441.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.2711, allocations: 4 kB / 441.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2711, allocations: 0 / 441.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.2711, allocations: 3.984 kB / 441.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.2754, allocations: 1.842 MB / 443.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.2754, allocations: 4 kB / 443.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.2759, allocations: 103.8 kB / 443.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005684/0.2765, allocations: 258.4 kB / 443.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.703e-05/0.2765, allocations: 23.92 kB / 443.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.2776, allocations: 0.8194 MB / 444.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2776, allocations: 4.031 kB / 444.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003803/0.2814, allocations: 1.373 MB / 446.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/0.2818, allocations: 192.2 kB / 446.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.2819, allocations: 27.91 kB / 446.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.2824, allocations: 39.97 kB / 446.3 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.2826, allocations: 48.44 kB / 446.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.2826, allocations: 23.98 kB / 446.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003882/0.283, allocations: 330.9 kB / 446.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.283, allocations: 0 / 446.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007883/0.2838, allocations: 223.4 kB / 446.9 MB, free: 9.172 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.0002794/0.2841, allocations: 155.6 kB / 447.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.2859, allocations: 0.838 MB / 447.9 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/0.286, allocations: 8.688 kB / 447.9 MB, free: 8.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008106/0.2868, allocations: 489.9 kB / 448.4 MB, free: 7.621 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007429/0.2875, allocations: 122 kB / 448.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.2905, allocations: 1.767 MB / 450.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.291, allocations: 0.9341 MB / 451.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.2912, allocations: 67.39 kB / 451.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2912, allocations: 0 / 451.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Templates: time 0.01621/0.3075, allocations: 12.33 MB / 463.6 MB, free: 8.367 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)