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.02497/0.02497, allocations: 5.39 MB / 21.56 MB, free: 1.18 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.001036/0.001036, allocations: 106.1 kB / 23.55 MB, free: 0.9102 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.001252/0.001252, allocations: 204.2 kB / 25.68 MB, free: 4.789 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 250.5 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00949/0.00949, allocations: 2.314 MB / 304.2 MB, free: 6.543 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 91.86 kB / 367.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2152, allocations: 51.21 MB / 419 MB, free: 26.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.006448/0.2217, allocations: 6.758 MB / 425.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004364/0.2261, allocations: 3.138 MB / 428.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007507/0.2268, allocations: 23.88 kB / 429 MB, free: 16.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002222/0.2291, allocations: 1.103 MB / 430.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002053/0.2311, allocations: 0.8351 MB / 430.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.2328, allocations: 0.5381 MB / 431.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.2339, allocations: 1.367 MB / 432.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.2351, allocations: 1.04 MB / 433.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005116/0.2356, allocations: 0.5528 MB / 434.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006157/0.2363, allocations: 0.7082 MB / 435.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.2364, allocations: 144 kB / 435.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007035/0.2371, allocations: 435.7 kB / 435.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.2373, allocations: 298.9 kB / 436 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004058/0.2377, allocations: 0.6337 MB / 436.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.239, allocations: 1.725 MB / 438.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.239, allocations: 0 / 438.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.239, allocations: 0 / 438.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.2391, allocations: 0 / 438.3 MB, free: 7.031 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.003736/0.2428, allocations: 1.767 MB / 440.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.2428, allocations: 12.02 kB / 440.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002034/0.2449, allocations: 371.2 kB / 440.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.2464, allocations: 0.7522 MB / 441.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/0.2464, allocations: 82.06 kB / 441.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.2466, allocations: 115.9 kB / 441.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.2484, allocations: 1.168 MB / 442.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.2484, allocations: 4 kB / 442.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.913e-05/0.2485, allocations: 47.98 kB / 442.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.2485, allocations: 24 kB / 442.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.2505, allocations: 1.042 MB / 443.7 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006422/0.2569, allocations: 4.396 MB / 448.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003094/0.26, allocations: 1.783 MB / 449.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007915/0.2609, allocations: 357.2 kB / 450.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001738/0.261, allocations: 170.8 kB / 450.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.2621, allocations: 0.5591 MB / 450.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.055e-06/0.2621, allocations: 4 kB / 451 MB, free: 9.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.00616/0.2683, allocations: 1.702 MB / 452.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.2684, allocations: 277.7 kB / 452.9 MB, free: 7.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007145/0.2692, allocations: 0.5575 MB / 453.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.2692, allocations: 41.64 kB / 453.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003411/0.2696, allocations: 498.6 kB / 454 MB, free: 6.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.2698, allocations: 256.4 kB / 454.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000343/0.2702, allocations: 210.7 kB / 454.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.2703, allocations: 378.8 kB / 454.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007628/0.2711, allocations: 330.4 kB / 455.2 MB, free: 5.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009051/0.272, allocations: 0.5682 MB / 455.7 MB, free: 4.711 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.01744/0.2895, allocations: 3.631 MB / 459.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/0.2895, allocations: 8 kB / 459.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002717/0.2922, allocations: 1.209 MB / 460.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.86e-05/0.2923, allocations: 91.77 kB / 460.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.2923, allocations: 8 kB / 460.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004851/0.2928, allocations: 85.03 kB / 460.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.294, allocations: 255.5 kB / 461 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.2957, allocations: 1.585 MB / 462.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009691/0.2966, allocations: 123.1 kB / 462.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-05/0.2967, allocations: 47.97 kB / 462.8 MB, free: 13.32 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.0006301/0.2974, allocations: 377.2 kB / 463.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.2976, allocations: 79.06 kB / 463.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.3002, allocations: 1.253 MB / 464.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.3003, allocations: 8 kB / 464.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3003, allocations: 7.938 kB / 464.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3003, allocations: 3.984 kB / 464.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006647/0.3069, allocations: 2.555 MB / 467 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.307, allocations: 0 / 467 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/0.3076, allocations: 127.8 kB / 467.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008226/0.3084, allocations: 342.2 kB / 467.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.54e-05/0.3085, allocations: 31.97 kB / 467.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.3099, allocations: 0.8897 MB / 468.4 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3099, allocations: 0 / 468.4 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005759/0.3157, allocations: 1.927 MB / 470.3 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000399/0.3161, allocations: 235.8 kB / 470.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.3162, allocations: 24 kB / 470.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006458/0.3169, allocations: 55.95 kB / 470.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.317, allocations: 56.58 kB / 470.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.792e-05/0.3171, allocations: 39.97 kB / 470.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005175/0.3176, allocations: 398.8 kB / 471.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.3176, allocations: 0 / 471.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001134/0.3188, allocations: 350.9 kB / 471.5 MB, free: 4.348 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.0007415/0.3195, allocations: 355.9 kB / 471.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.3223, allocations: 1.19 MB / 473 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3223, allocations: 0 / 473 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3234, allocations: 0.6661 MB / 473.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008866/0.3243, allocations: 142.2 kB / 473.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.3277, allocations: 1.833 MB / 475.6 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.3283, allocations: 1.011 MB / 476.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.3286, allocations: 95.31 kB / 476.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3286, allocations: 0 / 476.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Templates: time 0.02578/0.3544, allocations: 17.21 MB / 494 MB, free: 13.8 MB / 366.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)