Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02618/0.02618, allocations: 5.386 MB / 20.51 MB, free: 2.109 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.0008417/0.0008417, allocations: 112.1 kB / 22.5 MB, free: 492 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.0009786/0.0009787, allocations: 192.6 kB / 24.59 MB, free: 0.7188 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.196/1.196, allocations: 222.9 MB / 249.5 MB, free: 8.707 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008532/0.008532, allocations: 2.313 MB / 303.1 MB, free: 6.785 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 87.86 kB / 366.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.193, allocations: 51.21 MB / 417.6 MB, free: 26.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.005579/0.1986, allocations: 6.747 MB / 424.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004326/0.2029, allocations: 3.123 MB / 427.5 MB, free: 16.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.2041, allocations: 19.94 kB / 427.5 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.2065, allocations: 1.026 MB / 428.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002014/0.2085, allocations: 0.762 MB / 429.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.2101, allocations: 489.3 kB / 429.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.2116, allocations: 1.281 MB / 431.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.213, allocations: 0.8707 MB / 431.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.2135, allocations: 0.4942 MB / 432.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000676/0.2142, allocations: 0.6769 MB / 433.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.2144, allocations: 84 kB / 433.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006919/0.2151, allocations: 375.7 kB / 433.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.2153, allocations: 239 kB / 433.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.2157, allocations: 0.5751 MB / 434.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.217, allocations: 1.667 MB / 436 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.217, allocations: 7.938 kB / 436 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.217, allocations: 0 / 436 MB, free: 8.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.873e-05/0.217, allocations: 0 / 436 MB, free: 8.188 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.004094/0.2211, allocations: 1.771 MB / 437.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2212, allocations: 8.031 kB / 437.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/0.2232, allocations: 363.3 kB / 438.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.2248, allocations: 0.7678 MB / 438.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.513e-05/0.2249, allocations: 82 kB / 439 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001593/0.225, allocations: 111.9 kB / 439.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.227, allocations: 1.172 MB / 440.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.227, allocations: 0 / 440.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.075e-05/0.2271, allocations: 44 kB / 440.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.2272, allocations: 28 kB / 440.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.229, allocations: 1.041 MB / 441.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/0.2343, allocations: 4.396 MB / 445.8 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.2371, allocations: 1.78 MB / 447.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007385/0.2379, allocations: 374.4 kB / 448 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.238, allocations: 174.8 kB / 448.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009783/0.239, allocations: 0.5514 MB / 448.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.404e-06/0.239, allocations: 0 / 448.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006293/0.2453, allocations: 1.702 MB / 450.4 MB, free: 9.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.2455, allocations: 285.7 kB / 450.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006638/0.2462, allocations: 0.5536 MB / 451.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.2462, allocations: 41.7 kB / 451.3 MB, free: 8.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.2466, allocations: 494.6 kB / 451.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.2468, allocations: 252.4 kB / 452 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003009/0.2471, allocations: 218.7 kB / 452.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2472, allocations: 378.8 kB / 452.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00073/0.248, allocations: 334.4 kB / 452.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008603/0.2488, allocations: 0.5599 MB / 453.5 MB, free: 5.859 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.01753/0.2664, allocations: 3.623 MB / 457.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.2664, allocations: 4 kB / 457.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002635/0.269, allocations: 1.209 MB / 458.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/0.2691, allocations: 97.09 kB / 458.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.2692, allocations: 4 kB / 458.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004643/0.2696, allocations: 88.77 kB / 458.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.2707, allocations: 255.7 kB / 458.7 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.2722, allocations: 1.471 MB / 460.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009253/0.2732, allocations: 118.9 kB / 460.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.585e-05/0.2733, allocations: 52.06 kB / 460.4 MB, free: 14.59 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.0005587/0.2738, allocations: 369.2 kB / 460.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.2741, allocations: 79.06 kB / 460.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002615/0.2767, allocations: 1.257 MB / 462.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.2768, allocations: 15.94 kB / 462.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2768, allocations: 0 / 462.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.2768, allocations: 3.984 kB / 462.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006337/0.2831, allocations: 2.559 MB / 464.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.2831, allocations: 0 / 464.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005734/0.2837, allocations: 131.8 kB / 464.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007753/0.2845, allocations: 338.2 kB / 465.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.178e-05/0.2846, allocations: 35.97 kB / 465.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.2859, allocations: 0.8858 MB / 466 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2859, allocations: 0 / 466 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005795/0.2917, allocations: 1.923 MB / 467.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004289/0.2922, allocations: 231.9 kB / 468.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.2924, allocations: 32 kB / 468.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007434/0.2931, allocations: 55.89 kB / 468.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.2933, allocations: 56.58 kB / 468.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.009e-05/0.2934, allocations: 39.97 kB / 468.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005311/0.2939, allocations: 394.8 kB / 468.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2939, allocations: 0 / 468.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001015/0.2949, allocations: 343 kB / 469.1 MB, free: 5.633 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.0007016/0.2956, allocations: 354.1 kB / 469.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.2979, allocations: 1.154 MB / 470.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.2979, allocations: 8 kB / 470.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.2991, allocations: 0.6593 MB / 471.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008992/0.3, allocations: 130.2 kB / 471.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/0.3037, allocations: 2.261 MB / 473.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.3042, allocations: 1.015 MB / 474.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000535/0.3047, allocations: 130.4 kB / 474.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.305, allocations: 87.38 kB / 474.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.305, allocations: 0 / 474.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of Templates: time 0.01825/0.3232, allocations: 12.13 MB / 487 MB, free: 3.699 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)