Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02597/0.02597, allocations: 5.389 MB / 20.51 MB, free: 2.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007983/0.0007984, allocations: 108.1 kB / 22.5 MB, free: 496 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 186.3 kB / 24.58 MB, free: 0.7344 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.195/1.195, allocations: 222.9 MB / 249.4 MB, free: 8.738 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008457/0.008457, allocations: 2.319 MB / 303.1 MB, free: 6.754 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 95.86 kB / 366.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1709, allocations: 51.2 MB / 417.6 MB, free: 26.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.005227/0.1762, allocations: 6.754 MB / 424.4 MB, free: 19.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.1792, allocations: 3.119 MB / 427.5 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.1795, allocations: 19.94 kB / 427.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.1812, allocations: 1.03 MB / 428.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.1823, allocations: 0.762 MB / 429.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009908/0.1833, allocations: 482.1 kB / 429.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006681/0.184, allocations: 1.285 MB / 431.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008987/0.1849, allocations: 0.863 MB / 431.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003284/0.1852, allocations: 0.5057 MB / 432.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000485/0.1857, allocations: 0.673 MB / 433.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.1859, allocations: 84 kB / 433.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004657/0.1863, allocations: 375.7 kB / 433.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1865, allocations: 235 kB / 433.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.1868, allocations: 0.579 MB / 434.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009103/0.1877, allocations: 1.67 MB / 436 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1877, allocations: 0 / 436 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1877, allocations: 0 / 436 MB, free: 8.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1877, allocations: 0 / 436 MB, free: 8.16 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003359/0.1911, allocations: 1.771 MB / 437.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.762e-05/0.1911, allocations: 12.03 kB / 437.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001895/0.193, allocations: 363.3 kB / 438.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.1943, allocations: 0.7639 MB / 438.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.1944, allocations: 78.06 kB / 439 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1945, allocations: 111.9 kB / 439.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.1962, allocations: 1.179 MB / 440.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.1962, allocations: 3.938 kB / 440.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-05/0.1963, allocations: 44 kB / 440.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1964, allocations: 24 kB / 440.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.1982, allocations: 1.046 MB / 441.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00493/0.2031, allocations: 4.388 MB / 445.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.2058, allocations: 1.779 MB / 447.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007219/0.2066, allocations: 367 kB / 447.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.2067, allocations: 174.8 kB / 448.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009034/0.2076, allocations: 0.5552 MB / 448.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.294e-06/0.2077, allocations: 0 / 448.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.00594/0.2136, allocations: 1.702 MB / 450.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.2137, allocations: 285.7 kB / 450.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006413/0.2144, allocations: 0.5536 MB / 451.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.439e-05/0.2144, allocations: 45.69 kB / 451.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003765/0.2148, allocations: 490.7 kB / 451.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.215, allocations: 252.4 kB / 452 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.2153, allocations: 210.7 kB / 452.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2155, allocations: 382.8 kB / 452.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007215/0.2162, allocations: 330.4 kB / 452.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000866/0.2171, allocations: 0.5677 MB / 453.4 MB, free: 5.832 MB / 318.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.01699/0.2341, allocations: 3.623 MB / 457.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2341, allocations: 3.938 kB / 457.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002351/0.2365, allocations: 1.213 MB / 458.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/0.2365, allocations: 89.11 kB / 458.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.2365, allocations: 11.98 kB / 458.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.237, allocations: 84.78 kB / 458.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.2381, allocations: 255.7 kB / 458.7 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.2394, allocations: 1.479 MB / 460.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007976/0.2402, allocations: 115 kB / 460.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.2403, allocations: 55.95 kB / 460.4 MB, free: 14.56 MB / 334.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: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,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,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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.0004329/0.2408, allocations: 365.2 kB / 460.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.2409, allocations: 79.06 kB / 460.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002443/0.2434, allocations: 1.253 MB / 462.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2434, allocations: 15.88 kB / 462.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2434, allocations: 3.984 kB / 462.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.2434, allocations: 7.984 kB / 462.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006166/0.2496, allocations: 2.544 MB / 464.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2496, allocations: 4 kB / 464.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.2502, allocations: 131.8 kB / 464.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007387/0.2509, allocations: 342.2 kB / 465.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.377e-05/0.251, allocations: 35.97 kB / 465.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.2522, allocations: 0.8935 MB / 466 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2522, allocations: 0 / 466 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005484/0.2577, allocations: 1.919 MB / 467.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.258, allocations: 239.9 kB / 468.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.2581, allocations: 24 kB / 468.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.2588, allocations: 59.88 kB / 468.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.2589, allocations: 56.58 kB / 468.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-05/0.2589, allocations: 35.97 kB / 468.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004098/0.2594, allocations: 398.8 kB / 468.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2594, allocations: 0 / 468.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000824/0.2602, allocations: 343 kB / 469.1 MB, free: 5.598 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005892/0.2608, allocations: 352.1 kB / 469.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001943/0.2627, allocations: 1.157 MB / 470.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2628, allocations: 0 / 470.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009693/0.2637, allocations: 0.6634 MB / 471.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007093/0.2645, allocations: 126.2 kB / 471.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.2674, allocations: 2.268 MB / 473.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.2679, allocations: 1.011 MB / 474.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004889/0.2684, allocations: 126.4 kB / 474.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.2687, allocations: 87.31 kB / 474.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2687, allocations: 0 / 474.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01764/0.2863, allocations: 12.14 MB / 487 MB, free: 3.672 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)